04-27-2021, 10:33 AM
(04-27-2021, 02:28 AM)rickk Wrote:(04-20-2021, 05:07 PM)rich2005 Wrote: For an animation ? A bash script. A simple loop, nothing complicated.
A long image long.png in this case 300 px high and 2000 px wide. The script is a moving 'window' 300x500 across that with a spacing set of 15 px. Makes a set of jpegs to load into Gimp.
Code:
#!/bin/bash
count=0
index=0
until [ $count -gt 1500 ]
do
echo "$count"
magick long.png -crop 500x300+$count+0 "%d$index".jpg
count=$(( $count + 15 ))
index=$(( $index + 1 ))
done
Interestingly enough, I was just playing around with the "Offset Layer" function located in the layers menu, and it appears to offer a GUI "boilerplate" entry screen for performing very much the same function. And surprisingly the key functionality was activated with fairly simple key combinations.
See my ofn-scroll-layer script