• oddpod

    (@oddpod)


    Hello,

    After uploading over 1000 images on my website, I have realised that not all images are square. Since it is not possible to edit each image, is it possible with any code / plugin to make all existing uploaded images square so there is no change in layout of images >

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You could define all registered image sizes to always crop to square. This will address new uploads, but not existing. However, there are plugins that will regenerate image sizes based on the current size configuration.
    https://developer.www.ads-software.com/reference/functions/add_image_size/

    This is only effective for added image sizes. The default size definitions are stored elsewhere. You can probably hack that data to force cropping of those as well if it could be determined where the data is stored.

Viewing 1 replies (of 1 total)
  • The topic ‘How to make uploaded images of one size in a square template ?’ is closed to new replies.