Search found 12034 matches

by snibgo
2019-09-21T21:06:48-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 5
Views: 113

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

I suggest:

Code: Select all

magick in.png -repage +50+50 -background None -layers Mosaic out.png
Or:

Code: Select all

magick in.png -background None -splice 50x50 out.png
by snibgo
2019-09-21T12:38:18-07:00
Forum: PerlMagick
Topic: Colorize(blend=>string) [what's the format of string?]
Replies: 4
Views: 200

Re: Colorize(blend=>string) [what's the format of string?]

Parameter 'fill' corresponds to the command line's 'value': as you say, it appears to be a color[1], ... I'm not saying that. I expect perl Colorize "fill" corresponds to the CLI "-fill", which is a colour, and perl Colorize "blend" corresponds to CLI "-colorize value ", where value is typically a ...
by snibgo
2019-09-21T11:48:39-07:00
Forum: Users
Topic: Averaging (convert mean/median) 80000 16bit PNGs
Replies: 9
Views: 364

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

I think the OP wants an average image, not a simple number. My suggestion for 1x1 images is only for development and testing.
by snibgo
2019-09-21T11:45:19-07:00
Forum: PerlMagick
Topic: Colorize(blend=>string) [what's the format of string?]
Replies: 4
Views: 200

Re: Colorize(blend=>string) [what's the format of string?]

On $image->Colorize, see http://www.imagemagick.org/script/comma ... p#colorize . Perhaps the blend parameter corresponds to the command-line "value".

But "-colorize" can't create transparency.
by snibgo
2019-09-21T11:31:58-07:00
Forum: Users
Topic: Averaging (convert mean/median) 80000 16bit PNGs
Replies: 9
Views: 364

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 "-crop 1...
by snibgo
2019-09-21T08:37:42-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 5
Views: 113

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: 3
Views: 162

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

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

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

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

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

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

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

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

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.