Hello,
what is the best way to merge multiple images in to one- i want to have the same effekt like putting them in different layers in gimp and merge them.
the images (png) have transparent areas.
I tried composite with different options but either not all where merged or the images just gets black.
( composite *.png out.png)
Best Regards
Adriana
Merge multiple images
-
- Posts: 8
- Joined: 2010-11-21T14:35:44-07:00
- Authentication code: 8675308
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Merge multiple images
try (assuming they are all the same size)
convert *.png -background none -flatten out.png
see
http://www.imagemagick.org/Usage/layers/#flatten
convert *.png -background none -flatten out.png
see
http://www.imagemagick.org/Usage/layers/#flatten
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Merge multiple images
Or if with offsets, use -layers merge which will expand the canvas in all directions preserving the offsets.
See Layering Images, whcih deals with this type of thing.
http://www.imagemagick.org/Usage/layers/
Can you be a little clearer in exactly how the images are being 'merged'.
Real images? Distortions? Offsets (known or unknown)? Overlaps?
How extensive is the transparent areas?
See Layering Images, whcih deals with this type of thing.
http://www.imagemagick.org/Usage/layers/
Can you be a little clearer in exactly how the images are being 'merged'.
Real images? Distortions? Offsets (known or unknown)? Overlaps?
How extensive is the transparent areas?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 8
- Joined: 2010-11-21T14:35:44-07:00
- Authentication code: 8675308
Re: Merge multiple images
Thank you very much. It worked and I will read about the layers!
Best regards
Adriana
(I'm trying out different methods. Ihave hundreds of images with written text and I want to experiment with them- the aim is to create an animation. The single frames will be different combination of layered text-pages. So I have to figure out how to filter out the non-text-areas, how I can addapt the text-color to a similar value etc.)
Best regards
Adriana
(I'm trying out different methods. Ihave hundreds of images with written text and I want to experiment with them- the aim is to create an animation. The single frames will be different combination of layered text-pages. So I have to figure out how to filter out the non-text-areas, how I can addapt the text-color to a similar value etc.)
-
- Posts: 8
- Joined: 2010-11-21T14:35:44-07:00
- Authentication code: 8675308
Re: Merge multiple images
hello,
how can I change the order of the layers? Do I have to rename the files first? or is there an other way to influence which image comes to upper layer and which to the layers underneath?
Best regards
Adriana
how can I change the order of the layers? Do I have to rename the files first? or is there an other way to influence which image comes to upper layer and which to the layers underneath?
Best regards
Adriana
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Merge multiple images
They are normally layered in the order listed in the command line. You can adjust the order using -swap, -insert, -delete etc. see http://www.imagemagick.org/Usage/basics/#list_ops
-
- Posts: 8
- Joined: 2010-11-21T14:35:44-07:00
- Authentication code: 8675308
Re: Merge multiple images
Thank you very much!