summaryrefslogtreecommitdiff
path: root/src/phplatex.php
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-08-01 20:36:04 -0700
committerKai Stevenson <kai@kaistevenson.com>2023-08-01 20:36:04 -0700
commit1ebf6a6467167ae9ec0db0c069cfe6170dbcc18f (patch)
tree6b9adb4cd20c8e4b0db7da620bcf6dfa55642666 /src/phplatex.php
parent88bbd745f7ce7c3b0a4e91777ba1b34e22821c34 (diff)
started calculus, fixed error in colorspace for phplatex
Diffstat (limited to 'src/phplatex.php')
-rw-r--r--src/phplatex.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phplatex.php b/src/phplatex.php
index 6557ff0..4d2c60b 100644
--- a/src/phplatex.php
+++ b/src/phplatex.php
@@ -119,7 +119,7 @@ function texify($string,$dpi='90',$fore="",$back="",$extraprelude="",$trans=FALS
if ($trans) {
$convert_cmd .= ' -transparent-color "#'.$back.'" -transparent "#'.$back.'"';
}
- $convert_cmd .= ' -colorspace RGB -density '.$dpi.' -trim +page '.$tfn.'.ps '.$tfn.'.'.$imgfmt;
+ $convert_cmd .= ' -colorspace sRGB -density '.$dpi.' -trim +page '.$tfn.'.ps '.$tfn.'.'.$imgfmt;
exec($convert_cmd);
#Note: +page OR -page +0+0 OR +repage moves the image to the cropped area (kills offset)