View Issue Details

IDProjectCategoryView StatusLast Update
0000298file[All Projects] Generalpublic2021-11-14 12:12
ReporterTamaranchAssigned Tochristos 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.41 
Target VersionFixed in Version 
Summary0000298: SVGZ compressed image files created by Inkscape are identified as application/gzip
DescriptionInkscape can create two types of SVGZ formats: lossy and lossless.
Both are identified by `file` or `magic_file()` as application/gzip, while a library like librsvg is able to recognize them and allow their loading via gdk-pixbuf.
Steps To ReproduceOpen an SVG image file in Inkscape and save it as SVGZ.
Tagsmagic

Activities

christos

2021-11-13 17:49

manager   ~0003669

Can you please attach a couple of sample files?

Tamaranch

2021-11-13 18:22

reporter   ~0003670

Here are three file: original (*.svg), Inkscape lossly (*_inkscape_simple.svgz), Inkscape lossless (*_inkscape.svgz).

splash_inkscape_simple.svgz (4,510 bytes)
splash_inkscape.svgz (4,838 bytes)
splash.svg (11,867 bytes)
org.xfce.ristretto_inkscape_simple.svgz (4,530 bytes)
org.xfce.ristretto_inkscape.svgz (5,246 bytes)
org.xfce.ristretto.svg (30,221 bytes)
org.xfce.mousepad_inkscape_simple.svgz (8,650 bytes)
org.xfce.mousepad_inkscape.svgz (9,394 bytes)
org.xfce.mousepad.svg (98,088 bytes)

christos

2021-11-14 01:08

manager   ~0003671

Thanks, these are just compressed files; use file -z to see what's inside.

Tamaranch

2021-11-14 11:38

reporter   ~0003672

Oh right, and so the `MAGIC_COMPRESS` flag for libmagic.
I was misled by the fact that the .svgz (or .svg.gz) files produced by `convert file.svg file.svgz` were recognized directly.
But they are actually still SVG files in this case, unlike the files linked here.

I'll try to push my tests a bit further and read the documentation better before reporting a bug next time, sorry ^^'.
Thanks!

christos

2021-11-14 12:12

manager   ~0003673

No fix necessary, files are just compressed.

Issue History

Date Modified Username Field Change
2021-11-08 07:53 Tamaranch New Issue
2021-11-08 07:53 Tamaranch Tag Attached: magic
2021-11-13 17:49 christos Assigned To => christos
2021-11-13 17:49 christos Status new => assigned
2021-11-13 17:49 christos Status assigned => feedback
2021-11-13 17:49 christos Note Added: 0003669
2021-11-13 18:22 Tamaranch File Added: org.xfce.mousepad.svg
2021-11-13 18:22 Tamaranch File Added: org.xfce.mousepad_inkscape.svgz
2021-11-13 18:22 Tamaranch File Added: org.xfce.mousepad_inkscape_simple.svgz
2021-11-13 18:22 Tamaranch File Added: org.xfce.ristretto.svg
2021-11-13 18:22 Tamaranch File Added: org.xfce.ristretto_inkscape.svgz
2021-11-13 18:22 Tamaranch File Added: org.xfce.ristretto_inkscape_simple.svgz
2021-11-13 18:22 Tamaranch File Added: splash.svg
2021-11-13 18:22 Tamaranch File Added: splash_inkscape.svgz
2021-11-13 18:22 Tamaranch File Added: splash_inkscape_simple.svgz
2021-11-13 18:22 Tamaranch Note Added: 0003670
2021-11-13 18:22 Tamaranch Status feedback => assigned
2021-11-14 01:08 christos Status assigned => feedback
2021-11-14 01:08 christos Note Added: 0003671
2021-11-14 11:38 Tamaranch Note Added: 0003672
2021-11-14 11:38 Tamaranch Status feedback => assigned
2021-11-14 12:12 christos Status assigned => resolved
2021-11-14 12:12 christos Resolution open => fixed
2021-11-14 12:12 christos Note Added: 0003673