Search found 22680 matches

by fmw42
2018-02-17T22:49:25-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 263

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: 28
Views: 431

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

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

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

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

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

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: 28
Views: 431

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

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: 28
Views: 431

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: 28
Views: 431

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: 28
Views: 431

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?
by fmw42
2018-02-16T15:53:11-07:00
Forum: Users
Topic: how to rotate svg with point coordinate (bug into IM SVG internal renderer)
Replies: 8
Views: 209

Re: how to rotate svg with point coordinate (bug into IM SVG internal renderer)

Filing a bug report will not do any good. The internal renderer is not very good and that is why you have RSVG and Inkscape options. If you feel that Inkscape is not rendering properly, then file a bug with Inkscape.
by fmw42
2018-02-16T14:36:26-07:00
Forum: Users
Topic: how to rotate svg with point coordinate (bug into IM SVG internal renderer)
Replies: 8
Views: 209

Re: how to rotate svg with point coordinate (bug?)

This works fine for me. I see a rotation. I am using IM 6.9.9.34 Q16 Mac OSX Sierra with RSVG 2.40.18 convert test3.svg test3.jpg http://www.fmwconcepts.com/misc_tests/svg_tests/test3.jpg Add -verbose to your command to see which renderer is being used. Perhaps IM cannot find your installed Inkscape.