• Resolved meftech

    (@meftech)


    Hi,

    I have noted in the last couple of days Imsanity has stopped covering PNG images on uploaded to jpge. I have enabled and disabled the option a few times but still not working as it used to.

    Thanks for your help.

    The page I need help with: [log in to see the link]

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

    (@nosilver4u)

    Hi @meftech,
    Imsanity will no longer convert PNG images to the JPG format if there is any transparency found in the image. It sometimes happens that photo-editing software will add an alpha (transparent) layer that isn’t needed. So you’ll need to make sure your PNG images do not have any alpha layers or transparency at all.

    If you would like me to take a look at a sample image or two, go ahead and post links to the PNG versions of those files and I’ll double-check them.

    Alternatively, you can override the transparency check with this filter:
    add_filter( ‘imsanity_skip_alpha’, ‘__return_false’ );

    Thread Starter meftech

    (@meftech)

    Thank you for your reply.

    Imsanity saves us so much time! Would like to add the override in. Can you please advise on how to add the code/filter in?

    Thanks,
    Chris

    • This reply was modified 3 years, 10 months ago by meftech.
    Plugin Author nosilver4u

    (@nosilver4u)

    You can put it in two places:
    1. If you have a child theme, you could add it to your theme’s functions.php file.
    2. You can just make a simple one-file plugin, detailed here: https://ewww.io/2016/03/16/ewww-image-optimizer-filters-part-1/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PNG files not being converted to JPGE’ is closed to new replies.