0
Welcome Guest!
Login
0
items
Join Now
Login
Join Now
Search
Home
Grav
Themes
Joomla!
Templates
Extensions
WordPress
Themes
Plugins
Docs
Forum
Perks
You are here:
General
General Discussion
Topic
Optipng to reduce PNG files
Last Post
Search Topic
Optipng to reduce PNG files
Posted 17 years 10 months ago
I found an open source tool to reduce the size of the images on my site:
optipng.sourceforge.net/
I used it with the Carbonated theme, and reduced the size of the images up to 30%.
Is there any downside to doing this? Why not have every theme optimized this way by default?
#77496
Andy Miller
Preeminent Rocketeer
Posts:
9919
Thanks:
96
Web Kahuna
Re: Optipng to reduce PNG files
Posted 17 years 10 months ago
i actually tried pngcrusher which uses optipng for replicant and it barely made any difference at all.
#77503
Bob Ateah
Elite Rocketeer
Posts:
4521
Thanks:
0
Re: Optipng to reduce PNG files
Posted 17 years 10 months ago
Does it do transparent .png files that work in IE?
The member formerly known as Roland Deschain
After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
#77504
Re: Optipng to reduce PNG files
Posted 17 years 10 months ago
I ran optipng like this in the rt_carbonation/images directory:
optipng -k -o7 *png
It trimmed the total size of images in that directory from 20501 bytes to 16345 bytes, about a 20% savings.
Here are the original sizes:
[simon@buttercup images]$ du -bc *png
321 arrow.png
401 bq_end.png
408 bq_start.png
211 color-blue.png
211 color-green.png
211 color-grey.png
211 color-orange.png
211 color-pink.png
211 color-red.png
511 emailButton.png
1774 head_carbon.png
1423 head_hilite.png
536 head_menu_sep.png
485 head_shad_bl.png
253 head_shad_b.png
484 head_shad_br.png
277 head_shad_l.png
276 head_shad_r.png
214 indent1.png
214 indent2.png
214 indent3.png
214 indent4.png
390 left_bg.png
1130 left_h3_bg.png
457 mbox_shad_bl.png
257 mbox_shad_b.png
457 mbox_shad_br.png
235 mbox_shad_l.png
233 mbox_shad_r.png
393 mbox_shad_tl.png
251 mbox_shad_t.png
440 mbox_shad_tr.png
202 menu_sep.png
411 pdf_button.png
527 printButton.png
430 reflect_l.png
315 reflect_m.png
457 reflect_r.png
399 right_bg.png
1141 right_h3_bg.png
200 tbox_sep.png
461 tbox_shad_bl.png
262 tbox_shad_b.png
466 tbox_shad_br.png
235 tbox_shad_l.png
233 tbox_shad_r.png
436 tbox_shad_tl.png
330 tbox_shad_t.png
482 tbox_shad_tr.png
20501 total
After optipng:
321 arrow.png
359 bq_end.png
408 bq_start.png
211 color-blue.png
211 color-green.png
211 color-grey.png
211 color-orange.png
211 color-pink.png
211 color-red.png
508 emailButton.png
1599 head_carbon.png
1313 head_hilite.png
227 head_menu_sep.png
317 head_shad_bl.png
241 head_shad_b.png
301 head_shad_br.png
204 head_shad_l.png
207 head_shad_r.png
210 indent1.png
210 indent2.png
210 indent3.png
210 indent4.png
263 left_bg.png
617 left_h3_bg.png
315 mbox_shad_bl.png
211 mbox_shad_b.png
306 mbox_shad_br.png
199 mbox_shad_l.png
199 mbox_shad_r.png
303 mbox_shad_tl.png
210 mbox_shad_t.png
324 mbox_shad_tr.png
202 menu_sep.png
410 pdf_button.png
526 printButton.png
340 reflect_l.png
235 reflect_m.png
346 reflect_r.png
265 right_bg.png
619 right_h3_bg.png
200 tbox_sep.png
307 tbox_shad_bl.png
211 tbox_shad_b.png
302 tbox_shad_br.png
199 tbox_shad_l.png
199 tbox_shad_r.png
328 tbox_shad_tl.png
243 tbox_shad_t.png
355 tbox_shad_tr.png
16345 total
#77531
Re: Optipng to reduce PNG files
Posted 17 years 10 months ago
I haven't tested it with IE, but the claim is that the PNGs produced by optipng should be the same as any other PNG.
#77533
Time to create page: 0.065 seconds
Powered by
Kunena Forum