Search found 12163 matches

by snibgo
2019-09-21T11:31:58-07:00
Forum: Users
Topic: Averaging (convert mean/median) 80000 16bit PNGs
Replies: 9
Views: 11514

Re: Averaging (convert mean/median) 80000 16bit PNGs

There are many methods for calculating the mean image from a large set, eg all at once, or rolling average, or in batches of say 100, or some combination. How large are the images, in pixels? That determines how many will fit in memory at once. I suggest you start work with small images, eg "-c...
by snibgo
2019-09-21T08:37:42-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 7
Views: 9608

Re: Howdo I make +distort affine preserve virtual pixels?

I'm not sure what you want. Your command doesn't shift by 50 pixels because 1 becomes 50 (a shift of 49) but 50 becomes 100 (a shift of 50). See the documentation at http://www.imagemagick.org/script/command-line-options.php#distort : ... if you use the plus form of the operator (+distort) the opera...
by snibgo
2019-09-20T16:49:56-07:00
Forum: Users
Topic: Faster alternative to FX with color channels?
Replies: 4
Views: 8218

Re: Faster alternative to FX with color channels?

As Fred suggests, this can be done with colour matrices, one per input image, then add them together. Something like this. Untested, and add line-continuation characters and escape the parentheses and quote lists as required by your shell. magick ( right.jpg -color-matrix 0.456, 0.5, 0.176 -0.04, -0...
by snibgo
2019-09-20T16:13:58-07:00
Forum: Users
Topic: EXIF Metadata from DNG
Replies: 3
Views: 7695

Re: EXIF Metadata from DNG

The error message says IM expects the data from ufraw-batch to be in PPM format. Even if it worked, I doubt it would solve your problem. Try reading the DNG as a TIFF, and listing all the metadata: identify -verbose TIFF:RAW_CANON_1DM2.dng Does that list the metadata you want? If not, then IM won't ...
by snibgo
2019-09-20T15:27:50-07:00
Forum: Users
Topic: EXIF Metadata from DNG
Replies: 3
Views: 7695

Re: EXIF Metadata from DNG

I suggest you use exiftool for this, not ImageMagick.
by snibgo
2019-09-20T12:33:47-07:00
Forum: Users
Topic: [solved] bulk watermarking images
Replies: 5
Views: 11302

Re: bulk watermarking images

"mogrify" doesn't take an input filename and an output filename. It takes only one filename.
by snibgo
2019-09-20T10:09:42-07:00
Forum: Users
Topic: Request help in generating circular image with transparency...
Replies: 3
Views: 7341

Re: Request help in generating circular image with transparency...

Why do you "-flatten" the image? I think you don't want that.
by snibgo
2019-09-20T10:01:45-07:00
Forum: Users
Topic: Counting Color and Grey Scale in a directory?
Replies: 19
Views: 26059

Re: Counting Color and Grey Scale in a directory?

The mere act of rasterizing a PDF doesn't calculate whether each page has any colour. You could:

Code: Select all

magick in.pdf -colorspace HCL -format %[fx:maxima.g]\n info:
This finds the maximum chroma of each page. When this is zero, the page is monochrome.
by snibgo
2019-09-20T08:02:39-07:00
Forum: Users
Topic: Counting Color and Grey Scale in a directory?
Replies: 19
Views: 26059

Re: Counting Color and Grey Scale in a directory?

IM can read PDF images, via Ghostscript. So you could just use *.pdf in your command.

If you want to extract raster images from PDF files, use pdfimages.
by snibgo
2019-09-20T07:45:08-07:00
Forum: Magick++
Topic: retrieving R G B values from an image
Replies: 3
Views: 67537

Re: retrieving R G B values from an image

That is not a complete but minimal program. I can't paste it into a file, compile and run it.
by snibgo
2019-09-20T06:41:21-07:00
Forum: Magick++
Topic: retrieving R G B values from an image
Replies: 3
Views: 67537

Re: retrieving R G B values from an image

You have already asked this question, so I have deleted the other one. Please don't multipost. You can always bump threads if you feel the need.

It might help if you showed a complete reproducible example: a full but minimal program, and the input image.
by snibgo
2019-09-20T06:35:02-07:00
Forum: Users
Topic: Composite: Person & checkerboard pattern
Replies: 7
Views: 11215

Re: Composite: Person & checkerboard pattern

That looks about right. Here's another example, using %[fx:...] so we have fewer magic numbers. %IMG7%magick ^ Bill_Murray.jpg ^ -distort perspective "0,0,0,0 0,%%[fx:h-1],0,%%[fx:h-1] %%[fx:w-1],0,%%[fx:w-1],%%[fx:421-10] %%[fx:w-1],%%[fx:h-1],%%[fx:w-1],%%[fx:421+10]" ^ -filter point ^ -...
by snibgo
2019-09-20T05:26:09-07:00
Forum: Users
Topic: Cut to 8x8 px | Select best fitting existing 8 color palette
Replies: 3
Views: 7346

Re: Cut to 8x8 px | Select best fitting existing 8 color palette

What version of IM, on what platform? I assume v7 on Windows BAT. This creates just three palettes, but is easily extended to any number. It takes an input image (toes.png) and remaps it in turn to each palette, and finds how much this has changed ("distorted") the image. It writes the sco...
by snibgo
2019-09-20T04:11:26-07:00
Forum: Users
Topic: Cut to 8x8 px | Select best fitting existing 8 color palette
Replies: 3
Views: 7346

Re: Cut to 8x8 px | Select best fitting existing 8 color palette

Step 1 is simply "-crop 8x8". Step 3 is simply "-layers flatten". For step 2, I would prepare palette images. Each would have 8 pixels, for the 8 colours. For each tile, remap to each palette image. Compare the 8 results to the tile, to find which has changed the least. Keep the ...
by snibgo
2019-09-20T04:02:25-07:00
Forum: Users
Topic: Different images between MATLAB and ImageMagick
Replies: 2
Views: 6908

Re: Different images between MATLAB and ImageMagick

"-interpolate" is a setting. If you want it to affect the "-resize" operation, you need to put that before "-resize", not after. But "-interpolate" has no effect on "-resize". "-filter" does have an effect on "-resize". For exampl...