Search found 457 matches

by GreenKoopa
2010-12-07T17:19:29-07:00
Forum: Users
Topic: Composite with different transparencies
Replies: 20
Views: 36092

Re: Composite with different transparencies

Anthony: For any Duff-Porter Alpha composition, transparent colors should never have any effect on the result... period. That is why their is only 12 combinations of color/transparency in the duff-porter set instead of 16. See... http://www.imagemagick.org/Usage/compose/#duff-porter The default comp...
by GreenKoopa
2010-12-07T16:47:46-07:00
Forum: Users
Topic: Composite with different transparencies
Replies: 20
Views: 36092

Re: Composite with different transparencies

I do notice that one image uses transparent black, the other transparent white. I also notice that one image uses and indexed palette and the other doesn't. I don't see that either of these matter though. Anthony: you may as well use -composite instead of -flatten, That is only one compose, when -f...
by GreenKoopa
2010-12-07T16:05:25-07:00
Forum: Users
Topic: Composite with different transparencies
Replies: 20
Views: 36092

Re: Composite with different transparencies

What you are doing looks like it should work to me, but I'm not very experienced. The black seem strange. Even stranger, swapping the image order makes the black go away. I do notice that one image uses transparent black, the other transparent white. You can try setting -compose . I'll ponder it.
by GreenKoopa
2010-12-07T15:44:53-07:00
Forum: Users
Topic: Composite with different transparencies
Replies: 20
Views: 36092

Re: Composite with different transparencies

weatherbadger wrote: Can anyone suggest a quick fix please?
convert USAsnow4.png transp_rain4.png -background white -flatten finalimg.png

Both images have transparency. What should the final image be where both inputs are transparent? I assumed white above.
by GreenKoopa
2010-12-07T13:45:14-07:00
Forum: Bugs
Topic: PNG transparency
Replies: 2
Views: 6655

PNG transparency

At least I think this has to do with PNG, transparency, or palettes. Maybe +level? What is going on here? I notice "PseudoClass 256c" frequently. All images here should have exactly 2 colors. My apologies for the length. There are only two converts , attempted 4 times slightly differently ...
by GreenKoopa
2010-12-06T14:13:48-07:00
Forum: Users
Topic: Align Hole Punches
Replies: 17
Views: 33560

Re: Align Hole Punches

In addition, there is a free program specifically for this purpose called ScanFix - http://people.rit.edu/dpalyka/ScanFix.html - but it can only use TIFF files with Macintosh byte order--my scanner writes to a memory card in JPEG format. I tried converting the scans with imagemagick but the program...
by GreenKoopa
2010-12-06T04:10:24-07:00
Forum: Users
Topic: PNG with indexed palette
Replies: 2
Views: 6224

PNG with indexed palette

I have a PNG image containing only two colors in its palette. I need to change these two colors from certain rgb values to certain other rgba values. I can easily achieve this, but it is very slow. I think the time is spent rebuilding the color table. Is there a fast way to poke new values into the ...
by GreenKoopa
2010-12-05T15:47:24-07:00
Forum: Users
Topic: If color1 withing 'fuzz' of color2
Replies: 28
Views: 49345

Re: If color1 withing 'fuzz' of color2

I have my doubts about the use of a cone for rgb even with transparency. My thoughts are that one just computes normalized euclidean distances. What is the fuzzy distance between a black and a white pixel with: * no transparency * half transparency * full transparency The euclidean distance between...
by GreenKoopa
2010-12-05T14:36:52-07:00
Forum: Users
Topic: If color1 withing 'fuzz' of color2
Replies: 28
Views: 49345

Re: If color1 withing 'fuzz' of color2

Your comment about using FX calculation is only valid for images with fully opaque colors! It will not give fully-transparent-white and fully-transparent-black a 0% fuzzy distance. I am fascinated by this question but I'm way behind the two of you in understanding. Will you lay a simpler case for m...
by GreenKoopa
2010-12-05T08:55:01-07:00
Forum: Users
Topic: Problem with identify -format -append
Replies: 3
Views: 6880

Re: Problem with identify -format -append

But still i do not understand how I can get the value of "identify" in an if and else query I was asking if my identify gave you the boolean output you needed. It compares height > width using the -fx operator. Try running it on an image. Set with = identify -format "%%[fx:h>w]"...
by GreenKoopa
2010-12-04T03:58:04-07:00
Forum: Users
Topic: Problem with identify -format -append
Replies: 3
Views: 6880

Re: Problem with identify -format -append

If I understand, this is the part you need help with? if height > with then Does this help? identify -format "%[fx:h>w]" image.jpg identify -format "%%[fx:h>w]" image.jpg --- (% escaped for inside batch file) You are appending two images. The if condition will look at one image o...
by GreenKoopa
2010-12-03T17:19:32-07:00
Forum: Users
Topic: Png getting corrupted
Replies: 21
Views: 42086

Re: Png getting corrupted

However, when I resize the Panasonic-RP-HS200-K-Black-vfr-detail.png it looks fine with the alpha channel, but when I turn off the alpha channel that odd part of the background turns black. So something odd is happening, but I am not sure just yet what. As I said there have been some changes to PNG...
by GreenKoopa
2010-12-03T15:40:11-07:00
Forum: Users
Topic: Png getting corrupted
Replies: 21
Views: 42086

Re: Png getting corrupted

Again, I don't believe that there is any fault/bug. That 'corruption' is in the original image. You moved to a format with no alpha support without instructing ImageMagick how you wanted that handled. Having an alpha channel gives an image the ability to do transparency. If an image has every pixel ...
by GreenKoopa
2010-12-03T14:40:51-07:00
Forum: Users
Topic: Png getting corrupted
Replies: 21
Views: 42086

Re: Png getting corrupted

gegupta, does adding -background white -flatten give you what you need? I think we have a short solution, surrounded by much explanation. First it is hard to process your combined image. It would have been better to have uploaded 3 separate images. Sorry, I was trying to demonstrate what was going o...
by GreenKoopa
2010-12-03T14:09:03-07:00
Forum: Users
Topic: Png getting corrupted
Replies: 21
Views: 42086

Re: Png getting corrupted

The left image is as given. The second is with the alpha layer thrown out. The right is with the image overlaid on a white background. http://i56.tinypic.com/298ly8.png convert Panasonic-RP-HS200-K-Black-vfr-detail.png -alpha off middle.png convert Panasonic-RP-HS200-K-Black-vfr-detail.png -backgrou...