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
Code: Select all
convert {$name}.pdf -profile cmyk.icc -profile srgb.icm -density 300 -resample 72x72 -units PixelsPerInch {$name}.tif
Code: Select all
exec("convert {$name}.pdf -profile cmyk.icc -profile srgb.icm -density 300 -resample 72x72 -units PixelsPerInch {$name}.tif 2>&1", $array);
echo implode($array,"<br>");
Code: Select all
exec("/usr/local/bin/convert -density 300 -units PixelsPerInch -profile cmyk.icc -profile srgb.icm {$name}.pdf -resample 72x72 {$name}.tif");