Replies: 4 comments
-
Hi @AurL, This is an imagemagick limitation -- it doesn't have a recogniser for formats like tga and ico, so it can't signal to libvips that it can handle these file types. libvips has some special code to spot ICO files and hand them off to imagemagick, but it doesn't have a special sniffer for TGA. I'll add one. Thanks for the suggestion! |
Beta Was this translation helpful? Give feedback.
-
This seems to be non-trivial --- TGA files don't have any identifying marks: http://fileformats.archiveteam.org/wiki/TGA#Identification We'd need to check that the first 18 bytes have "reasonable" values. The code would need to go in here: https://github.com/libvips/libvips/blob/master/libvips/foreign/magick.c#L55-L73 |
Beta Was this translation helpful? Give feedback.
-
I don't have time to develop this right now. Patches very welcome. |
Beta Was this translation helpful? Give feedback.
-
Ho ok, it makes sense now. Thanks a lot for the clarification and all the pointers 👍 |
Beta Was this translation helpful? Give feedback.
-
I can't currently handle TGA images using libvips with the latest versions without hitting this:
vipsheader: VipsForeignLoad: "../tga.tga" is not a known file format
.I tested with different versions and found that it works until version
8.7.4
, and starts to fail with8.8.1
, but I have no clue what could explain this result.Here is what I get:
Expected
Observed
Context and Environment
Here is the output of
./configure
I get when building libvips, in case there is something obvious I didn't see:In case it could be related to the environment, here is the content of the
Dockerfile
I use to generate the image and the container from which I compile and play with libvips (some deps are for other tools, not necessarily vips)From what I understand, TGA are read through libmagick and passed to libvips, as for other formats such as DDS or PSD which are working as expected.
I might be missing something, like a dependency version thing, or maybe it's an actual bug (but It would be surprising to be noticed only now).
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions