<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 2:50 AM, 神癒礁湖 (Rafael Laguna) <span dir="ltr"><<a href="mailto:rafaellaguna@gmail.com" target="_blank">rafaellaguna@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Sorry, missunderstood you.  To reduce file sizes on all icons I use to run a script of my own that Inkscape itself healthy to clean them. I use that script when updating a whole icon folder.</p>
<p>But I must warn you that reducing "too much" the svg files may damage some xml attributes and become ugly or totally useless. There are some svg attributes that I intentionally put in an icon that "shrinkers" ignore. <br>

</p><div class="im">
<p>--<br>
紳癒礁湖 (Rafael Laguna)<br>
Lubuntu Artwork Team</p>
</div></blockquote><div> <br>@Julien, I have no experience in packaging and I've never used the dh command.<br></div></div><br>@Julien and @Rafael,<br><br>Yes, aggressive use of scour could possibly damage things but I'm not sure that just the default settings could be harmful. I'll give an example of the screen output below for scouring /usr/share/icons/lubuntu/devices/48/phone.svg.<br>
As a precaution I copied the file to my desktop and ran the following command:<br>python /usr/share/pyshared/scour.py -i phone.svg -o out.svg<br><br>The output on the screen shows what scour did:<br>[06:17 AM] ~/Desktop $ python /usr/share/pyshared/scour.py -i phone.svg -o out.svg<br>
scour 0.26<br>Copyright Jeff Schiller, Louis Simard, 2010<br> File: phone.svg <br> Time taken: 0.49s<br> Number of elements removed: 53<br> Number of attributes removed: 273<br> Number of unreferenced id attributes removed: 0<br>
 Number of style properties fixed: 36<br> Number of raster images embedded inline: 0<br> Number of path segments reduced/removed: 144<br> Number of bytes saved in path data: 1728<br> Number of bytes saved in colors: 234<br>
 Number of points removed from polygons: 0<br> Number of bytes saved in comments: 0<br> Number of bytes saved in id attributes: 0<br> Number of bytes saved in lengths: 70<br> Number of bytes saved in transformations: 403<br>
 Original file size: 56781 bytes; new file size: 24244 bytes (42.69%)<br>[06:26 AM] ~/Desktop $ <br><br>I agree that there is a possibility that some files could be damaged, but in the few days I been playing around, I haven't seen any damage caused by using scour.<br>
(There are settings that could be make scour more aggressive but I'm only using the defaults.)<br>