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);