Search found 12028 matches

by snibgo
2019-09-20T16:49:56-07:00
Forum: Users
Topic: Faster alternative to FX with color channels?
Replies: 3
Views: 73

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

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

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

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

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

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

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

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

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

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 ^ -interpolat...
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: 104

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 scores to M1,...
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: 104

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 closest and discard ...
by snibgo
2019-09-20T04:02:25-07:00
Forum: Users
Topic: Different images between MATLAB and ImageMagick
Replies: 2
Views: 68

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 example, "-filter Cubic -resize 400x200!". When IM makes each output pixel f...
by snibgo
2019-09-19T18:00:13-07:00
Forum: Users
Topic: Composite: Person & checkerboard pattern
Replies: 7
Views: 245

Re: Composite: Person & checkerboard pattern

We can get an effect of increasing pixelation by shrinking the right side, then enlarging it with a scaling-type filter (Windows BAT syntax): magick ^ toes.png ^ -distort perspective "0,0,0,0 0,232,0,232 266,0,266,111 266,232,266,121" ^ -filter point ^ -interpolate nearest-neighbor ^ -distort perspe...
by snibgo
2019-09-19T06:53:05-07:00
Forum: Users
Topic: convert bgra to png complains of no file, but file exists
Replies: 3
Views: 93

Re: convert bgra to png complains of no file, but file exists

Yes, that works:

Code: Select all

head --bytes=1536000 screenshot.bgra | magick -size 800x480 -depth 8 BGRA:- out.png