Page 1 of 1

Targa (.tga) format not detected from stdin

Posted: 2014-08-09T03:22:47-07:00
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

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

Posted: 2014-08-09T05:02:00-07:00
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