Question to *.svg files

Started by herb, October 27, 2021, 05:25:37 AM

Previous topic - Next topic

herb

Hello Phil,

I am working with Exiftool 12.33 on a Windows 10 system.

Retesting my application with various fileformats I also used some *.svg files (found in internet):

For the (attached) small SVG-file Exiftool displays e.g. the "path d=..." items and also the "rect fill=..." items as follows
---- XMP ----
Svg Height                      : 512
Svg View Box                    : 0 0 64 64
Svg Width                       : 512
Svg Xmlns                       : http://www.w3.org/2000/svg
Svg Rect Fill                   : #d8d7da
...
Svg Path D                      : m11 59h38a2.006 2.006 0 0 0 2-2v-50h-2v48a2.006 2.006 0 0 1 -2 2h-36z
Svg Path Fill                   : #c6c5ca
...


But for file sample_5184×3456.svg it does not display "path d=..." items and others.
Therefore it displays e.g. ImageWidth and others, which is not displayed for the small file.
---- SVG ----
SVG Version                     : 1.0
Xmlns                           : http://www.w3.org/2000/svg
Image Width                     : 5184.000000pt


Why is the output so different for these 2 files.
Please have a look into both attached files.

On the other hand: Are "path d=..." items metadata or are they data of the image itself.
I think they are no metadata. Should they be displayed?

Thanks in advance
Best regards
herb

Phil Harvey

Hi Herb,

Thanks for this report.  ExifTool wasn't properly treating the small file as SVG.

I have just released ExifTool 12.34 which fixes this issue.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).