Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pad an image with extra transparent border
#5
@PixLab - The great thing about Gimp, always many options.

@rinaldop Although this is a Gimp forum, so this is off topic, but I mentioned before ImageMagick (IM).

For a single image it might be this, looks a bit daunting at first

Code:
magick base.png -gravity center -chop "width"x0 -background none -compose Copy -gravity east -extent 420x37 out.png

where:
-gravity center works in the middle of the image (keeps those rounded ends)
-chop "width"x0 is the size of the strip to remove (7 pixels )
-background none ensures transparency
-compose copy -gravity east pushes to the right side
-extent 420x37 restores the canvas size.

Of course you need to put that in a loop. (Using AIDA64 ? Long time since I used that, so assuming Windows) and I am not much use with Windows batch files, but in linux it looks like this.

https://i.imgur.com/WptLwHo.mp4
Reply


Messages In This Thread
RE: How to pad an image with extra transparent border - by rich2005 - 01-21-2024, 09:38 AM

Forum Jump: