Is it possible to hard crop an image (e.g. make a square version) during upload?

System Information
  • Strapi Version: 3.5.4
  • Operating System: Ubuntu 20
  • Database: SQLite
  • Node Version: 14

Hi there! I did search the forums and github, but I couldn’t find what I was looking for. I’m building a page and one type of image is supposed to be square. Now the question is if it’s possible to have strapi automatically hard crop an uploaded image to a specified size, like

...
  upload: {
    breakpoints: {
      xlarge: 1920,
      large: 1000,
      thumbnail: 750x750,
...

The crop tool in the backend would work as well, but pressing the shift key doesn’t make the image square, it only keeps the aspect ratio of the current selection, so getting it exactly right is quite difficult. A button to get a 1:1 ratio would be cool.

Best regards,
M


2 Likes