WordPress.org

Ready to get started?Download WordPress

Forums

EWWW Image Optimizer
[resolved] Doesn't Seem To be Converting to PNG (2 posts)

  1. Meckin
    Member
    Posted 1 year ago #

    Hello,

    I installed the plugin, and it did work for sometime, but I was doing batch, and now even individual doesn't work. It seems to optimize the JPG, but it doesn't seem to converting them to PNG anymore. Although, I have it checked within the settings to convert, and delete the old files.

    Now it says converting, and I do see the file within the server. Although, it isn't deleting the past ones. Also, will it tell the post, product, etc to use the new PNG?

    ewww_image_optimizer_resize_from_meta_data()
    meta file path: 2013/04/newyorkgiantshololg.jpg
    generated absolute path: /home/hjcloseo/public_html/wp-content/uploads/2013/04/newyorkgiantshololg.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: hjcloseo, group: hjcloseo
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/hjcloseo/public_html/wp-content/uploads/2013/04/newyorkgiantshololg.jpg
    finfo_file: image/jpeg
    ewww_image_optimizer_path_check()
    found /home/hjcloseo/public_html/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /home/hjcloseo/public_html/wp-content/ewww/jpegtran: 4da4092708650ceb79df19d528e7956b
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/hjcloseo/public_html/wp-content/ewww/jpegtran
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    /home/hjcloseo/public_html/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    found /home/hjcloseo/public_html/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /home/hjcloseo/public_html/wp-content/ewww/optipng: 4eb91937291ce5038d0c68f5f2edbcfd
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/hjcloseo/public_html/wp-content/ewww/optipng
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    /home/hjcloseo/public_html/wp-content/ewww/optipng: OptiPNG version 0.7.4
    found /home/hjcloseo/public_html/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /home/hjcloseo/public_html/wp-content/ewww/gifsicle: 44273fad7b3fd1145bfcf35189648f66
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/hjcloseo/public_html/wp-content/ewww/gifsicle
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    /home/hjcloseo/public_html/wp-content/ewww/gifsicle: LCDF Gifsicle 1.70
    found /home/hjcloseo/public_html/wp-content/ewww/pngout-static, testing...
    ewww_image_optimizer_md5check()
    /home/hjcloseo/public_html/wp-content/ewww/pngout-static: 670a0924e9d042be2c60cd4f3ce1d975
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/hjcloseo/public_html/wp-content/ewww/pngout-static
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    /home/hjcloseo/public_html/wp-content/ewww/pngout-static: PNGOUT [In:{PNG,JPG,GIF,TGA,PCX,BMP}] (Out:PNG) (options...) Feb 21 2013
    using: /home/hjcloseo/public_html/wp-content/ewww/jpegtran
    using: /home/hjcloseo/public_html/wp-content/ewww/optipng
    using: /home/hjcloseo/public_html/wp-content/ewww/gifsicle
    using: /home/hjcloseo/public_html/wp-content/ewww/pngout-static
    attempting to convert JPG to PNG: /home/hjcloseo/public_html/wp-content/uploads/2013/04/newyorkgiantshololg-2.png
    ewww_image_optimizer_tool_found()
    convert: Version: ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP http://www.imagemagick.org
    converting with ImageMagick
    optimizing converted PNG with pngout
    optimizing converted PNG with optipng
    converted PNG size: 274156
    attempting to optimize JPG...
    optimized JPG (non-progresive) size: 80970
    optimized JPG (progresive) size: 80623
    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: hjcloseo, group: hjcloseo

    and the settings

    jpegtran: OK version: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    optipng: OK version: OptiPNG version 0.7.4
    pngout: OK version: Feb 21 2013
    Graphics libraries - only need one, used for conversion, not optimization: GD: OK   Imagemagick 'convert': OK
    safe mode: Off  exec(): OK  
    Only need one of these: finfo: OK  getimagesize(): OK  mime_content_type(): OK

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

  2. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    It appears that there are a couple different things that could be happening:

    1. When dealing with JPGtoPNG, it will ONLY keep the PNG image if the PNG is smaller than the JPG. In the example you posted, the JPG is way smaller, and so the image was not converted, only optimized. The relevant section is this:

    converted PNG size: 274156
    attempting to optimize JPG...
    optimized JPG (non-progresive) size: 80970
    optimized JPG (progresive) size: 80623

    2. The other things you will run into with JPGtoPNG is that this plugin doesn't just try to convert the image, it also attempts to optimize the resulting PNG to achieve the smallest image possible before comparing it against the JPG. This part is key, because PNG optimization can be very time consuming.
    So, if you are running this in bulk on JPGs that are anywhere over 500KB in size, it is going to take a long time to attempt the conversion, and the process might get killed. On my test box, a 600KB JPG took 80 seconds, and that's with the default optimization levels for optipng and pngout. Larger images just get worse, with a 1.2 MB image taking over 2 minutes. On shared hosting setups, you should not attempt bulk optimizations with JPGtoPNG turned on.

    Also, will it tell the post, product, etc to use the new PNG?

    I can't speak to 'products' for sure, you'll have to try it and see. The conversion process does a search and replace through the posts table to update any posts that reference the prior image.

    And finally, regarding the 'delete originals' option. It should definitely remove the old image if the conversion is successful and results in a smaller image. JPGtoPNG should be used sparingly in my experience, and you may want to wait for the next release which will let you do one-off conversions of select images via the media library.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.