WordPress automatically downscaled images larger that original


I have a real head head-scratcher. I am trying to boost the performance of my wife’s website. One of the things I identified as potential issue was the size of image files. I am somewhat aware photo editor so I always tried to use the quality slider in GIMP to keep the file size reasonable. I’ve started to play with quality settings further in order to squeeze more performance but when I looked at my images via filezilla I was shocked, screenshot attached. As I understand, WordPress automatically makes multiple resolutions of uploaded images in order to serve them to differently sized screens and thus save bandwidth but look at the file sizes I got!

Image sizes after WP down-scaling

in most cases image one step smaller in resolution is twice as large in disc space a in some cases more than three.
I tried to find what compression settings WP uses and it seems that after version 4.5 it should be 82% which doesn’t seem to be the case for me.
I am certain that I did not tamper with this parameter by any custom filter but I cannot be sure if about the theme or plugins that I use.

I would like to ask 2 questions.

  1. Is there a way to find out what are the current compression settings used by my WordPress ?
  2. I think I can write a script that will take all those automatically generated files in the uploads. directory and re-compress them to my desired size. I do not know if WP will not freak out that the files were changed externally and thus my question : would such approach be even advisable ?

WP version that I use is: version: 5.2.7

Raff89 2 years 2020-10-24T17:10:30-05:00 0 Answers 15 views 0

Leave an answer