Search found 22654 matches

by fmw42
2018-02-18T16:40:20-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 23
Views: 243

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

Your first command with -deskew does not add any new colors. They are just black and white. PGM is a linear gray whereas PNG is non-linear. That is why you see some changes in the results. But no new colors are added, just blacks and whites. There is no blurring. The bit depth that any format suppor...
by fmw42
2018-02-18T13:54:23-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 23
Views: 243

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

1) convert test.pgm -deskew 40% test.png results in 16/1-bit There were no increase in the number of colors in the output that would warrant an increase in depth. So IM keeps the depth. 2) Your command creates a two pixel black and white image. convert xc: xc:black +append t.tiff So it is still bile...
by fmw42
2018-02-18T12:05:19-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 23
Views: 243

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: 168

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: 168

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: 23
Views: 243

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: 168

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: 168

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: 168

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: 168

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: 168

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: 23
Views: 243

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: 91

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: 23
Views: 243

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...