Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pad an image with extra transparent border
#2
1) what error?
2) yes, canvas resize is the way. You can use the widget in the dialog to drag the thumbnail of current image to the edge of the new canvas (no need for to compute an offset then). And don't forget to check the Resize all layers option.
3) As I said in a previous post, use File > Open as layers to open all you images as layers in a single Gimp image. So the shift/pad in a single operation.
4) There are scripts to export the individual layers (for instance my own ofn-export-layers).

But since you are a programmer, maybe you can do everything with ImageMagick in a shell script. For instacne starsyin with this 300x300 image:

   


convert 300x300.png -resize 400x300 -background none -gravity East -extent 400x300 400x300.png

produces this 400x300 image:

   
(in fact if you look your whole process is doable with IM).
Reply


Messages In This Thread
RE: How to pad an image with extra transparent border - by Ofnuts - 01-20-2024, 12:57 PM

Forum Jump: