i'd like to crop images to fit a certain size (filling the format with the image)
To illustrate what i want i created the desired effect in HTML/CSS http://edweb.dk/Temp/crop.html
As you can see the image is centered and filling the container, the rest is cropped away.
How to achieve this with IM?
I'm using ImageMagick-6.8.9-0 cmd on windows
I tried fiddling with a script.. but it doesent work.. this simply just resizes the image
Code: Select all
convert myfile.jpg -resize 280x400 -extent 280x400 -quality 90 converted.jpg