Need to get JPG from scanned TIFF image in php imagick


There is a scanned TIFF image with parameters 16bit, 14000px X 14000px, 1200dpi. In php imagick I do:

$im->readImage( $DOCUMENT_ROOT.$TifFilePath );  
$im->setImageFormat( "jpg" );

I get a file with an image of the same linear dimensions and resolution. The file size is about 40 mb. It is necessary to reduce the size of the output file by an order of magnitude, even at the cost of degrading the image quality. Linear dimensions and resolution must be preserved.


Try resizing the image, or scaling it:

        $imagick = new \Imagick;





        $imagick->writeImages($path.$filename, false);

Scroll to Top