Scour the Inkscape > About image

Bug #387967 reported by codedread on 2009-06-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Low
Unassigned

Bug Description

I am REALLY impressed with the winner of the 0.47 About screen contest: http://fc06.deviantart.com/fs42/f/2009/133/c/6/Inkscape_0_47_contest_entry_by_sko.svg

I ran this image through the scour script (http://launchpad.net/scour/) and it was able to reduce the image to about half the size:

$ ./scour.py -i fulltests/inkscape-047-about.svg -o inkscape-047-about.svg --enable-id-stripping
scour 0.14
Copyright Jeff Schiller, 2009
 File: fulltests/inkscape-047-about.svg
 Time taken: 10.1166666667s
 Number of elements removed: 108
 Number of attributes removed: 328
 Number of unreferenced id attributes removed: 363
 Number of style properties fixed: 450
 Number of raster images embedded inline: 0
 Number of path segments reduced/removed: 186
 Number of bytes saved in path data: 9574
 Number of bytes saved in colors: 3319
 Number of points removed from polygons: 0
 Original file size: 214145 bytes; new file size: 109515 bytes (51.14%)

NOTE that scour automatically removes inkscape elements and attributes in the inkscape/sodipodi namespaces. I don't know if this information is important in the About image for the editor. I plan to add an option to keep these elements/attributes in a future version of scour. I'm open to suggestions on this.

Changed in inkscape:
importance: Undecided → Low
milestone: none → 0.47
status: New → Confirmed
theAdib (theadib) wrote :

pls could you provide the scoured inkscape about screen. PLs attach the document here in the Launchpad tracker.

please note it must contain the copyright info as well as:
<!-- Created with Inkscape (http://www.inkscape.org/) -->

Thx, Adib.

codedread (codedread) wrote :

I've just noticed a problem with scour removing that line so I've manually added it back.

theAdib (theadib) wrote :

I tried to lod the file into /usr/local/share/inkscape/screens/inkscape.svg
It does not show up as about picture.
It does load fine inkscape.

Could you please investigate any further? Maybe some whatever box attributes are missing?

Adib.

codedread (codedread) wrote :

Try removing viewBox="0 0 750 625" and adding back width="750" height="625" in the root <svg>

theAdib (theadib) wrote :

I inserted width and height as described. Now the size comes down from 165,000 to 106,000 bytes.
It displays fine in the about dialogue.
However: on my system E7200 2GB RAM I do not see _much_ speed improvement. This might not the case on older machines. pls try yourself!
Adib.

codedread (codedread) wrote :

I do not see any noticeable speed improvement either. Scour is more about decreasing loading times, removing unnecessary elements and reducing file size. Any rendering improvements would only be a bonus.

ScislaC (scislac) wrote :

Sorry, closed this as won't fix. Part of the beauty of distributing the About screen with all of the inkscape specific info in there is that for curious users, they can learn more about how certain effects were achieved.

Changed in inkscape:
status: Confirmed → Won't Fix
codedread (codedread) wrote :

Hi ScislaC,

I have no problem with you closing this bug. FYI, after originally raising the bug I did add an option to keep the editor data (Inkscape, Illustrator, etc) in the SVG file. I have no idea if that would offer any marked improvement in loading time/file size (I actually doubt it), but I thought I should mention it.

Jeff

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers