Support » Plugin: EWWW Image Optimizer » How the plugin works? And: Is it working now on my blog?

  • Resolved Marco Panichi

    (@marcopanichi)


    I’m sorry for the dumb question. The fact is that I don’t really understand how the plugin works:

    Do I have to launch some bulk operation or is it automatic once installed?

    Moreover, my image seems (please let me know if you want more detail about this point) to load very slowly, as the plugin isn’t working.

    Here is the debug output from the plugin settings page:

    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    generated paths:
    /web/htdocs/www.marcopanichi.com/home/wp-content/plugins/ewww-image-optimizer/jpegtran-linux
    /web/htdocs/www.marcopanichi.com/home/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /web/htdocs/www.marcopanichi.com/home/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle
    Linux/UNIX style OS, checking permissions
    jpegtran permissions: 0755
    gifislce permissions: 0755
    optipng permissions: 0755
    ewww_image_optimizer_path_check()
    found /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran: 2dab67e5f223b70c43b2fef355b39d3f
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    found /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng: 4eb91937291ce5038d0c68f5f2edbcfd
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng: OptiPNG version 0.7.4
    found /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle: 44273fad7b3fd1145bfcf35189648f66
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle: LCDF Gifsicle 1.70
    ewww_image_optimizer_tool_found()
    pngout-static: sh: pngout-static: command not found
    ewww_image_optimizer_tool_found()
    pngout: sh: pngout: command not found
    ewww_image_optimizer_tool_found()
    /usr/bin/pngout-static: sh: /usr/bin/pngout-static: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/bin/pngout: sh: /usr/bin/pngout: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/local/bin/pngout-static: sh: /usr/local/bin/pngout-static: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/local/bin/pngout: sh: /usr/local/bin/pngout: No such file or directory
    using: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran
    using: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng
    using: /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle
    ewww_image_optimizer_options()
    ewww_image_optimizer_install_paths()
    generated paths:
    /web/htdocs/www.marcopanichi.com/home/wp-content/plugins/ewww-image-optimizer/jpegtran-linux
    /web/htdocs/www.marcopanichi.com/home/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /web/htdocs/www.marcopanichi.com/home/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/optipng: OptiPNG version 0.7.4
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.marcopanichi.com/home/wp-content/ewww/gifsicle: LCDF Gifsicle 1.70
    ewww_image_optimizer_gd_support()
    GD found, supports:
    GD Version: bundled (2.0.34 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support: 1
    ewww_image_optimizer_tool_found()
    convert: Version: ImageMagick 6.2.8 05/07/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
    disabled functions: system,popen,dl,passthru,proc_open,shell_exec
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    ewww_image_optimizer_tool_found()
    /usr/bin/nice: sh: /usr/bin/nice: No such file or directory
    ewww_image_optimizer_tool_found()
    nice: 0
    ewww_image_optimizer_tool_found()
    tar: tar (GNU tar) 1.15.1
    ewww_image_optimizer_jpeg_background()
    ewww_image_optimizer_jpeg_background()
    ewww_image_optimizer_jpg_quality()

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

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

    (@nosilver4u)

    Everything appears to be in order. After the plugin is installed, it is necessary to either run the bulk optimize, or use the links by each image in the media library to optimize individual images.

    Otherwise, all images uploaded after installing the plugin will be optimized automatically.

    Regarding the ‘slow’ loading, please give more information on exactly what you are doing (what kind of image, how large, any settings you’ve changed for the plugin), and seems to be happening as a result.

    Thread Starter Marco Panichi

    (@marcopanichi)

    Hi Nosilver4u,

    Thank you for the fast response!

    Now I’ve understood completly. The problem was that I’ve never searched the “Bulk Optimize” button under Media menu – my fault!

    Regarding the “slow” let’s consider this example:
    PAGE: http://www.marcopanichi.com/portfolio/creazione-sito-monopagina-per-agenzia-di-promozione/
    IMAGE: http://www.marcopanichi.com/wp-content/uploads/2013/06/tuttosito.png
    WEIGHT: 1,10 Mb

    What can I do to make this image lighter?

    PS: The gallery that use this image own to my theme. Maybe I’m using the original image while I have to use another image?

    Plugin Author nosilver4u

    (@nosilver4u)

    I would convert the image to a jpg. There should be a link in the media library to attempt a conversion, and it will only save the new one if it is actually smaller. That particular image contains lots of ‘photographic’ elements, making png a poor choice for this image. Generally, if you have a PNG over 500 kb, it probably ought to be a JPG (unless there is some reason to preserve every single pixel, since JPG discards some in the compression).

    Oh, almost forgot. I uploaded the image on my test site and converted it, and it ended up saving over 50%.

    Thread Starter Marco Panichi

    (@marcopanichi)

    Ok, I’ve activated the PNG to JPG convertion (except for png with transparency) and now I’m performing a Bulk optimization.

    I’m returning this debug prospect:

    ewww_image_optimizer_resize_from_meta_data()
    meta file path: 2013/09/images1.jpg
    generated absolute path: /web/htdocs/www.---.com/home/wp-content/uploads/2013/09/images1.jpg
    ewww_image_optimizer()
    ewww_image_optimizer_tool_found()
    /usr/bin/nice: sh: /usr/bin/nice: No such file or directory
    ewww_image_optimizer_tool_found()
    nice: 0
    permissions: 0644, owner: , group:
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/uploads/2013/09/images1.jpg
    getimagesize: image/jpeg
    ewww_image_optimizer_path_check()
    found /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran: 2dab67e5f223b70c43b2fef355b39d3f
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    found /web/htdocs/www.---.com/home/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.---.com/home/wp-content/ewww/optipng: 4eb91937291ce5038d0c68f5f2edbcfd
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/ewww/optipng
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.---.com/home/wp-content/ewww/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.---.com/home/wp-content/ewww/optipng: OptiPNG version 0.7.4
    found /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle: 44273fad7b3fd1145bfcf35189648f66
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle: LCDF Gifsicle 1.70
    ewww_image_optimizer_tool_found()
    pngout-static: sh: pngout-static: command not found
    ewww_image_optimizer_tool_found()
    pngout: sh: pngout: command not found
    ewww_image_optimizer_tool_found()
    /usr/bin/pngout-static: sh: /usr/bin/pngout-static: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/bin/pngout: sh: /usr/bin/pngout: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/local/bin/pngout-static: sh: /usr/local/bin/pngout-static: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/local/bin/pngout: sh: /usr/local/bin/pngout: No such file or directory
    using: /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran
    using: /web/htdocs/www.---.com/home/wp-content/ewww/optipng
    using: /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle
    attempting to optimize JPG...
    optimized JPG (non-progresive) size: 5946
    optimized JPG (progresive) size: 6174
    processing resizes
    ewww_image_optimizer()
    ewww_image_optimizer_tool_found()
    /usr/bin/nice: sh: /usr/bin/nice: No such file or directory
    ewww_image_optimizer_tool_found()
    nice: 0
    permissions: 0644, owner: , group:
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/uploads/2013/09/images1-150x150.jpg
    getimagesize: image/jpeg
    ewww_image_optimizer_path_check()
    found /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran: 2dab67e5f223b70c43b2fef355b39d3f
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    found /web/htdocs/www.---.com/home/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.---.com/home/wp-content/ewww/optipng: 4eb91937291ce5038d0c68f5f2edbcfd
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/ewww/optipng
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.---.com/home/wp-content/ewww/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.---.com/home/wp-content/ewww/optipng: OptiPNG version 0.7.4
    found /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle: 44273fad7b3fd1145bfcf35189648f66
    ewww_image_optimizer_mimetype()
    testing mimetype: /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle
    mime_content_type: text/plain
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /usr/share/file/magic
    file command: /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle: LCDF Gifsicle 1.70
    ewww_image_optimizer_tool_found()
    pngout-static: sh: pngout-static: command not found
    ewww_image_optimizer_tool_found()
    pngout: sh: pngout: command not found
    ewww_image_optimizer_tool_found()
    /usr/bin/pngout-static: sh: /usr/bin/pngout-static: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/bin/pngout: sh: /usr/bin/pngout: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/local/bin/pngout-static: sh: /usr/local/bin/pngout-static: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/local/bin/pngout: sh: /usr/local/bin/pngout: No such file or directory
    using: /web/htdocs/www.---.com/home/wp-content/ewww/jpegtran
    using: /web/htdocs/www.---.com/home/wp-content/ewww/optipng
    using: /web/htdocs/www.---.com/home/wp-content/ewww/gifsicle
    attempting to optimize JPG...
    optimized JPG (non-progresive) size: 5404
    optimized JPG (progresive) size: 5459

    Is there nothing I can do to improve the optimization in your opinion?

    Plugin Author nosilver4u

    (@nosilver4u)

    If the image has already been optimized, you most likely will see no improvement a second time. Additionally, that is a pretty small jpg, so it is not surprising that it couldn’t be improved. I checked it myself, and found no improvement.

    Thread Starter Marco Panichi

    (@marcopanichi)

    Ok, thank you very much for the assistance and your effort!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How the plugin works? And: Is it working now on my blog?’ is closed to new replies.