Basically, I have 500+ images which I need to modify in exactly the same way. I have images like this
.
And I need to copy the left side of the image, more precisely the rectangle which dimensions are 645x999 pixels, paste it, flip it diagonally and move it on the right side. I could do this manually with any image editor but I want to know if I can make a program (preferably in c++), or enter a command that can do this for me. I wish to obtain this
, any advice would be of great help.
Thank you.
The following netpbm commands show how to do this for a single file
note - to obtain the output image that is given in the example the width is 670 pixels, not 645.
This should generate intermediate images il.png
ir.png
and a final picture i.png
To do this for a series of files the following script would work, where the variable flist is set to the list of files to be processed