PCD Files support

saidts

Joined: 2007-03-27
Posts: 44
Posted: Wed, 2008-08-27 18:25

I found how to implement the code to G2 support maximum resolution of PCD files (see http://gallery.menalto.com/node/30852)

After the following lines into ImageMagickToolkit.class file:

case 'image/jpeg-cmyk':
case 'image/tiff-cmyk':
case 'application/photoshop-cmyk':
if (substr($outputMimeType, -5) != '-cmyk') {
$command[] = '-colorspace';
$command[] = 'RGB';
}
break;

Add these lines:

case 'image/x-photo-cd':
/*
* PCD images in highest resolution
*/
$sourceFilename .= '[5]';
break;
}

Note: I don't test this with PCD files that doesn't have the 5th page!

BUT: There is an bug when I replicate a PCD file: the replica turns to 768x512