Is possible to write a script that can AUTO CROP image to best fit aspect ratio ?
I have images that with differnt dimentions, mix with protrait and lanscape, is there any script can detect the image size then auto crop to best fit aspect raio : 1:1, 2:3, 3:4, 4:5, 5:7, 2:1, 3:1 / 3:2, 4:3, 5:4, 7:5, 1:2, 1:)
I tried ask chatGPT to help (LOL), it gave me some messy and cofused code.
Then I did a lot searches, no resources can provide some hints to start to code it.
Any ideas ? Thanks
