ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: ed.zanon on September 16, 2019, 05:16:58 AM

Title: SVG file info error
Post by: ed.zanon on September 16, 2019, 05:16:58 AM
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
Title: Re: SVG file info error
Post by: Hayo Baan on September 16, 2019, 11:29:56 AM
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...
Title: Re: SVG file info error
Post by: olball on September 16, 2019, 11:44:25 AM
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.
Title: Re: SVG file info error
Post by: ed.zanon on September 17, 2019, 03:32:45 AM
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.
Title: Re: SVG file info error
Post by: ed.zanon on September 24, 2019, 04:18:09 AM
@Phil Harvey There isn't a solution to this problem?
Must I append the header?
Title: Re: SVG file info error
Post by: Hayo Baan on September 24, 2019, 10:04:22 AM
Phil is currently on holiday but is due back tomorrow. I'm sure he'll respond in the coming days.
Title: Re: SVG file info error
Post by: Phil Harvey on September 25, 2019, 11:20:49 AM
Thanks for this report.  ExifTool 11.66 will properly identify these files.

- Phil
Title: Re: SVG file info error
Post by: ed.zanon on September 26, 2019, 02:44:16 AM
Thanks a lot!  ;D ;D ;D
Title: Re: SVG file info error
Post by: Phil Harvey on September 30, 2019, 09:14:22 AM
ExifTool 11.66 is now available.

- Phil
Title: Re: SVG file info error
Post by: ed.zanon on October 01, 2019, 02:58:35 AM
I've tried and now works perfectly.
Thanks a lot for your work.