• Resolved cpbradshaw

    (@cpbradshaw)


    Hey,

    I’m trying to get my contributors to take initiative and output their content in JPG however I am using EWWW to try and mitigate the size of files they might decide to upload.

    I have PNG2JPG enabled and installed I believe but clicking on PNG to JPG in media library against an individual file results in a time out and no change, and using bulk optimise on that same file (or others) results in no changes and the file(s) remaining as PNG.

    I should also add that thisd file is close to 1MB. Downloading and simply saving as JPG with 95% quality rating in a standard image manipulation program results in this file totalling around 150Kb – so there IS a saving if I manually resize the image outside of wordpress.

    Could you assist?

    Pastebin link to the standard Debug data: http://pastebin.com/DXJmd8Xp

    Pastebin link to the debug info next to one example file in media library: http://pastebin.com/9WdJS6Up

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

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

    (@nosilver4u)

    If you’re seeing timeouts (which is very very likely on a 1MB PNG file), you may need to disable PNG optimization prior to the conversion. This is because a conversion attempts to do both a full optimization AND the conversion for comparison, to see which one is smaller.

    After reviewing your debug information, I would also suggest turning off pngout, and setting optipng back to level 2. I would also recommend going through the various resizes on the Advanced tab to see if there are any that can be disabled, since your theme/plugins have registered 12 additional resizes besides the default 4.

    Thread Starter cpbradshaw

    (@cpbradshaw)

    Hey nosilver

    Thanks for the assistance. I should mention that I had the settings you mentioned (including the optpng level and had disabled pngout) before tinkering to see if a “touching” of the settings changed anything.

    Based on what you see in the debug info though there is nothing fundamental in terms of an error though? Everything is installed correctly, etc?

    Thread Starter cpbradshaw

    (@cpbradshaw)

    Also not sure where you mean when you say “disable optimisation”. I’ve tried a bulk optimization as well as just hitting PNG to JPG on the media library example.

    Please can you help further as I’ve never been able to convert PNG to JPG using EWWW so I must be doing something different/wrong.

    Plugin Author nosilver4u

    (@nosilver4u)

    Yup, everything looks fine that way, so I suspect there is a front-end proxy or the web server itself is timing out the connection, since the PHP limit is already at 1800 seconds. Siteground, and several other webhosts don’t allow anything longer than 30-60 seconds.

    just saw your last post while I was typing. The advanced EWWW tab has a section that lets you disable optimization for individual resizes (of which your site is generating 16). Having 16 resizes means that EWWW has to process 16 images twice when you do a PNG2JPG.

    Thread Starter cpbradshaw

    (@cpbradshaw)

    Strangely, it’s just started working. All I’ve done is change a setting on the advanced tab, “Skip small images” – I changed this to 100000 bytes.

    I’ve made no other changes.

    Any ideas?

    Plugin Author nosilver4u

    (@nosilver4u)

    That could help, as it will skip any of the smaller resizes.

    Thread Starter cpbradshaw

    (@cpbradshaw)

    ok, thanks 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PNG to JPG conversion not working’ is closed to new replies.