Hi all!
Any way to get a feature "convert image to CMYK and save as.." for users?
My parents-in-law run a small-time magazine, and want a better way of managing the growing library. We have several mac's and pc's and up to 6 users, using one Q-nap home server. Hoping Zenphoto is what im looking for, but it needs to be able to full-fill some criteria. We need Tiff images in the CMYK colour space to be able to print correctly though. Is it possible?
The GD library does not support CMYK conversion, if I'm not mistaken. You would need to use ImageMagick/Imagick or GraphicsMagick/Gmagick, and to that end you could create a small script using one of these to accomplish what you want.
With ImageMagick or GraphicsMagick, you would need to have PHP make a command line call to the appropriate program using exec() with convert -colorspace CMYK to convert.
With Imagick, you could use something like this:
function convertCMYK($filename) { $image = new Imagick($filename); $image->setImageColorspace(Imagick::COLORSPACE_CMYK); $image->writeImage($filename); // this will replace the old file! }
This function will take a filename and convert that file into CMYK, replacing the old one.
The Imagick function can be directly converted to Gmagick by simply replacing Imagick with Gmagick (in the two cases).
After that, it's just a matter of printing out a link to the image, which would be simple to code in PHP or add to the function above. This is all provided that your server supports one of the above.
No, generally Zenphoto is a web gallery CMS where CMYK is really not important. If people print anything that will most likely be desktop printer who don't really understand CMYK anyway.
For real offset/digital printing I doubt that converting via imagick or the like generates really good printable images (I admit I actually don't know how the quality is). You should do these thingsg better with real image editors. For example what about color profiles which are quite important?