Converting TIFF into PNG - Colour problems
Posted: 2013-03-19T09:41:13-07:00
Hi guys,
I have a large amount of high resolution TIFF images which I need to batch convert into transparent PNG images. As it stands I've managed to convert, resize and significantly reduce the image file size quite successfully. The only problem I'm having is the difference in the image colour. I'm running the following code in my PHP script:
Hopefully you can see what I'm attempting to achieve. I've also attempted using the colorspace option but to no avail. The colours returned in the PNG are a lot paler than in the original TIFF image and don't represent the original image very well. I've also attempted to do something similar converting to a JPEG but that has the opposite effect as the colours seem to get a lot brighter.
Hopefully someone with a lot more know how than myself will be able to point me in the right direction.
Thanks.
I have a large amount of high resolution TIFF images which I need to batch convert into transparent PNG images. As it stands I've managed to convert, resize and significantly reduce the image file size quite successfully. The only problem I'm having is the difference in the image colour. I'm running the following code in my PHP script:
Code: Select all
exec($command = "$convert \"tiffImage.tif\" -background transparent -density 72 -resize 15x15% \"newImage.png\"", $output, $retval);
Hopefully someone with a lot more know how than myself will be able to point me in the right direction.
Thanks.