I have portrait and landscape images of varying dimensions. I'd like to crop them all to square, from the center, based on the shortest out of width and height. In math terms I think of it like this: (Math.min(width, height)) x (Math.min(width,height)) For example: 500x1000 > crops to 500x500 ...
I have several hundred images of varying sizes and orientations. I need to trim them for a project. Each has a short (~30px) white border across the bottom which contains the filename in gray text. The height of the border varies by a few pixels between images. I'd like to trim this bottom border ...