tile problem after upgrade..
tile problem after upgrade..
Hi,
I'm wondering what I'm doing wrong here, or what has changed..
I just upgraded from IM 6.4.8 to 6.6 .. and now this command doesn't work. ( It used to color dodge the tiled image on image-in )
composite -compose color_dodge -size "500x500" tile:tile.gif image-in image-out
Is there a better way to do this now?
I'm wondering what I'm doing wrong here, or what has changed..
I just upgraded from IM 6.4.8 to 6.6 .. and now this command doesn't work. ( It used to color dodge the tiled image on image-in )
composite -compose color_dodge -size "500x500" tile:tile.gif image-in image-out
Is there a better way to do this now?
Re: tile problem after upgrade..
Any ideas?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: tile problem after upgrade..
What happens instead? Error message? Computer catches fire?and now this command doesn't work.
Perhaps you can post sample inputs and expected output.
snibgo's IM pages: im.snibgo.com
Re: tile problem after upgrade..
Well, the image-out is the same as the image-in
I guess the problem is with the "-size "500x500" tile:tile.gif" .. it's not making the tiled image.
If i make that image before hand, it works..
convert -size "500x500" tile:tile.gif tiled-in.gif
I guess the problem is with the "-size "500x500" tile:tile.gif" .. it's not making the tiled image.
If i make that image before hand, it works..
convert -size "500x500" tile:tile.gif tiled-in.gif
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: tile problem after upgrade..
Hmm. I don't use composite much, so don't know if it has changed. The equivalent "convert" seems to work fine:
Code: Select all
convert image-in -size "500x500" tile:tile.gif -compose color_dodge image-out
snibgo's IM pages: im.snibgo.com
Re: tile problem after upgrade..
That animates the image for me.. instead of composing it.
Re: tile problem after upgrade..
hmm. well, it works if I change the command line order. .
composite -size "500x500" tile:tile.gif image-in -compose color_dodge image-out
composite -size "500x500" tile:tile.gif image-in -compose color_dodge image-out
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: tile problem after upgrade..
Sorry, I forgot the magic work "composite":
To make "convert ... composite" give the same effect as the "composite" command, you need to reverse the order of the two inputs.
Code: Select all
convert image-in -size "500x500" tile:tile.gif -compose color_dodge -composite image-out
snibgo's IM pages: im.snibgo.com
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: tile problem after upgrade..
That is correct, the order issnibgo wrote:Sorry, I forgot the magic work "composite":
To make "convert ... composite" give the same effect as the "composite" command, you need to reverse the order of the two inputs.Code: Select all
convert image-in -size "500x500" tile:tile.gif -compose color_dodge -composite image-out
Code: Select all
composite [color=#800080]source[/color] [color=#800080]background[/color] -compose [color=#800080]method[/color] [color=#800080]result[/color]
convert [color=#800080]background[/color] [color=#800080]source[/color] -compose [color=#800080]method[/color] -composite [color=#800080]result[/color]
However "convert" is designed to in a more practical handling. you generate you background first, then overlay each source image onto that background. As such the order is reversed.
That same order is the order in which a layering operators like -flatten, -mosaic and -layers merge work.
The 'back' or 'lowest' image is given first, followed by the 'upper' images that are 'higher' in the image stack.
ASIDE: the ONLy thing that "composite" can do that "convert" can not do is 'tiling' the source image over the whole background image. (The "composite" -tile option)

Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/