• Resolved Zade

    (@nothin7)


    Hi, my server has tons of JPGs and PNGs, but I don’t like the quality of TinyPNG’s optimized JPGs, so I want to only optimize my PNGs. All of my PNGs. How can this be done all at once? If this isn’t currently built into the plugin, can you point me in the direction of customizing the plugin for a one-time mass operation? Thanks!

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

    (@tinify)

    Hi,

    We don’t currently support this use case, but if you want to give it a go yourself you can edit the method file_type_allowed in the Tiny_Image class, specifically by removing the item image/jpeg on line 144 of class-tiny-image.php.

    Hope this helps!

    • This reply was modified 9 years, 2 months ago by Tinify. Reason: Formatting
    Thread Starter Zade

    (@nothin7)

    Thanks again. To be safe, I also removed line 412:

    $wpdb->posts.post_mime_type = 'image/jpeg' OR

    and part of class-tiny-plugin.php line 522:

    post_mime_type = 'image/jpeg' OR

    This fixed the numbers and estimate at Media > Bulk Optimization. Not sure if this was necessary for conversion purposes, though.

    • This reply was modified 9 years, 2 months ago by Zade.
    Plugin Author Tinify

    (@tinify)

    This seems appropriate, glad we could be of help!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bulk Optimize only PNGs’ is closed to new replies.