I was looking for a one-liner means by which to duplicate images. In other words, I was too lazy to write a script. The answer was surprisingly difficult to find on the internet. Methinks it is too easy, or so easy that it’s obvious? Anyway, this is for those who need to do this task (image duplicates are needed to build frame directories of 30 frames per jpeg image, to facilitate building an animated gif or a video frame-set from a series of stills).
The secret sauce is to use imagemagick’s convert command. Using it thusly:
- convert stillframe1.jpg -duplicate 30,-1 stillframes%05d.jpg