Abhi2k5 Posted July 24, 2009 Share Posted July 24, 2009 Hello dear, I dont know how to change image mode in php. Please help to find solutions. Regards Abhi Quote Link to comment https://forums.phpfreaks.com/topic/167228-how-to-convert-cmyk-mode-to-rgb-mod-in-php/ Share on other sites More sharing options...
Psycho Posted July 24, 2009 Share Posted July 24, 2009 A simple google search for "php cmyk to rgb" brings up some good results. http://www.google.com/search?hl=en&q=php+cmyk+to+rgb&aq=0&oq=php+cmyk&aqi=g1 Quote Link to comment https://forums.phpfreaks.com/topic/167228-how-to-convert-cmyk-mode-to-rgb-mod-in-php/#findComment-881797 Share on other sites More sharing options...
Abhi2k5 Posted July 24, 2009 Author Share Posted July 24, 2009 Thanks for reply. I got all the image color of cmyk mod. but now my question is how to crate new image with Rgb mod. Regards, Abhi Quote Link to comment https://forums.phpfreaks.com/topic/167228-how-to-convert-cmyk-mode-to-rgb-mod-in-php/#findComment-881818 Share on other sites More sharing options...
Psycho Posted July 24, 2009 Share Posted July 24, 2009 I think you should look at ImageMagik which is supported with PHP. I believe it has the capability to convert an image from CMYK to RGB. Not 100% sure: http://www.imagemagick.org/script/index.php Quote Link to comment https://forums.phpfreaks.com/topic/167228-how-to-convert-cmyk-mode-to-rgb-mod-in-php/#findComment-882263 Share on other sites More sharing options...
ignace Posted July 24, 2009 Share Posted July 24, 2009 Apparently it appears that their isn't an actual accurate algorithm to convert cmyk to rgb as pointed out by: http://developer.loftdigital.com/blog/cmyk-rgb-and-php Quote Link to comment https://forums.phpfreaks.com/topic/167228-how-to-convert-cmyk-mode-to-rgb-mod-in-php/#findComment-882275 Share on other sites More sharing options...
Psycho Posted July 24, 2009 Share Posted July 24, 2009 Apparently it appears that their isn't an actual accurate algorithm to convert cmyk to rgb as pointed out by: http://developer.loftdigital.com/blog/cmyk-rgb-and-php That was the first hit in the link I posted above and the author states But all the ones I've looked at boil down the maths above, which isn't good enough any for serious design work which would indicate they may be good enough for some uses. The only other option would be to have a full-featured image editor installed on the server and use command line functionality to convert the images. Quote Link to comment https://forums.phpfreaks.com/topic/167228-how-to-convert-cmyk-mode-to-rgb-mod-in-php/#findComment-882343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.