• Resolved payter

    (@payter)


    Hi, when i upload some PNG image, and will include this file to the text in full size, it will point to PNG version of image instead of JPG. URL in Multimedia manager points to the PNG version too. I want to have always used JPG version of any image size when PNG to JPG conversion is on, is it possible? Thank you!

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

    (@nosilver4u)

    JPG is not always smaller than PNG, so your images will only be converted when JPG is the right format for the job.

    Thread Starter payter

    (@payter)

    Ok, so how to force PNG to JPG conversion? I need it here too http://screencast.com/t/ouRxnqgRJs, because its always png, even when jpg is better format. Im not a content editor, and i need to force content editors to not use png on page, because they are unteachable.

    Plugin Author nosilver4u

    (@nosilver4u)

    I’m not sure we’re on the same page here. Just want to make sure you’re not always assuming JPG is the better format. JPG is only “better” when the filesize is smaller. You can’t force it to use a JPG if it is bigger than the PNG. If you’d like to post a link to the original PNG in question, I’ll test it out on my site and make sure EWWW is behaving as designed.

    Thread Starter payter

    (@payter)

    In my case i can tell that is 99% likely that JPG will be smaller than PNG version, it’s lifestyle magazine page, so almost all images are photos. When i try image save in Phtotoshop to JPG with quality 70 JPG is always smaller.

    Ok, try for example this 2 images
    https://cdn.webnoviny.sk/2016/10/ttttt.png
    https://cdn.webnoviny.sk/2016/10/testimage.png

    My point is achieve that when content editor will upload image in PNG format, WP will force to convert this image to JPG and content editor will work just with JPG version of image. He will not even see png version of image in WP mediafiles.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, please turn on the debugging option, and post your debug information via pastebin. My test site successfully converted both images so I’ll need a little more information about your site to try and figure out why it can’t convert the images (and hopefully the debug info gives us some clues).
    Also, please provide a screenshot (or copy and paste) your plugin status section.

    Thread Starter payter

    (@payter)

    Plugin Author nosilver4u

    (@nosilver4u)

    Ah, so you’ve got optimization for PNG disabled, with conversion enabled. That used to work, let me make sure it still does.

    Plugin Author nosilver4u

    (@nosilver4u)

    That worked too, so I had to really look close, and found it. You’ve told EWWW to not perform lossy operations on the original image, and PNG2JPG is lossy. With debug mode enabled, I suspect you’d be able to see the resizes were converted, but the original image was completely untouched. At any rate, I know it won’t do PNG2JPG on the uploaded image when “Exclude full-size images from lossy optimization” is checked.

    • This reply was modified 8 years, 9 months ago by nosilver4u.
    Thread Starter payter

    (@payter)

    i think problem could be here http://screencast.com/t/kyxVR5LuHY

    Plugin Author nosilver4u

    (@nosilver4u)

    The fact that you even see an “In progress” notice means EWWW isn’t attempting conversion, as it won’t use background optimization when a conversion is being attempted. If those images don’t complete within a few minutes, then you have other issues, but the PNG2JPG issue is caused by the setting I mentioned earlier.

    Thread Starter payter

    (@payter)

    I did some tests, and in fact, all uploaded images stuck on “in progress” status. Definetly more than 5 minutes. No matter if JPG or PNG. When i force image to optimize with bult optimize it works fine.

    Where is the problem? How can i do some tests? Did it connect trought url for background optimization? because i have set CDN domain for images, that means for images i dont have direct url like site-domain.com/image.jpg but cdn-domain.com/image.jpg

    Plugin Author nosilver4u

    (@nosilver4u)

    The CDN stuff wouldn’t affect it unless it is removing the local versions from the server after upload to the CDN. There’s a debug.log file in the ewww folder that would be helpful to find out where the process is sticking. Please send it via https://ewww.io/contact-us/

    Thread Starter payter

    (@payter)

    done

    Thread Starter payter

    (@payter)

    Regarding my first question again – I need to convert fullsize PNG into JPG too. I already figured out how to do this – i need to uncheck “Exclude full-size images from lossy optimization” and plugin will convert some-image-name.png to some-image-name-1.jpg . When there is uploaded some-image-name.jpg ten fullsized image is converted to some-image-name-1.jpg and this is sufficient solution for me. Thank you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘enable PNG to JPG conversion original still points to PNG’ is closed to new replies.