TIFF Compression
Posted: 2009-04-03T00:57:31-07:00
I'm generating a 3355 x 2410 image and I need to have layers in the image, so as IM can't create layers within the PSD format at the moment, I'm having to use TIFF.
Problem is, it doens't seem to want to use a compression format at all.
Here's the code, but whatever compression format I try and use, it turns out a 48MB file.
Any idea as to why it won't accept any compression settings?
Problem is, it doens't seem to want to use a compression format at all.
Here's the code, but whatever compression format I try and use, it turns out a 48MB file.
Code: Select all
$wPreview = $Preview->GenerateMaster($MasterFile,$ImageSetup->Fields,false);
$Res = MagickSetImageFormat($wPreview,'TIFF');
$Res = MagickSetImageCompression($wPreview,MW_ZIPCompression);
MagickWriteImage($wPreview,"$ImageDir/$OrderID-{$Order->LineItems->Rows[$nCount]['order_line_id']}-production.tiff");
DestroyMagickWand($wPreview);