Search found 12028 matches

by snibgo
2019-09-11T08:38:29-07:00
Forum: Bugs
Topic: Bug in polynomial distortion
Replies: 5
Views: 434

Re: Bug in polynomial distortion

Is it a bug? I don't know. I can see it doesn't do what you want. But I don't know how to fix that, or even if it can be fixed within ImageMagick. Where did the coordinates come from? As a workaround for this case, you can subtract 1523 from the output y-coordinates. Then insert 1523 blank rows afte...
by snibgo
2019-09-11T04:30:36-07:00
Forum: Users
Topic: Mogrify Resize has no effect
Replies: 2
Views: 479

Re: Mogrify Resize has no effect

See documentation at http://www.imagemagick.org/script/mogrify.php

Your syntax is wrong. Put "*.jpg" at the end.
by snibgo
2019-09-10T19:19:29-07:00
Forum: Users
Topic: Resize images to a certain size?
Replies: 5
Views: 590

Re: Resize images to a certain size?

You would need a script for that.
by snibgo
2019-09-10T10:31:34-07:00
Forum: Users
Topic: Counting Color and Grey Scale in a directory?
Replies: 19
Views: 1062

Re: Counting Color and Grey Scale in a directory?

Yes, exiftool and ImageMagick can both do the job. They would both open each file and then read metadata, and possibly every pixel.
by snibgo
2019-09-10T09:10:47-07:00
Forum: Users
Topic: Counting Color and Grey Scale in a directory?
Replies: 19
Views: 1062

Re: Counting Color and Grey Scale in a directory?

"Without having to open all of the files?" No. There is nothing external to a file that says whether it has colour, unless some software keeps some kind of database.
by snibgo
2019-09-10T06:11:57-07:00
Forum: Bugs
Topic: Bug in polynomial distortion
Replies: 5
Views: 434

Re: Bug in polynomial distortion

Insert "-verbose" before the distort. The text output is: Polynomial (order 3, terms 10), FX Equivelent -fx 'ii=i+page.x+0.5; jj=j+page.y+0.5; xx = +3340.671647 +4.713454*ii -10.397771*jj -0.000084*ii*jj -0.001877*ii*ii +0.005396*jj*jj +0.000000*ii*ii*ii +0.000001*ii*ii*jj -0.000000*ii*jj*jj -0.0000...
by snibgo
2019-09-08T16:29:35-07:00
Forum: Users
Topic: Change DPI while keeping resolution
Replies: 32
Views: 12813

Re: Change DPI while keeping resolution

convert IN.exr -define quantum:format=floating-point -colorspace RGB OUT.tif ... in converting from exr, the resulting gamma is off, ... You use v7. I suggest you use "magick", not "convert". Assuming IN.exr is encoded as sRGB, your "-colorspace RGB" will convert it to linear RGB. That is, the enco...
by snibgo
2019-09-07T08:14:01-07:00
Forum: IMagick
Topic: Error Since Update on 4th-September-2019 HELP!!!
Replies: 4
Views: 741

Re: Error Since Update on 4th-September-2019 HELP!!!

This is an ImageMagick forum. You report errors from IMagick, which is a different product that provides an interface between PHP and ImageMagick. Perhaps IMagick documentation or a forum can help with those error messages. I suggest you try the equivalent ImageMagick at the command line: convert si...
by snibgo
2019-09-06T11:36:44-07:00
Forum: Magick++
Topic: RE: Combining HDR/EXR files into a single PSD
Replies: 15
Views: 3730

Re: RE: Combining HDR/EXR files into a single PSD

Gimp 2.10 can read them.
by snibgo
2019-09-06T09:32:43-07:00
Forum: Users
Topic: Cropping multiple receipts on one scanned image
Replies: 11
Views: 1135

Re: Cropping multiple receipts on one scanned image

Above, I smeared the black by compositing clones, each with an offset. Morphology may be more intuitive and faster. For example, we spread horizontally by 31 pixels (15 pixels left, and 15 right), and 51 pixels vertically (25 in each direction). "Erode" means the white pixels are eroded, reduced. %I...
by snibgo
2019-09-06T06:15:34-07:00
Forum: Users
Topic: Cropping multiple receipts on one scanned image
Replies: 11
Views: 1135

Re: Cropping multiple receipts on one scanned image

Is there a specific command for that? No. It can be built into a script. This is a fairly common requirement: get information from one image to decide how to process another image. For example, Windows BAT syntax: %IMG7%magick ^ Receipts_blurred.png ^ -contrast-stretch 5%%x50%% ^ -threshold 90%% ^ ...
by snibgo
2019-09-06T04:38:43-07:00
Forum: Users
Topic: Cropping multiple receipts on one scanned image
Replies: 11
Views: 1135

Re: Cropping multiple receipts on one scanned image

I have shown how the image can be processed to find the location of each receipt. You would then crop the original image at those locations.
by snibgo
2019-09-05T14:52:02-07:00
Forum: Magick++
Topic: RE: Combining HDR/EXR files into a single PSD
Replies: 15
Views: 3730

Re: RE: Combining HDR/EXR files into a single PSD

Jimbo wrote:.. TIFF (which has a 40k pixel dimension limit), ...
Does it? IM can happily write and read 1x100000 and 100000x1 32-bit HDRI pixel TIFFs.
by snibgo
2019-09-05T10:06:22-07:00
Forum: Users
Topic: Cropping multiple receipts on one scanned image
Replies: 11
Views: 1135

Re: Cropping multiple receipts on one scanned image

We can stretch the contrast to make black and white. Then spread the blackness a bit. Windows syntax: magick Receipts_blurred.png -contrast-stretch 5%x90% ( +clone ) -geometry +20+20 -compose Darken -composite receipts_out.png http://snibgo.com/imforums/receipts_out.png This may be sufficient for Fr...
by snibgo
2019-09-05T07:45:30-07:00
Forum: Users
Topic: Fill behind all translucent (but not fully transparent) pixels
Replies: 3
Views: 623

Re: Fill behind all translucent (but not fully transparent) pixels

I'd like to fill behind all translucent (but not fully transparent) pixels with an opaque color (white), ... This does what you ask for (Windows syntax): magick j86x4XQ.png ( -clone 0 -background White -layers Flatten ) ( -clone 0 -alpha extract -threshold 0 ) -delete 0 -alpha off -compose CopyOpac...