Search found 10139 matches

by snibgo
2018-05-20T21:55:49-07:00
Forum: Bugs
Topic: Another "-stroke" and "label:" issue.
Replies: 2
Views: 43

Re: Another "-stroke" and "label:" issue.

Those problems don't occur on v7.0.7-28 on Windows 8.1.
by snibgo
2018-05-19T11:48:07-07:00
Forum: Users
Topic: Glueing images together
Replies: 1
Views: 65

Re: Glueing images together

"*.jpg" means "all the jpg files in that directory". If you have two files, this will be both of them. If you do that twice, you will get both images, twice. The obvious solution when you have just two files is to have "*.jpg" only once. If you have 40 files in the same directory that you want to co...
by snibgo
2018-05-16T15:14:53-07:00
Forum: Users
Topic: PDF clipping on the wrong box?
Replies: 17
Views: 731

Re: PDF clipping on the wrong box?

There is usually no need to specify PNG32: or PNG48: or whatever. IM will pick the most appropriate one for you. In my last example, I didn't specify which to use. PNG32: means four channels (RGBA) of 8 bits each. PNG48: means three channels (RGB only, no alpha) of 16 bits each. So PNG48:, which you...
by snibgo
2018-05-16T13:52:55-07:00
Forum: Users
Topic: PDF clipping on the wrong box?
Replies: 17
Views: 731

Re: PDF clipping on the wrong box?

Is there a way to preserve alpha while merging layers? I thought you didn't want to merge layers? There is only one image, so the only point in merging layers is to flatten the image against a background, which removes alpha, and you don't want that. How about: convert -density 300 -define pdf:use-...
by snibgo
2018-05-16T13:12:32-07:00
Forum: Users
Topic: PDF clipping on the wrong box?
Replies: 17
Views: 731

Re: PDF clipping on the wrong box?

The "-background" setting does have a default. The undocumented "+background" sets this.

But "-alpha" isn't a setting, and a default doesn't make sense. Sadly IM doesn't check the sign, so takes whatever follows as the argument to "-alpha" and either throws an error or gets confused.
by snibgo
2018-05-16T12:58:54-07:00
Forum: Users
Topic: Fast Image Overlay (constant overlay image)
Replies: 2
Views: 146

Re: Fast Image Overlay (constant overlay image)

If your overlay is small compared to the input background and output, then reducing the time needed to read the overlay to zero would not reduce the overall time by much. If your overlay is large, and you can read many input backgrounds into memory at the same time, you can read the overlay just onc...
by snibgo
2018-05-16T11:31:20-07:00
Forum: Users
Topic: PDF clipping on the wrong box?
Replies: 17
Views: 731

Re: PDF clipping on the wrong box?

You have "+alpha +background". What do they do? I don't see them in the documentation http://www.imagemagick.org/script/comma ... background
by snibgo
2018-05-16T09:56:42-07:00
Forum: Users
Topic: PDF clipping on the wrong box?
Replies: 17
Views: 731

Re: PDF clipping on the wrong box?

If you want to write to two or more outputs, such as info: and a file, you need to use the "+write" or "-write" command for all except the last, like this: convert -density 300 -define pdf:use-cropbox=true pdf:104U_1.pdf +background +alpha -resize '1366x>' +write info: pdf:104U_1.pdf The size of the...
by snibgo
2018-05-16T09:29:38-07:00
Forum: Users
Topic: PDF clipping on the wrong box?
Replies: 17
Views: 731

Re: PDF clipping on the wrong box?

Testing with With IM v6.9.5-3 and v7.0.7-28, I get the same size whether I flatten or not: f:\web\im>%IM%convert -density 300 -define pdf:use-cropbox=true 104U_1.pdf -resize "1366x>" info: 104U_1.pdf PDF 1366x1938 1366x1938+0+0 16-bit sRGB 0.969u 0:00.125 f:\web\im>%IM%convert -density 300 -define p...
by snibgo
2018-05-16T08:28:27-07:00
Forum: Users
Topic: PDF clipping on the wrong box?
Replies: 17
Views: 731

Re: PDF clipping on the wrong box?

The key point seems to be the "-layers flatten", but when I remove it, -resize does not work either. In what way doesn't "-resize" work? It works fine for me. Your output is: png48:"104U.pdf" This creates a PNG format file with a filename that ends with ".pdf", which seems a bad idea. Why do you do...
by snibgo
2018-05-15T15:46:38-07:00
Forum: Users
Topic: How can I make labels from filenames in batch?
Replies: 14
Views: 375

Re: How can I make labels from filenames in batch?

As Fred says. Walk first (with a single input) before running (in a loop).

Yes, I suggest "magick", never "magick convert" unless you need that for a good (v6) reason.
by snibgo
2018-05-15T12:22:53-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 6
Views: 221

Re: How to remove transparency from a TIF and replace with white background

Roman80 wrote:The following code do not work:
It works fine for me. For you, does it compile? Does it run without error? How do you know it doesn't work?
by snibgo
2018-05-15T06:22:48-07:00
Forum: Users
Topic: How can I make labels from filenames in batch?
Replies: 14
Views: 375

Re: How can I make labels from filenames in batch?

Your command renders the text with "caption:", and then specifies which font the rendering should use. You need to specify the font before rendering.

The same problem with "-pointsize".
by snibgo
2018-05-15T02:57:37-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 6
Views: 221

Re: How to remove transparency from a TIF and replace with white background

The usual way of removing transparency is by flattening against a colour: magick in.png -background blue -layers flatten out.png The MagickCore functions for this are: QueryColorCompliance ("blue", AllCompliance, &inImg->background_color, exception); Image * outImg = MergeImageLayers(inImg, FlattenL...
by snibgo
2018-05-14T16:00:00-07:00
Forum: Users
Topic: How can I make labels from filenames in batch?
Replies: 14
Views: 375

Re: How can I make labels from filenames in batch?

IM has many ways of rendering text. One is "-size WxH label:blah" which automatically chooses a font size, so you won't need to resize it: for %%F in (Spine\*.png) do magick "Front Covers\%%~nF.png" ( -size 400x44 label:"%%~nF" -rotate 90 ) -gravity SouthWest -geometry +26+80 -composite "Covers\%%~n...