Community
Participate
Working Groups
svgz is a compressed format of svg.
From a quick test, it seems that if you rename your .svgz file as .svg, it will be correctly loaded. However a .svgz will not be recognized, and we try to load through SWT (instead of Batik), which causes a crash (Unrecognized file format). So the issue is only in the file name to decoder matching logic.
I see a lot of code with duplicate tests like this: if (path != null && path.toUpperCase().endsWith(ImageFileFormat.SVG.getName())) { image = SVGWorkspaceImageFigure.flyWeightImage(path); } else { image = WorkspaceImageFigure.flyWeightImage(path); } These tests should really be centralized in the factory methods in WorkspaceImageFigure instead of scattered all over the place in the code base. This should be done before the support for "svgz" file names, so that this change need only been done in that central place. On a related note, it's really ugly that ImageFileFormat only exposes a name and requires all clients to do this kind of tests themselves.
currently working on it
wating for review : https://git.eclipse.org/r/#/c/41499/
Gerrit change https://git.eclipse.org/r/41499 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7d530c2cadeb2f2e6b6a9e777caf2774856d1a7c
Merged as 7d530c2cadeb2f2e6b6a9e777caf2774856d1a7c
Verified on Sirius 3.0.0M6
Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0.