php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48435 convertion of filename.eps to filename.jpg is not clear
Submitted: 2009-05-30 11:25 UTC Modified: 2009-05-30 11:43 UTC
From: guru dot indian at gmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.2.9 OS: windows xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: guru dot indian at gmail dot com
New email:
PHP Version: OS:

 

 [2009-05-30 11:25 UTC] guru dot indian at gmail dot com
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. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-30 11:43 UTC] scottmac@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This is ImageMagick you are using, nothing to do with PHP here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 20:01:32 2024 UTC