Not Gimp using ImageMagick
quick-n-dirty bash script with fixed values, change as appropriate. wide.png is the 2000x100 image.
Quote:I need to take different segmented crops of an image. Say my image is 100 tall by 2000 wide (100x2000 pixels)
How do I automatically crop an image 100x750 starting x=0 and crop every 10 pixels and save each image to file?
quick-n-dirty bash script with fixed values, change as appropriate. wide.png is the 2000x100 image.
Code:
#!/bin/bash
for i in $(seq 0 10 90)
do
convert wide.png -crop 750x100+$i+0 +repage "%02d"$i.png
done
for i in $(seq 100 10 990)
do
convert wide.png -crop 750x100+$i+0 +repage "%01d"$i.png
done
for i in $(seq 1000 10 1250)
do
convert wide.png -crop 750x100+$i+0 +repage $i.png
done