Search found 9733 matches

by snibgo
2018-02-19T10:37:12-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 14
Views: 126

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: 14
Views: 126

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

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: 14
Views: 126

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: 5
Views: 68

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: 14
Views: 126

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: 14
Views: 126

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

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

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: 5
Views: 68

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?
by snibgo
2018-02-17T22:02:00-07:00
Forum: Users
Topic: Windows equivalent of: -fill "black(25%)" -colorize 100
Replies: 18
Views: 188

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

You haven't said what you are trying to do. You have an image, with an opaque picture frame, surrounding a transparent rectangle. Do you want to change the transparent pixels, or all pixels, or what?
by snibgo
2018-02-17T16:16:22-07:00
Forum: Users
Topic: color-matrix
Replies: 5
Views: 99

Re: color-matrix

As Fred says. You should give "-color-matrix" a square matrix of numbers: 1x1, 2x2, ... 6x6. If you give less than 6x6, IM internally pads to that size, with zeros in all entries except for ones on the diagonal. So you can give any square size you want. IM will assume "sensible" values for the ones ...
by snibgo
2018-02-17T15:52:02-07:00
Forum: Users
Topic: Convert 2-bit to png after deskew has odd results
Replies: 28
Views: 334

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

But if you do something that adds more colors, it will change the bit depth to support that number of colors. I don't think IM has ever done this, exactly. If the first input image has depth 8, that is retained until the output, or it is changed by "-depth" or "+depth". However, if it isn't one of ...
by snibgo
2018-02-16T16:03:38-07:00
Forum: Users
Topic: how to rotate svg with point coordinate (bug into IM SVG internal renderer)
Replies: 8
Views: 179

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

Having "transform" as an attribute of the outer-most svg tag seems to be valid SVG, but I'm not sure what a renderer should do with it. Inkscape seems to ignore it. It is unusual -- I've never seen a transform there. It is usual to put such transforms in a group around the elements that are to be tr...