Click to See Complete Forum and Search --> : appending images in the GIMP


ArtVandelay
04-20-2008, 02:34 PM
Is there a way to simply append images horizontally or vertically in the GIMP?

You can do it in imagemagick like so:

convert -background "#000000" +append tmp11.png tmp12.png tmp13.png result.png



What I want is a bunch of slightly rotated images appended to each other.
The gimp has the rotation behavior I want whereas imagemagick can't seem to rotate an image without resizing it.

However, I can't figure out how to append in the GIMP as I did with
imagemagick.

Ideally, I'd like to only use a GIMP script-fu to do the whole thing
as opposed to trying to glue together functionality in a shell script.

gamblor01
04-20-2008, 03:00 PM
Hmm...nifty idea! I'm not good enough with gimp to be able to answer this question, but have you also posted this on a dedicated gimp forum? It's probably more likely to yield an answer there (though I'm sure there are some very savvy gimp-ers on this forum as well).

If you figure out how to do this I would be interested in knowing though! :D

ArtVandelay
05-17-2008, 11:41 AM
I found lots of scripts to rotate images, but nothing about appending them.

What I ended up doing in this script is copying and pasting from an original file, rotating what got pasted (a paste is actually a new layer), then
resizing and translating the layer, and repeating this via loop.

So I sort of implemented "append" myself, with the rotate since I couldn't find any "append" right there in gimp's menus.

I'll attach the file since you sounded interested. It is a preliminary version
with some "magic numbers" used. I plan on making it more general so others from teh internets can use it.

gamblor01
05-19-2008, 09:40 PM
Thanks! I'll give this a shot and see if I can get it to work.

ArtVandelay
05-21-2008, 12:32 AM
I'm not going to post a zillion copies of this, but this one is an actual general solution for any size of image, so I feel obliged to post this version.

Note - the scheme language - weird!

Anyways, you make those things work by putting it in
~/.gimp-2.2/scripts/
or equivalent on your installation

And take off the .txt extension. I just did that so it would allow the attachment.
When you start the gimp, the function will appear in the menu:
Xtns -> Script-Fu -> misc

Hopefully this benefits others!