Help me square some images ($100)
Posted: 2014-04-15T12:35:14-07:00
I have a collection of ~30,000 images (mostly photos) in a directory tree.
There are a few hundred images there (jpgs and pngs) that I need to square.
How to find them?
Find all images with prefix "hide" and suffix "hero" whose width is at least twice the height
What to do with them?
Add black padding on top and bottom so that they become square.
Sample image we are looking for
https://www.dropbox.com/s/ovz7fb9njwxhn ... G_hero.jpg
Sample result
https://www.dropbox.com/s/gxwl4iekksko6 ... d_hero.jpg
I've seen this http://www.imagemagick.org/Usage/thumbnails/#square
but it's still over my head and I could use your assistance.
Thank you!
Marino
There are a few hundred images there (jpgs and pngs) that I need to square.
How to find them?
Find all images with prefix "hide" and suffix "hero" whose width is at least twice the height
What to do with them?
Add black padding on top and bottom so that they become square.
Sample image we are looking for
https://www.dropbox.com/s/ovz7fb9njwxhn ... G_hero.jpg
Sample result
https://www.dropbox.com/s/gxwl4iekksko6 ... d_hero.jpg
I've seen this http://www.imagemagick.org/Usage/thumbnails/#square
but it's still over my head and I could use your assistance.
Thank you!
Marino