summaryrefslogtreecommitdiff
path: root/src/phplatex.php
diff options
context:
space:
mode:
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)