Im getting the following error when trying to create a PNG image using Imagick (using PHP).
Code: Select all
Fatal error: Uncaught exception 'ImagickException' with message 'corrupt image `/tmp/magick-uQj1QpOB' @ error/png.c/ReadPNGImage/3134' in /var/www/vhosts/domain.net/httpdocs/classes/main.class.php:475 Stack trace: #0 /var/www/vhosts/domain.net/httpdocs/classes/main.class.php(475): Imagick->__construct('/var/www/vhosts...') #1 /var/www/vhosts/domain.net/httpdocs/admin/classes/admin.class.php(606): Main->MakeThumb('120', '50', '/var/www/vhosts...', '/var/www/vhosts...', 'image/png') #2 /var/www/vhosts/domain.net/httpdocs/admin/editcompany.php(51): Admin->EditCompany() #3 {main} thrown in /var/www/vhosts/domain.net/httpdocs/classes/main.class.php on line 475
Thanks,
Bradley