|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-30 11:43 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 22:00:02 2025 UTC |
Description: ------------ Dear sir/madam, I did a image processing project using PHP GD library, in which i need to convert a image file with extension filename.eps to jpg, I used exec(convert path/to/sourcefile.eps path/to/dest.jpg) command. This process converts RGB color format successfully but the eps file is in CMYK color format which doesnt converts good. The output file is in different color (seems to be inverted color). I think this is a bug. please take necessary action to correct this problem in future versions of php. Hence first i converted the eps file to pdf, and then i converted the pdf to jpg. this somehow gave a little relevant output. Regards Guru Reproduce code: --------------- --- From manual page: function.convert --- exec("convert filename.eps -colorspace CMYK -quality 100 filename.jpg"); The image is in CMYK color format Expected result: ---------------- The color of the eps file is magenta but the output is with green colored image. Actual result: -------------- Need same color of image during conversion.