|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24443 GD support for CYMK jpg files
Submitted: 2003-07-01 13:46 UTC Modified: 2016-09-05 11:33 UTC
From: seth at robustai dot net Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: * OS: Any
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.
Block user comment
Status: Assign to:
Bug Type:
From: seth at robustai dot net
New email:
PHP Version: OS:


 [2003-07-01 13:46 UTC] seth at robustai dot net
I get the following error when attempting to use this function on a CYMK jpg image.

Warning: imagecreatefromjpeg(): '/usr/local/www/vhosts/' is not a valid JPEG file in /usr/local/www/vhosts/ on line 153

But the same function works fine when the image is a RGB image.   

Is this a bug, or does the GD package just not support CYMK images ?

Thanks for your assistance.
Seth Russell


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-01 14:14 UTC]
Not a bug (it is just not supported); so we make it a feature request.
 [2014-04-16 18:50 UTC]
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: GD related -Operating System: free bsd +Operating System: Any -PHP Version: 4.3.2 +PHP Version: *
 [2014-04-16 18:50 UTC]
I think GD added support for implicit CMYK to RGB conversion; does anyone know for sure? I'm having trouble finding information.
 [2014-04-16 20:50 UTC]
-Status: Feedback +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2014-04-22 06:19 UTC] romtek at gmail dot com
GD extension already provides basic CMYK support. See
 [2016-09-05 11:33 UTC]
-Status: Assigned +Status: Closed -Assigned To: pajoye +Assigned To: cmb
 [2016-09-05 11:33 UTC]
Indeed, CMYK is supported as of GD 2.0.22, which has been bundled
with PHP 4.3.6, see <>.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 18:03:43 2023 UTC