• Resolved Jim

    (@jwmc)


    Is it possible to only automatically act on images uploaded by a forum plugin and saved in a separate forum folder like wp-content/uploads/abcforum, but NOT act on images uploaded otherwise, (ie, direct to Media Library or a page/post attachment)?

    I’d like to keep optimizing the latter images myself before upload.

Viewing 1 replies (of 1 total)
  • Plugin Author Shane Bishop

    (@nosilver4u)

    Hmm, that’d be tricky to implement, though you can exclude or include any given folders. But if the forum uploads is inside the main uploads, it’ll be tougher to exclude the media library images.

    One thing I’d note, if you’re using the free version, it’s only doing lossless compression anyway, so there’s no harm to letting EWWW IO optimize everything.

    One potential solution would be to disable automatic optimization during upload, and just use the scheduled optimizer (which is for the Folders to Optimize setting, and doesn’t currently touch the media library).
    You can do that with the EWWW_IMAGE_OPTIMIZER_NOAUTO override/constant from https://docs.ewww.io/article/40-override-options

    I’d note, however, that the scheduled optimizer is not guaranteed to always skip the media library, that could change in the future. It just happens to be the way it works currently.

Viewing 1 replies (of 1 total)

The topic ‘Compress/resize only forum image uploads’ is closed to new replies.