WordPress.org

Support

Support » Plugins and Hacks » EWWW Image Optimizer » [Resolved] [Plugin: EWWW Image Optimizer] Some doubts i have about the optimization

[Resolved] [Plugin: EWWW Image Optimizer] Some doubts i have about the optimization

  • Hello,
    First of all, excelent plugin 🙂

    But i have a question and i would love to have it answered. Right now i use Trimage to do this job, cause i use it on my Ubuntu desktop and figured i would use it on my Ubuntu server too. What i did is set a cron to run the optimizer on upload folder everynight at around 3~4am, so the load won’t slow our website down.

    Trimage uses optipng, pngcrush, advancecomp and jpegoptim, and i want to know if EWWW Image Optimizer, with the libs he uses, would optimize the images better than Trimage. Could you answer this? 🙂

    http://wordpress.org/extend/plugins/ewww-image-optimizer/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nosilver4u

    @nosilver4u

    First, it’s difficult to say too much with accuracy, because I couldn’t find any place where the author had documented the options that trimage passes to the image compression utilities.

    However, here’s what I do know…
    Regarding PNGs, EWWW uses optipng, which is a newer fork of pngcrush designed to be more flexible and faster. I’ve chosen an optimization level for optipng somewhere in the middle of what the author of optipng recommends at http://optipng.sourceforge.net/pngtech/optipng.html

    advancecomp (advpng) apparently does not do everything on it’s own, and trimage runs either optipng or pngcrush in conjunction with advpng.

    All that said, it really depends on what level of optimization trimage uses, and the only way to know, is by testing trimage vs just plain optipng in a few trials (I’ll leave that up to you). The options I use for optipng can be found over on the FAQ. Additionally, in the latest release, I’ve made the level configurable, just beware that higher levels can take considerable time compared to the defaults (even that takes a while as PNGs increase in size).

    Now, for JPGs, from what I remember, jpegtran and jpegoptim use pretty much identical optimization, and I suspect you won’t find any difference there. The only extra space to be squeezed out with either program is by stripping out all the metadata (which is off by default in my plugin, but can be turned on via the Settings page).

    I’m afraid that’s still awfully vague, and requires testing to prove anything, but I hope it helps.

    That actualy helped 🙂
    I will do some tests tonight on my desktop and see what happens… then i come here tell you.

    Thanks!

    Plugin Author nosilver4u

    @nosilver4u

    I released 1.0.5 last night (got a newborn here, so I’m up at odd hours), should produce identical results now between jpegtran and jpegoptim (it did for me). I’d be curious to see what you found out regarding PNGs, and then we can mark this resolved.

    Congrats for the newborn!

    Sorry for the delay,
    Did a test here and with the default settings (on FAQ page), those libs lost by about 1kb to trimage.

    So:
    Image with trimage: 24kb
    Imagine with those libs: 25kb

    But we can now set the compress level on plugin too, right? So i guess it wins. Besides, i won’t need to set a cron to run trimage on wp-upload all the time, so… you won me *installs plugin* 🙂

    Also, congratz on the newborn!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: EWWW Image Optimizer] Some doubts i have about the optimization’ is closed to new replies.
Skip to toolbar