Split and extend chest sprite.
Posted: 2017-01-22T09:37:21-07:00
So, apparently I have a chest image that I want to extend. I use ImageMagick 6.9.3-4 on Windows, but I'd also appreciate having the Linux Bash syntax for the command as well. The chest image i'm testing with is a strip of 576x384 for a video game, with each sprite being 48x48. Here's what I need to do.
For the image, I need to crop it by '6xH', with H being the height of the input image, but for each frame that is a multiple of 3 (assuming the first frame is frame 1), I need to clone it X times, and then re-append the image horizontally to extend the length of the chest. For the example I cloned the frames twice. On the left is the original.


For the image, I need to crop it by '6xH', with H being the height of the input image, but for each frame that is a multiple of 3 (assuming the first frame is frame 1), I need to clone it X times, and then re-append the image horizontally to extend the length of the chest. For the example I cloned the frames twice. On the left is the original.

