What I want - image with no whitespace and content is distorted to fit space. This was done in photoshop
My method for achieving this is
1. Crop image into 1x256px slices
2. Trim the whitespace/transparent pixels from top and bottom
3. Resize the image to be 1x256 so the content is stretched
4. Montage
Code: Select all
convert original.png +repage -crop 1x -trim -resize 1x256\! out.png
montage out-*.png -geometry 1x -tile x1 montage.png
Actual imagemagick image