Support » Plugin: EWWW Image Optimizer » Compressing the original "full" sized JPEG image

  • Resolved berweb


    First of all great plugin i’m going to adopt.

    I installed and everything seems to work fine.

    My only problem is i usually use the original ‘full’ sized file uploaded by my users, EWWW cleans it’s meta data but doesn’t force the JPEG compression level (which my users many times upload at 100%), so the sized versions are both meta free and compress reasonably, but not the original file.

    I’d be hapy to know whether the plugin has this functionality or if i can get a clue of where can i hook up and do this re JPEG compression, i don’t need or want to save the original file.

    Thank you very much, Tom

    jpegtran: OK version: Independent JPEG Group’s JPEGTRAN, version 9 13-Jan-2013
    optipng: OK version: OptiPNG version 0.7.4
    gifsicle: OK version: LCDF Gifsicle 1.68
    Graphics libraries (only used for conversion, not optimization): GD: OK   Imagemagick ‘convert’: MISSING
    safe mode: Off  exec(): OK  shell_exec(): OK  
    Only need one of these: finfo: OK  getimagesize(): OK  mime_content_type(): OK
    Debug Info

    jpegtran path: /var/www/html/wp-content/ewww/jpegtran
    optipng path: /var/www/html/wp-content/ewww/optipng
    gifsicle path: /var/www/html/wp-content/ewww/gifsicle
    pngout path:
    disabled functions:
    gifsicle permissions: 0755
    optipng permissions: 0755
    wp-content/ewww permissions: 0777
    user: apache
    Operating environment: Linux 3.2.39-6.88.amzn1.x86_64 #1 SMP Sat Mar 2 05:13:37 UTC 2013 x86_64

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


    Had a hard time following that, but I’ll try to answer as best as I can. This plugin does not do any re-compression which is lossy, it only does lossless optimizations which generally includes using newer encoding techniques (JPGs), and searching for better compression algorithms (PNGs).

    There is a plugin called Enable Media Replace that you could use to allow you to download the full-size, re-compress it (with photoshop or the GIMP), and then re-upload it in place of the original image. I’m not aware of any plugins that will re-compress your images to a lower quality setting, which would be really difficult, since it is generally near impossible to determine the original quality/compression setting.

    Thank you,

    Didn’t know it wasn’t possible but now that you say it makes sense (dumb me)

    Plugin Author nosilver4u


    Don’t beat yourself up too much, I had always assumed the quality setting was somehow stored in the jpeg until I started developing this plugin. Unfortunately, the nature of the jpg compression means that even repeatedly saving the same jpg at quality 90 will generally result in pixel loss every time it is re-saved (probably not really noticeable, unless you’ve edited and saved something 100+ times)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Compressing the original "full" sized JPEG image’ is closed to new replies.