From 1ebf6a6467167ae9ec0db0c069cfe6170dbcc18f Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Tue, 1 Aug 2023 20:36:04 -0700 Subject: started calculus, fixed error in colorspace for phplatex --- src/phplatex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/phplatex.php') 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) -- cgit v1.2.3-70-g09d2