01-20-2024, 12:57 PM
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).
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: