"no decode delegate for this image format" with Targa (.TGA)
Posted: 2012-03-29T08:51:06-07:00
THE PROBLEM:
When I try instantiating a .TGA image file using PHP/Imagick, I'm getting the message "no decode delegate for this image format":
However, when I convert the file using a Linux command prompt on the same machine, it works just fine:
Why does it work ok from the command line, but not in PHP/Imagick?
A SOLUTION?
Do I need to install a delegate? I don't see a TGA delegate in the available downloads:
http://www.imagemagick.org/download/delegates/
CONFIG INFO:
- ImageMagick 6.6.0-4 2010-11-16 Q16
- Linux / Apache
- Here is my current delegate config (TGA is not shown):
- However, TGA does show in the format list:
Thank you!
When I try instantiating a .TGA image file using PHP/Imagick, I'm getting the message "no decode delegate for this image format":
Code: Select all
$img = new Imagick($filePath);
PHP Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/tmp/magick-XXT16rXm' @ constitute.c/ReadImage/530'
Code: Select all
convert file1.tga file1.jpg
A SOLUTION?
Do I need to install a delegate? I don't see a TGA delegate in the available downloads:
http://www.imagemagick.org/download/delegates/
CONFIG INFO:
- ImageMagick 6.6.0-4 2010-11-16 Q16
- Linux / Apache
- Here is my current delegate config (TGA is not shown):
Code: Select all
convert -list configure
.
.
.
DELEGATES bzlib djvu fontconfig freetype gvc jpeg jng jp2 lcms lqr openexr png rsvg tiff x11 xml wmf zlib
.
.
.
Code: Select all
identify -list format
.
.
.
TGA* TGA rw+ Truevision Targa image
.
.
.
Thank you!