Search found 8882 matches

by anthony
2019-03-10T16:11:24-07:00
Forum: Users
Topic: Trimming Noisy Images - another robust solution
Replies: 9
Views: 25495

Re: Trimming Noisy Images - another robust solution

Yes that was added later. Defaults when numbers not given being the images virtual canvas size. Though that default for image area selection is more commonly used for -crop rather than -scale. When percentages are involved the default is a copy of the other percentage, that was -crop 50% or -scale 5...
by anthony
2019-01-31T17:27:00-07:00
Forum: Users
Topic: Reduce the image generation time and optimize the imagemagick commands
Replies: 6
Views: 1486

Re: Reduce the image generation time and optimize the imagemagick commands

The main thing to keep in mind when in merging commands is that sometimes after setting some setting, you will need to unset or reset them, in case that setting effects a later step. For example you start with a " -gravity center " later you do this again, when it is not needed as that setting would...
by anthony
2019-01-31T17:13:41-07:00
Forum: Users
Topic: adding fancy border to an image using command
Replies: 8
Views: 1362

Re: adding fancy border to an image using command

Unless the picture you want to frame fits in to your 'leafy image nicely... You may want to break up leafy into sub pictures, and then add them around your picture. Something like the "picture frame" process in http://www.imagemagick.org/Usage/thumbnails/#frame_edge It all depends on exactly what yo...
by anthony
2019-01-14T22:27:40-07:00
Forum: Users
Topic: OCR image preprocessing with ImageMagic
Replies: 7
Views: 2173

Re: OCR image preprocessing with ImageMagic

If the image is from a screen dump... Make the image BIGGER.... tesseract is designed for scanned documents at about 600dpi, but displays are typically only 90 to 100dpi so scaling by 600% often works wonders. I also find some fonts make go bad. For example a 'serif f' will often be thought of as a ...
by anthony
2019-01-14T22:21:22-07:00
Forum: Users
Topic: How would you go about separating elements from their background?
Replies: 9
Views: 2444

Re: How would you go about separating elements from their background?

Also how 'fuzzy' and 'shaped' the border is between background and foreground. For example rotated square images? Or other odd shapes. What other 'junk' is on the page... Text? It is all a matter of defining what is foreground and background in a way the computer can understand. The trouble with com...
by anthony
2019-01-14T21:43:02-07:00
Forum: Users
Topic: replace white with transparency
Replies: 6
Views: 68549

Re: replace white with transparency

Compare it with a white image, and generate a mask, with anti-aliased transparent edges... See http://www.imagemagick.org/Usage/masking/#semi-trans Though it is simpler as the background is just white. Basically work out what IS fully-opaque (foreground), and you know what is fully-transparent (back...
by anthony
2018-10-13T16:23:30-07:00
Forum: Users
Topic: Optimizing Imagemagick convert & composite code
Replies: 14
Views: 11810

Re: Optimizing Imagemagick convert & composite code

Getting full lines and spaces requires careful quoting. You need to read, not concatenate into a work list. Note the use of "$line" in the loop.. while read line; do convert canvas.jpg \ \( -size 100x100 -background white -font arial.ttf \ -fill black label:"$line" -trim +repage -depth 8 \) \ -gravi...
by anthony
2018-09-24T17:50:18-07:00
Forum: Users
Topic: How to draw with tranparent color / how draw erasures?
Replies: 3
Views: 2707

Re: How to draw with tranparent color / how draw erasures?

A Number of ways... Here are two... Using Masks with Images http://www.imagemagick.org/Usage/masking/#masks Composing using Duff-Porter methods, Specifically with Dst-Out http://www.imagemagick.org/Usage/compose/#dstout But essentially you want to manipulate the images alpha channel, either directly...
by anthony
2018-08-07T16:31:31-07:00
Forum: Users
Topic: Is it possible to combine 2 images & make a transparent PNG?
Replies: 8
Views: 18783

Re: Is it possible to combine 2 images & make a transparent PNG?

I think this is similar to the example... http://www.imagemagick.org/Usage/masking/#two_background Two images same foreground different background... Recover the foreground on transparency. Also see discussion "undo a composite -dissolve" http://www.imagemagick.org/discourse-server/viewtopic.php?t=1...
by anthony
2018-08-05T16:50:46-07:00
Forum: Users
Topic: How do I Apply Multiple Screen and Multiply to one image?
Replies: 27
Views: 9782

Re: How do I Apply Multiple Screen and Multiply to one image?

I was unaware at Associate and Disassociate options as well. Any idea as to what they actually do? does it actually add/delete the alpha channel data from the image? The page is not exactly clear (needs some examples I suppose). Also the aliases 'On' and 'Off' are missing from the list as being the ...
by anthony
2018-06-24T21:45:12-07:00
Forum: Bugs
Topic: [CLOSED] possible bug +distort polynomial
Replies: 12
Views: 7668

Re: [CLOSED] possible bug +distort polynomial

Using +disort to map the source image bounds to destination image to calculate the bit-fit of the destination image viewport, needs the reverse of the distortion function. That is not possible with polynomial EWA calculations requires the derivative (slope) of the function going from destination ima...
by anthony
2018-06-24T18:28:25-07:00
Forum: Bugs
Topic: [CLOSED] possible bug +distort polynomial
Replies: 12
Views: 7668

Re: [CLOSED] possible bug +distort polynomial

Lancos is a resampling filter and as such needs a resampling area (that is a Elliptical Weighted Average). Without EWA you can't use Lancos, but you can use a 'scale-less' single point lookup... That is Interpolation! The EWA may actually work, as the function derivative, which is what is needed for...
by anthony
2018-06-23T05:45:30-07:00
Forum: Bugs
Topic: [CLOSED] possible bug +distort polynomial
Replies: 12
Views: 7668

Re: possible bug +distort polynomial

The difference in -distort and +distort is supposed to only be in the calculation of the 'viewport' of the final result. You can also override the viewport of BOTH of those operators using -define distort:viewport=WxH+X+Y See http://www.imagemagick.org/Usage/distorts/#distort_viewport You can get mo...
by anthony
2018-05-15T20:56:13-07:00
Forum: Bugs
Topic: ephemeral: no longer works
Replies: 2
Views: 3637

ephemeral: no longer works

ephemeral coder no longer appears to work.

Is this intentional?