Image magic 7 with identify command not working

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
punith8626
Posts: 16
Joined: 2016-12-29T05:13:36-07:00
Authentication code: 1151

Image magic 7 with identify command not working

Post by punith8626 »

Hello,

When I try to execute command using Image magic 7 it gives the result.

Code: Select all

identify -format %n test.tif
But When I try to execute from php code nothing will be output
Here is the PHP code.

Code: Select all

putenv($this->imageMagicPath);
$tiffimage = 'test.tiff';
$totalPageCount = exec('identify -format %n '.$tiffimage.' ');
Could you please help me on this?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Image magic 7 with identify command not working

Post by Bonzo »

I think you need to use magick identify in V7
Post Reply