Search found 9753 matches

by snibgo
2018-02-22T07:47:23-07:00
Forum: Users
Topic: spaces and annotations in filenames
Replies: 19
Views: 317

Re: spaces and annotations in filenames

If you allow uploads from anyone, there are also security considerations. For example, don't allow quote characters.
by snibgo
2018-02-22T07:35:04-07:00
Forum: Users
Topic: same input - different results
Replies: 5
Views: 59

Re: same input - different results

Image files contain metadata such as date/timestamps. You can compare the images for being identical:

Code: Select all

compare -metric AE ina.png inb.png NULL:
The result is the number of pixels that are different.
by snibgo
2018-02-22T07:32:23-07:00
Forum: Users
Topic: Extract sprites/images from a bigger image with transparent background
Replies: 10
Views: 351

Re: Extract sprites/images from a bigger image with transparent background

Probably something like:

Code: Select all

convert in.png -fuzz 10% -transparent #abc out.png
... where abc is the average background colour and the fuzz percentage covers the range of background colours.
by snibgo
2018-02-22T07:29:25-07:00
Forum: Users
Topic: Imagemagick cannot process DNG (dng.la file not found)
Replies: 5
Views: 72

Re: Imagemagick cannot process DNG (dng.la file not found)

Did you build IM yourself? If so, what does config.log say about the build? In particular, what does it say about libraw?
by snibgo
2018-02-22T02:09:42-07:00
Forum: Users
Topic: Using -density in a loop in a batch in Windows 10
Replies: 4
Views: 66

Re: Using -density in a loop in a batch in Windows 10

I've never used Windows 10. (I use 8.1) In all previous versions, "call" is wrong for running an exe program. For your magick line, you should use delayed expansion of the variable "mypage" (because it has to be expanded in each loop repetition, not just once at the start). So the script looks like ...
by snibgo
2018-02-22T01:33:55-07:00
Forum: Users
Topic: Using -density in a loop in a batch in Windows 10
Replies: 4
Views: 66

Re: Using -density in a loop in a batch in Windows 10

"call" is used to call a batch (BAT) script. magick.exe is a binary program, not a BAT script.
by snibgo
2018-02-21T20:47:56-07:00
Forum: Users
Topic: spaces and annotations in filenames
Replies: 19
Views: 317

Re: spaces and annotations in filenames

Ideally, IM would have a setting that meant: "Ignore special characters in filenames." But it doesn't, so including characters like ":[]" in filenames creates ambiguity, which is a bad idea. For example: TIFF:abc.tiff Is this a file named "abc.tiff" with a "TIFF:" prefix, or is it a file named "TIFF...
by snibgo
2018-02-21T11:06:36-07:00
Forum: Users
Topic: spaces and annotations in filenames
Replies: 19
Views: 317

Re: spaces and annotations in filenames

The real problem is that IM interprets characters before the colon as a format type, as in "PNG:abc.png", even if those characters aren't a format type.
by snibgo
2018-02-21T09:43:22-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 26
Views: 361

Re: workflow: resize, watermark, caption

Good stuff. I must admit, that I only understood part of what you've done. I used two tricks. The first was to narrow down which part of your command caused the difference. The second was to remember that in v6 many operations apply only to RGB channels by default, but v7 generally includes the alph...
by snibgo
2018-02-21T08:55:32-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 26
Views: 361

Re: workflow: resize, watermark, caption

So, ... convert -size 800x100 -background none -font Arial -fill white -gravity center caption:Watermark -shade 240x40 out.png ... has a bad result in the alpha channel, on v7.0.7-22. The same behaviour occurs on v7.0.3-6. The cure is to ensure the "-shade" applies to only the RGB channels: -channel...
by snibgo
2018-02-21T07:05:09-07:00
Forum: IMagick
Topic: Transform PDF to PNG (CMYK to RGB)
Replies: 3
Views: 69

Re: Transform PDF to PNG (CMYK to RGB)

Yes, that's what I mean. The reason is that rasterizing the PDF is done (by the delegate, Ghostscript) when the PDF is read. If your PDF contains a profile, the conversion to sRGB should be done by using the "-profile" mechanism. I don't use IMagick so can't test this.
by snibgo
2018-02-21T06:52:23-07:00
Forum: Users
Topic: Convert set of images streamed to STDIN into animated GIF
Replies: 2
Views: 1975

Re: Convert set of images streamed to STDIN into animated GIF

Extra bytes at the end of a PNG stream are ignored by IM, hence only the first PNG is processed. The same is true of JPG. Some formats (eg PPM, GIF, TIFF and MIFF) can contain multiple images, and each will be processed.
by snibgo
2018-02-21T05:13:39-07:00
Forum: IMagick
Topic: Transform PDF to PNG (CMYK to RGB)
Replies: 3
Views: 69

Re: Transform PDF to PNG (CMYK to RGB)

You probably need to set the colorspace before reading the PDF, not after.
by snibgo
2018-02-21T05:01:37-07:00
Forum: Users
Topic: workflow: resize, watermark, caption
Replies: 26
Views: 361

Re: workflow: resize, watermark, caption

We can see the differences are in the alpha channel. The Windows version has partial transparency. In fact, alpha seems to be a copy of the gray values.
snibgo wrote:What versions of IM do you use?
by snibgo
2018-02-21T02:14:03-07:00
Forum: Users
Topic: Canon CR2 to JPG: Lots of Warnings
Replies: 3
Views: 75

Re: Canon CR2 to JPG: Lots of Warnings

As Bonzo says, IM is misinterpreting your CR2 file as TIFF. What version of IM? What is your exact command?

Try the command with "-verbose". What is the text output?