Search found 4 matches

by hlavac_michal
2019-03-31T13:42:32-07:00
Forum: Users
Topic: Creating a Square Product Photo
Replies: 9
Views: 5727

Re: Creating a Square Product Photo

Try this (change max to min) magick.exe original.jpg -fuzz 15% -trim +repage -set option:minwh "%[fx:min(w,h)]" -gravity center -extent "%[minwh]x%[minwh]" result.jpg Thank you very much for your effort, I appreciate it very much. This is the output (that's not exactly right): https://www.anglacek ...
by hlavac_michal
2019-03-31T12:59:59-07:00
Forum: Users
Topic: Creating a Square Product Photo
Replies: 9
Views: 5727

Re: Creating a Square Product Photo

Try this magick.exe original.jpg -fuzz 15% -trim +repage -set option:bgcolor "%[pixel:u.p{0,0}]" -set option:maxwh "%[fx:max(w,h)]" -background "%[bgcolor]" -gravity center -extent "%[maxwh]x%[maxwh]" result.jpg If in a .bat file, then I believe % need to be doubled to %% The above will pad to ...
by hlavac_michal
2019-03-31T09:22:24-07:00
Forum: Users
Topic: Creating a Square Product Photo
Replies: 9
Views: 5727

Re: Creating a Square Product Photo

What version of IM? On what platform? You want to find the width, height and offsets of the trim, and increase either the height or width so they are equal, with a corresponding reduction in one offset, so you can do the crop. Is that correct? magick dress.jpg -fuzz 10% -format %@ info: 1574x1648 ...
by hlavac_michal
2019-03-31T05:06:48-07:00
Forum: Users
Topic: Creating a Square Product Photo
Replies: 9
Views: 5727

Creating a Square Product Photo

Please, give me an advice. I need to create a square product photo automatically from the photos. I manage to automatically crop the gray background to the product, but I can't make a square output. I attach the original and the output I need. Does anyone know how to do this? Thanks! Original ...