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.
$im = new Imagick;
$im->readImage('30062007038.jpg');
$im->setImageFilename('aa.tmp');
$im->setImageFormat('jpeg');
$im->writeImage();
but i get exception:
Fatal error: Uncaught exception 'ImagickException' with message 'no encode delegate for this image format `aa.tmp'' in test.php:33 Stack trace: #0 test.php(33): Imagick->writeimage() #1 {main} thrown in test.php on line 33
Is there any chance to do this??
thx for any help.