SVG file info error

Started by ed.zanon, September 16, 2019, 05:16:58 AM

Previous topic - Next topic

ed.zanon

I've tried to detect file info (es mimetype) from SVG file, but support missing.

Is a bug, o I must request the feature? Is possible to support this type of file?

Output:

ExifTool Version Number         : 11.65
File Name                       : svg.svg
Directory                       : D:/image_test
File Size                       : 1204 bytes
File Modification Date/Time     : 2019:07:10 14:50:19+02:00
File Access Date/Time           : 2019:09:16 10:29:11+02:00
File Creation Date/Time         : 2019:09:16 09:07:28+02:00
File Permissions                : rw-rw-rw-
Error                           : File format error

Hayo Baan

Hmm, I think Phil needs to have a look at this one; the file looks fine (I can view the image in my browser), but exiftool doesn't like it somehow...
Hayo Baan – Photography
Web: www.hayobaan.nl

olball

After adding the XML declaration

<?xml version="1.0" encoding="UTF-8"?>

at the begin of the file, exiftool recognize the svg file. I'm not sure if this is required in svg files or if this is optional.

ed.zanon

#3
I've export the svg file directly from an photoshop project.
The file have the header if is exported with illustrator.
A lot of svg file that can be found in the web haven't this string.

ed.zanon

@Phil Harvey There isn't a solution to this problem?
Must I append the header?

Hayo Baan

Phil is currently on holiday but is due back tomorrow. I'm sure he'll respond in the coming days.
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

Thanks for this report.  ExifTool 11.66 will properly identify these files.

- 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 ($).

ed.zanon


Phil Harvey

ExifTool 11.66 is now available.

- 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 ($).

ed.zanon

I've tried and now works perfectly.
Thanks a lot for your work.