• I really like this app. simple and effective.
    Had issues getting WEBp files when only selecting certain post types, but that has been figured out by just allowing compression to take place on all files.
    May I make a request. As well as restricting by post type, could allow users to exclude certain file types, such as SVGs.

    Thanks

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

    (@rainafarai)

    Hi! Just to clarify — the plugin only processes JPG and PNG files. SVGs are completely ignored and passed through untouched, so no worries there.

    Which post types were you seeing the WebP issue with? Was it a custom post type, or standard ones like posts/pages? That would help me reproduce it. Thanks!

    Thread Starter brightonbeerblog

    (@brightonbeerblog)

    Hi Raina, thanks for the reply and really appreciate your effort with the plugin.

    “Which post types were you seeing the WebP issue with?”
    At ‘Allowed Post Type’ I had ticked all custom taxonomies my users will upload photos to. Yet when I am uploading the images in wordpress, the processing only worked when I unchecked everything. So there must be a post type I needed to check that I didn’t..?

    Have noticed a further issue since. The Disable button doesn’t appear to be working. I decided to watermark and compress my images offline in one go and have disabled your plugin while I batch import those.
    However I am still getting duplicates created so have had to deactivate in the plugins menu.

    Also you mention it only processes JPG and PNG files, but it’s definitely processing WEBp that I upload as well. It would be great to be able to toggle that off because then I wouldn’t need to disable it at all.

    Many thanks.

    Plugin Author rainafarai

    (@rainafarai)

    Hi again @brightonbeerblog
    3 Issues try to explain :

    1)The post type filter works as follows: when uploading from within a post editor, the plugin detects the post type automatically. However, when uploading directly from Media → Add New (or via batch import), there is no post context — so the plugin falls back to post type “attachment”. If “Media” is not checked in your Allowed Post Types list, those uploads will be skipped. Simply tick the “Media (attachment)” checkbox in the plugin settings and it will process all direct media library uploads too.
    —–

    2) The Disable toggle works by hooking into WordPress’s standard upload pipeline. When you disable the plugin this way, it stops processing any image uploaded through the WordPress interface (media library, post editor, etc.).

    However, batch import tools like WP All Import, WP CLI, or any script that uses wp_insert_attachment() directly bypass that pipeline entirely — so the plugin never gets called, regardless of the disable toggle state.

    This is a architectural limitation rather than a bug, and there is no reliable way to intercept those imports from within the plugin itself.

    I’ve added a warning note directly under the Disable setting in the next release to make this clear. For your use case — batch importing pre-processed images — the correct approach is to fully deactivate the plugin from the Plugins menu while importing, then reactivate it afterwards.

    —-

    3)The plugin is designed to only compress JPG and PNG files, but the mime type check was happening too late in the process. When “Keep Original” or a WebP output mode was active, the file copy and media library registration could be triggered before the format check, causing unwanted duplicates for WebP and other unsupported formats.

    This will be fixed in version 1.8.5. The mime type check will now happen at the very beginning of the process, before any file operation, so WebP uploads will be skipped immediately with no side effects.

    Sorry for the inconvenience and thanks again for the detailed report!



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

You must be logged in to reply to this review.