• I use the “EWWW image optimizer” plugin to compress the images in my project, but when uploading the images, I can’t delete the original file (leaving only the compressed file) is it possible to configure the offload so that it only uploads the compressed images?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Delicious Brains

    (@deliciousbrains)

    Not sure what you mean by “I can’t delete the original file (leaving only the compressed file) is it possible to configure the offload so that it only uploads the compressed images?”

    When a new Media Library item is uploaded, EWWW Image Optimizer tells WP Offload Media not to offload it, and when EWWW Image Optimizer has finished optimizing an image file, it tells WP Offload Media to offload it.

    Are you seeing something different?

    -IJ

    Thread Starter nscandrelima

    (@nscandrelima)

    Yes, when I upload a new media, the original file is uploaded to S3 together with the optimized file.

    Plugin Author Delicious Brains

    (@deliciousbrains)

    Hmm, do you mean there is a “photo.jpg” and a “photo-scaled.jpg”, and you don’t want the the “photo.jpg” file in the bucket?

    If that is the case, the original “photo.jpg” file will have been optimized by EWWW, and you need that file to ensure you have the best possible version of the image. The “photo-scaled.jpg” is automatically created by WordPress as a scaled down version of the larger original to give the site something a bit more efficient for general use. It is possible to exclude that “photo.jpg” from being offloaded, but we wouldn’t recommend doing that, it’s best to have all files associated with a Media Library item offloaded together for consistency.

    Or do you mean that you get two separate paths for the same file name in the bucket, one file being an untouched original and the other optimized by EWWW?

    If so, that sounds like a bug. Can you give us example bucket paths?

    -IJ

    Thread Starter nscandrelima

    (@nscandrelima)

    From what I understood, the file “photo.jpg” in the bucket should be smaller
    than the original photo on my PC, correct? The files have the same size.

    Plugin Contributor ianmjones

    (@ianmjones)

    From what I understood, the file “photo.jpg” in the bucket should be smaller than the original photo on my PC, correct?

    Hmm, that’s a good question.

    @nosilver4u, does EWWW Image Optimizer optimize the original image uploaded to WP? Or does it leave that file alone and only optimize the -scaled.jpg and other thumbnails?

    -IJ

    @ianmjones By default, EWWW IO only optimizes the scaled version. There’s an Advanced option to optimize the original (photo.jpg) as well. To get there, enable Ludicrous Mode, click the Advanced tab, and look for Include Originals (third option down currently).

    Thread Starter nscandrelima

    (@nscandrelima)

    In my local project, the files have the same size even with the option enabled.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘plugin doesn’t delete original images in S3’ is closed to new replies.