Unexpected Auto-Generated Number of Responsive Images
-
WordPress 5.5.1 seems to be generating an unanticipated number of responsive images. To test this WordPress capability, I imported a 5472×3648 image into the Media Library. I only have the default WordPress “Media Settings” image sizes set as follows:
Thumbnail size: 150px by 150px (set to hard crop)
Medium size: 300px by 300px (set to proportional resize, a.k.a., ‘soft crop’)
Large size: 1024px by 1024 (set to proportional resize, a.k.a., ‘soft crop’)I commented out all the custom image sizes defined in my theme and their media resizing behaviors, although the latter is irrelevant for this issue.
I expected WordPress to auto generate three additional images from the original image file with the following dimensions:
150×150
300×200
1024×683Instead, WordPress also generated additional images with these dimensions:
768×512
1536×1024
2048×1365…and one image whose file name was appended with “-scaled”. I checked its dimensions in another application and found it to be proportionally resized to the following dimensions:
2560×1707
I am at a lost as to why WordPress generates these additional image files. At first I thought WordPress may proportional scale the “Media Settings” image sizes both with a width bias and a height bias. However, the dimension values for these additional images to not bear out this assumption. Besides, if this were the case, I would have expected only two additional resized images to account for the height bias scaling of “Medium size” and “Large size” images.
The web sites I work on generally contain a fairly large number of images. I want to retain the original high-resolution images on the sites’ servers but eliminate any extraneous resized images.
Can someone explain why WordPress generates the extra additional images described earlier? Your feedback is greatly appreciated. Thank you.
- The topic ‘Unexpected Auto-Generated Number of Responsive Images’ is closed to new replies.