Search found 10702 matches

by snibgo
2018-10-17T03:09:48-07:00
Forum: Users
Topic: Get coordinates Top, Left, size of some areas
Replies: 6
Views: 89

Re: Get coordinates Top, Left, size of some areas

Perhaps I misunderstand the question. I think cgkas simply wants the coordinates of the black connected components: magick Black_and_White.png -threshold 50% +write x.png -define connected-components:verbose=true -define connected-components:area-threshold=10 -connected-components 4 NULL: The first ...
by snibgo
2018-10-16T16:52:14-07:00
Forum: Bugs
Topic: Problem with "-set option:distort:scale" in IM6 and IM7
Replies: 2
Views: 45

Re: Problem with "-set option:distort:scale" in IM6 and IM7

distort.c has an explicit test for values less than 0.1, throwing an error: if ( output_scaling < 0.1 ) { coeff = (double *) RelinquishMagickMemory(coeff); (void) ThrowMagickException(exception,GetMagickModule(),OptionError, "InvalidArgument","%s", "-set option:distort:scale" ); return((Image *) NUL...
by snibgo
2018-10-16T08:48:10-07:00
Forum: Users
Topic: Replace all colours in image using another image
Replies: 2
Views: 57

Re: Replace all colours in image using another image

Doing this with a shell loop that reads "txt:" is the obvious method. The loop might build a command with many "-opaque" operations. But it can be done in a single magick command. Windows BAT syntax: magick ^ image.png +write mpr:ORIG ^ -set option:SIZE %%wx%%h ^ NULL: ^ ( palette_rgb.png ^ -unique-...
by snibgo
2018-10-16T08:00:47-07:00
Forum: Users
Topic: Rename image conversion to parent folder name
Replies: 1
Views: 29

Re: Rename image conversion to parent folder name

You would need to decide on the rules when in a nested folder, eg /mydir/mydir2/abc.pdf. What do you want the new name to be?

You might do this by setting a shell variable before the magick command, or renaming afterwards.
by snibgo
2018-10-16T04:30:05-07:00
Forum: Developers
Topic: Collating a collection of images into one PDF without holding them all in memory at once
Replies: 2
Views: 62

Re: Collating a collection of images into one PDF without holding them all in memory at once

I would convert each image to its own PDF, then use "pdfunite" to unite the PDFs into one.
by snibgo
2018-10-16T04:26:55-07:00
Forum: Users
Topic: convert: Maximum TIFF file size exceeded. `TIFFAppendToStrip' @ error/tiff.c/TIFFErrors/650
Replies: 1
Views: 33

Re: convert: Maximum TIFF file size exceeded. `TIFFAppendToStrip' @ error/tiff.c/TIFFErrors/650

Try "-define tiff:rows-per-strip=1".

Your command is very strange. You set the density to 300x300, then resample at the same density. Do you expect the resample to do anything?

You scale to a size, then resize to the same size. Do you expect the resize to do anything?
by snibgo
2018-10-16T04:18:56-07:00
Forum: Users
Topic: Compare two images, but gently
Replies: 2
Views: 47

Re: Compare two images, but gently

Some comparison metrics can use fuzz:

Code: Select all

compare -metric AE -fuzz 2% redcar1.jpg redcar2.jpg out.png
by snibgo
2018-10-16T04:15:09-07:00
Forum: Users
Topic: Watermarking images with proportional watermark
Replies: 4
Views: 69

Re: Watermarking images with proportional watermark

You could set the watermark size after reading just the main image. Then resize the watermark, in parentheses so only that image is resized.

Code: Select all

magick main.png -set option:WMSIZE %[fx:w/2]x%[fx:h/2] ( wm.png -resize %[WMSIZE] ) -composite out.png
by snibgo
2018-10-15T13:58:27-07:00
Forum: Users
Topic: Unwanted gaps between combined PNG images
Replies: 12
Views: 424

Re: Unwanted gaps between combined PNG images

You still haven't provided the input files that you say are PNG format.

Your files in01.png etc are actually JPEG format.

For us to try to reproduce your problem, we need the exact command you used, and your exact input files.
by snibgo
2018-10-15T10:25:30-07:00
Forum: Users
Topic: Detecting blank (no pixel) image files - version 7.0.8 Q16
Replies: 7
Views: 139

Re: Detecting blank image files

Arko wrote:My goal is to detect blank image files in a given folder and delete those files.
What do you mean by "blank"? Entirely white? Entirely black? Or what?
by snibgo
2018-10-15T03:52:19-07:00
Forum: Bugs
Topic: Problem with -depth on PNG images
Replies: 3
Views: 82

Re: Problem with -depth on PNG images

This works fine in v7.0.7-28 (with libpng 1.6.34). Perhaps more recent versions have a bug.
by snibgo
2018-10-15T03:15:42-07:00
Forum: Developers
Topic: Magick Convert Evaluate Sequence OR Color on Mismatched Pixels
Replies: 9
Views: 147

Re: Magick Convert Evaluate Sequence OR Color on Mismatched Pixels

Please tell us what version of IM, on what platform. Also post the actual input and output files, not some mashup. ... pixels that aren't present in both img1.jpg and img2.jpg ... That doesn't make sense. "-evaluate-sequence Or" will make output pixel values that are the binary "Or" of two or more i...
by snibgo
2018-10-13T14:04:04-07:00
Forum: Users
Topic: Failed to allocate quantum_info error
Replies: 5
Views: 167

Re: Failed to allocate quantum_info error

What version of IM? Assuming v6 Q16 integer, you need 8 bytes per pixel. 400 pages needs 28 GB.

IM will store pixels on disk when there isn't enough memory, but you might have problems before it gets that far.
by snibgo
2018-10-13T13:07:08-07:00
Forum: Users
Topic: Failed to allocate quantum_info error
Replies: 5
Views: 167

Re: Failed to allocate quantum_info error

What version of IM?

"Failed to allocate" probably means you ran out of memory. Your policy.xml limits the memory and disk usage to 4 GB, which isn't much. How large are your PDF pages, in pixels?
by snibgo
2018-10-13T12:50:04-07:00
Forum: Bugs
Topic: Purple haze when converting CR2 into JPG
Replies: 3
Views: 162

Re: Purple haze when converting CR2 into JPG

What is your platform?

Your version of IM is old. Does an upgrade cure the problem?