<div><font color="#000000"><font><font face="arial,helvetica,sans-serif">I apppreciate a lot your info. I'll take a look into that python script. But I will continue using the Inkscape batch one. I prefer treating the icons as Inkscape SVGs, not as standard SVG, because some gradients and clipping masks are a bit more complex than XML/SVG standard definitions.<br clear="all">
</font></font></font></div><div><font color="#000000"><font><font face="arial,helvetica,sans-serif"><br></font></font></font></div><div><font color="#000000"><font><font face="arial,helvetica,sans-serif">In a folder I've recently "compressed" the real gain was about 40%, pretty similar to Scour.<br>
</font></font></font></div><div><font color="#000000"><font><font face="arial,helvetica,sans-serif"><br></font></font></font></div><div><font color="#000000"><font><font face="arial,helvetica,sans-serif">Thanks so much for your apport ;)<br>
</font></font></font></div><div><font color="#000000"><font><font face="arial,helvetica,sans-serif"><br></font></font></font></div>--<br>紳癒礁湖 (Rafael Laguna)<br>Lubuntu Artwork Team<br><br><br><br><br>
<br><br><div class="gmail_quote">2012/11/7 Hitesh Shah <span dir="ltr"><<a href="mailto:chimak111@gmail.com" target="_blank">chimak111@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">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>
<p>--<br>
紳癒礁湖 (Rafael Laguna)<br>
Lubuntu Artwork Team</p>
</div></blockquote></div><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>
<br>--<br>
Lubuntu-users mailing list<br>
<a href="mailto:Lubuntu-users@lists.ubuntu.com">Lubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/lubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/lubuntu-users</a><br>
<br></blockquote></div><br>