Search found 9737 matches

by snibgo
2018-02-20T08:52:08-07:00
Forum: Users
Topic: How to remove all colors except 'redish'
Replies: 1
Views: 33

Re: How to remove all colors except 'redish'

Three methods are useful here: 1. "-level-colors" can change a particular colour and white, to black and white respectively. This will change the grays to something else. See http://www.imagemagick.org/script/command-line-options.php#level-colors 2. Convert to HCL and separate the "G" channel, and n...
by snibgo
2018-02-20T07:07:20-07:00
Forum: Users
Topic: Convert SVG to PNG
Replies: 1
Views: 27

Re: Convert SVG to PNG

SVG are vector image files, that can be rasterised to any size. An SVG might contain dimensions in pixels, but most don't. Even when it does, that is mere a "suggestion".

So, what do you mean by, "How can I convert SVG to PNG with the original size?"
by snibgo
2018-02-20T03:07:08-07:00
Forum: Users
Topic: Issue with fonts removing the white background
Replies: 1
Views: 31

Re: Issue with fonts removing the white background

What version of IM? Your commands should be: read the input, process it, write the output. So they are in the wrong order. IM is a raster image processor. When you write to a PDF, IM simply inserts the raster image in the PDF. It doesn't create editable text. Does that explain your problem? If not, ...
by snibgo
2018-02-20T02:28:11-07:00
Forum: Bugs
Topic: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback
Replies: 1
Views: 35

Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

What version of IM?

It is likely that policy.xml prohibits you from reading SVG. Can you paste the contents of policy.xml here?
by snibgo
2018-02-19T10:37:12-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 17
Views: 182

Re: workflow: resize, watermark, caption

So if I got this right, the term expressed by the parenthesis is thus nothing else but a file-substitute - whatever I do within the parensthesis? Well, I have simply taken the operations that made the image, put them inside parentheses, and used that as a substitute for the filename. In general we ...
by snibgo
2018-02-19T09:40:56-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 17
Views: 182

Re: workflow: resize, watermark, caption

Just put those operations in place of "watermark.png", in the command I showed above. Put them inside parentheses to stop the "-shade" from also processing the resized stepA.jpg. convert stepA.jpg -resize 600x \ ( -size 600x100 -background none -font DejaVu-Sans -fill white \ -gravity center \ capti...
by snibgo
2018-02-19T09:29:29-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 28
Views: 337

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

... so in this case I expected the output to automatically go to an increased bit depth. That expectation will often not be met. When we care about the bit depth of the output, and we don't know for sure that the input bit depth is sufficient, we should use "+depth" or whatever. When the input has ...
by snibgo
2018-02-19T07:55:13-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 17
Views: 182

Re: workflow: resize, watermark, caption

How do you create the watermark image? What is the "convert" command?
by snibgo
2018-02-19T07:45:10-07:00
Forum: Users
Topic: spaces and annotations in filenames
Replies: 6
Views: 100

Re: spaces and annotations in filenames

With v7, I think you should use "magick identify", not just "identify". Strange. Those work fine for me, IM v7.0.3-5 (and v6.9.5-3) on Cygwin bash on Windows 8.1. $ magick identify -format '%w %h' 'file name.jpg'[0] 70 46 Alan@Fiona /cygdrive/f/web/im $ magick identify -format '%w %h' 'file name.jpg...
by snibgo
2018-02-19T06:59:56-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 17
Views: 182

Re: workflow: resize, watermark, caption

convert -resize 600x stepA.jpg stepB.jpg: The order should be: read the input, process it, write the output. And the final ":" is wrong. So that should be: convert stepA.jpg -resize 600x stepB.jpg Then, combining them is easy. Just chain them together without the intermediate files: convert \ stepA...
by snibgo
2018-02-19T04:21:30-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 17
Views: 182

Re: workflow: resize, watermark, caption

emax wrote:I know how to do each single step, but do not want to have temporary files laying around. A one-shot processing is furthermore faster, I guess.
If you show us each single step, we can probably show how to combine them.

Please also state the version of IM, and your platform.
by snibgo
2018-02-19T00:16:39-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 28
Views: 337

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

If you care about where the threshold occurs, you should use "-threshold 50%" or whatever. Relying on the file-writer part of IM to threshold 1-bit in a particular way seems unwise. If you use "-threshold 50%", you can put "-depth 1" anywhere you want (as far as I can see) and get the same result. I...
by snibgo
2018-02-18T18:57:27-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 28
Views: 337

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

I'll just make a point about this: ... but doesn't what you do here force the conversion to 1-bit after the resize vs mine which does the depth reduction before resizing? "-depth 1" doesn't change any data, it doesn't reduce the data to 1 bit. It is a setting that is used when writing some output fo...
by snibgo
2018-02-18T18:28:53-07:00
Forum: Users
Topic: spaces and annotations in filenames
Replies: 6
Views: 100

Re: spaces and annotations in filenames

You should say what version of IM you are using. Also say what shell you are using (eg bash, Windows CMD, etc) as they all behave differently. Some filesystems won't allow colons (":") in filenames.

Do you have a file with that name?