Convert & Color Profiles: Command line, Yes. PHP Exec, No.
Posted: 2007-03-05T17:35:57-07:00
CentOS 4, Apache 2.0.53, PHP 4, IM6.3.2 Q16
The following code successfully converts a CMYK PDF to a RGB TIF/JPG when entered in command line:
However, when I call the exact same command within an EXEC() function, the color profile is destroyed. Firefox says there are errors and Photoshop says ICC profile is invalid. Anyone know what I am doing wrong or know how I could find out what Apache is doing?
The following code successfully converts a CMYK PDF to a RGB TIF/JPG when entered in command line:
Code: Select all
convert {$name}.pdf -profile cmyk.icc -profile srgb.icm -density 300 -resample 72x72 -units PixelsPerInch {$name}.tif