• Hello,

    The WordPress system creates a whole group of sizes for one photo, especially if the original photo is large.
    How to optimize the size of a photo so that when uploading the photo it is cropped to only one size, for example, along the maximum side of 1960 pixels, and at the same time does not create other thumbnails and copies, and without downloading and saving the original photo?
    I tried several popular optimization plugins that save other copies and sizes of photos while adding my own version of the photo and format, for example webp.
    I want to reduce the number of photo copies and delete the original photo by uploading only a compressed photo size that is created immediately when uploading a photo.

Viewing 1 replies (of 1 total)
  • you can tell wordpress to resize images in the functions.php file here the documentation for do so add_imageSize(). You might have to look at the block you are using documentation to see if it can be configured to a specific image size. It also might be possible to do this in the blocks configuration of the theme.json file. I think there a plugin that allows you to crop the images. WordPress can be set to crop images but the results might not be too great.

    • This reply was modified 1 year, 1 month ago by mrtom414.
Viewing 1 replies (of 1 total)
  • The topic ‘Optimization of photo groups’ is closed to new replies.