![Image](https://i.ibb.co/RPd6h4M/Masked-Bayeux-Sample.png)
What I want - image with no whitespace and content is distorted to fit space. This was done in photoshop
![Image](https://i.ibb.co/XxwDcbR/Straightened-Output-Rough-Mockup.jpg)
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
![Image](https://i.ibb.co/7z03L2M/montage.png)