Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
joshiishan wrote: ↑2018-05-10T08:15:47-07:00I need to cut 3px from the end of the image and join it to the front with 1px up-shift.
Can someone please guide me on how can I make this happen? Even a small direction would help...
You could use a simple "-roll" operation except you need to shift that last 3 pixel wide section up one, so it has to be handled separately. A command like this should work with IM6 in a *nix shell or script...
You would use "magick" instead of "convert" if you're using IM7. If you're working from a Windows command line or BAT script you need to remove those backslashes that escape the parentheses and replace the continued line backslash "\" with a caret "^"..
To do a batch conversion, use a command like that in a "for" loop to process all the files. Exactly how to do that depends on what sort of system you're running it on.
I know there are no free lunches, so I am willing to buy a beer to the one who helps me out!
It seems the 1 on the right side of the image is stamped on the left and the whole image is reduced by 1px
You got it right that the -roll won't work as I just need to vertical shift the last 3px part of the image and then roll the image. I am new to the scripting so I was not able to play much with the script though, I am trying and reading the help.
Noted:
I know there are no free lunches, so I am willing to buy a beer to the one who helps me out!