Search found 22652 matches

by fmw42
2018-02-18T12:05:19-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 18
Views: 187

Re: Convert 2-bit to png after deskew has odd results

Please write your questions with respect to commands that you feel are not working as we discussed above. Imagemgick will preserve bit depth if you do not add more colors than that bit depth allows and the output format supports that. We showed that the number of colors increases to 644, you get eit...
by fmw42
2018-02-17T23:40:01-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 161

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

Sorry, I still do not understand. If you explain what you want to happen in the center where it is now fully transparent and what you want to happen on the border, then perhaps I can suggest something better. What are you going to do with the result.tif afterwards? Are you going to impose that over ...
by fmw42
2018-02-17T22:49:25-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 161

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

The interior of your frame.tif is already transparent. So I am not sure what you want to do. What do you expect to happen in the middle? If you want to change the border transparency and keep the center fully transparent, then just multiply the alpha channel of the image by 0.6. convert frame.tif -c...
by fmw42
2018-02-17T22:40:53-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 18
Views: 187

Re: Convert 2-bit to png after deskew has odd results

So is there a question?
by fmw42
2018-02-17T22:39:53-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 161

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

If you provide your input image, we can probably help more. Does the input have transparency? Can you create a binary mask that corresponds to just the border that you want to add transparency?
by fmw42
2018-02-17T22:13:27-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 161

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

You have not give the full command line starting with convert showing your input and output images. So we really do not know what you are trying to do nor why?
by fmw42
2018-02-17T21:17:01-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 161

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

Perhaps you should provide your full command line and explain if you want transparency or not.
by fmw42
2018-02-17T21:12:45-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 161

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

That is not correct if you want transparency. It is making a 25% gray image with no transparency. It is the same as just

Code: Select all

-fill "gray(25%%)" -colorize 100
by fmw42
2018-02-17T19:41:05-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 161

Re: Windows equivalent of: -fill "black(25%)" -colorize 100

There are no shades of black, only shades of gray. In gray shades, black is gray(0) or gray(0%), though you can use the color name black. So to make 25% opaque gray between black and white use the following. -fill "gray(25%)" -colorize 100 the 100 does not need %. If in bat file, then -fill "gray(25...
by fmw42
2018-02-17T16:03:13-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 18
Views: 187

Re: Convert 2-bit to png after deskew has odd results

On Q16, with TIFF, the results are different. convert xc: xc:black +append t.tif identify -verbose says 16/1-bit (2 colors) but convert t.tif -resize 1000x1! t2.tif identify -verbose 16-bit grayscale with 644 colors. So I think the resulting bit depth and colors depends upon the output format. The p...
by fmw42
2018-02-17T15:36:21-07:00
Forum: Users
Topic: color-matrix
Replies: 5
Views: 88

Re: color-matrix

Offsets are like adding to the value, whereas the other entries are like a multiplier. Alpha is always in the range 0 to 1 in ImageMagick. Offsets are also expressed as fractions typically in the range -1 to 1. 1=R or C 2=G or Y 3=B or M 4=K 5=A 6=offsets I believe IM fills channels not used after t...
by fmw42
2018-02-17T15:22:04-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 18
Views: 187

Re: Convert 2-bit to png after deskew has odd results

IM will try to preserve the bit-depth. But if you do something that adds more colors, it can change the bit depth to support that number of colors, depending upon circumstances. See snibgo's comments below for more details. I noticed the loss in quality between your original PGM and PNG. That may be...
by fmw42
2018-02-17T11:56:46-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 18
Views: 187

Re: Convert 2-bit to png after deskew has odd results

I believe that the reason for the results you get is that JPG is a lossy compressed format and does not support a true binary format. Due to the block-wise compression, it changes your values from two values to many grayscale values. Thus the JPG result will be 8-bit grayscale. Whereas the PNG compr...
by fmw42
2018-02-17T10:58:45-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 18
Views: 187

Re: Convert 2-bit to png after deskew has odd results

Can you post a link to your PGM 1-bit image, so we can examine it and test with it?