Targa (.tga) format not detected from stdin

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
vit
Posts: 1
Joined: 2014-08-09T02:43:31-07:00
Authentication code: 6789

Targa (.tga) format not detected from stdin

Post by vit »

Hello,

if I pipe a targa image, the format is not detected...

Code: Select all

cat test.tga | convert - test.png
convert.im6: pas de délégué pour décoder ce format d'image `/tmp/magick-LyUCfXRY' @ error/constitute.c/ReadImage/544.
convert.im6: pas d'images définies `test.png' @ error/convert.c/ConvertImageCommand/3044.
if I pipe a jpeg or tiff image, the format is detected...

Code: Select all

cat test.jpg | convert - test.png

Code: Select all

cat test.tiff | convert - test.png
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

Linux 3.13.0-32-generic #57-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Targa (.tga) format not detected from stdin

Post by dlemstra »

This does not work because the .TGA file format does not start with a marker to let us detect the file format (http://en.wikipedia.org/wiki/Truevision_TGA). You will have to do something like this:

Code: Select all

cat test.tga | convert tga:- test.png
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply