Search found 8885 matches

by anthony
2017-01-12T16:16:57-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 3643

Re: How to remove MS Word Spellcheck wavy lines

Hmmm ... The kernel generated is for a convolution, not a dilatation. I am also not sure if it is inverted. After making the conversions, and reformatting so as to make it more 'human readable' the resulting kernel did not look much like a wavy line, but more like a hash pattern! 24x8: 1 1 1 1 - - -...
by anthony
2017-01-11T18:25:06-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 3643

Re: How to remove MS Word Spellcheck wavy lines

Nice use of morphology... Exactly what it is meant for ;-) Use Erode to locate image parts that match the given kernel set a conditional dilation mask, and dilate the result back to the matching lines remove the found lines. It might be improved by replacing the kernel with a DIY kernel of the 'wavy...
by anthony
2017-01-02T19:27:56-07:00
Forum: Users
Topic: Why is the Default Gravity Not The Same As Northwest?
Replies: 1
Views: 1420

Re: Why is the Default Gravity Not The Same As Northwest?

Annotate was created so as to avoid the need for 'doubled quoting', when using Draw. See Text to Image Handling, Annotate http://www.imagemagick.org/Usage/text/#annotate Without gravity, the text position is the most logical method. Position the 'cursour' or 'caret' of the text before rendering it. ...
by anthony
2017-01-02T17:42:29-07:00
Forum: Users
Topic: How to batch resize to a specific aspect ratio by adding white borders
Replies: 2
Views: 1509

Re: How to batch resize to a specific aspect ratio by adding white borders

Additional...
This is also related.. Rotate with internal crop Preserving Aspect Ratio
http://www.imagemagick.org/Usage/distor ... te_methods
by anthony
2017-01-02T17:36:35-07:00
Forum: Users
Topic: How to batch resize to a specific aspect ratio by adding white borders
Replies: 2
Views: 1509

Re: How to batch resize to a specific aspect ratio by adding white borders

LOok at the examples in Thumbnails, Padding Images http://www.imagemagick.org/Usage/thumbnails/#pad However if you are not after a specific size just a specific ratio. That can be trickier. See 'Squaring an image' whcih is very simular to what you are after. http://www.imagemagick.org/Usage/thumbnai...
by anthony
2017-01-02T17:22:37-07:00
Forum: Users
Topic: Using -distort vs -rotate with a pattern:
Replies: 4
Views: 1839

Re: Using -distort vs -rotate with a pattern:

For the reasons why Distort in a non-rotation 'NO-OP' (which is what you did) produces a change see.. IM Examples, Distort, No-Op Distortions http://www.imagemagick.org/Usage/distorts/#distort_noop Now -rotate actually uses distort to do the rotations! But it also will short-circuit on a NO-OP (or u...
by anthony
2016-12-30T03:21:58-07:00
Forum: Users
Topic: Merry Christmas: 3D Halographic effect
Replies: 3
Views: 2382

Re: Merry Christmas: 3D Halographic effect

I can think of a number of methods to do something like that! Have a look at the 'Star' generation script.... http://www.imagemagick.org/Usage/advanced/#stars You should be able to extract the bright points, convert those into 'stars' and then overlay that. In may way that is what those glasses are ...
by anthony
2016-12-22T16:36:53-07:00
Forum: Users
Topic: Adding image to pdf
Replies: 3
Views: 2531

Re: Adding image to pdf

First PDF is a vector image format, but ImageMagick is a raster image processor. If IM reads a PDF it will render it into a raster (pixel array) at a specific resolution/density. That is probably not what you want. See the warning... A word about Vector Image formats http://www.imagemagick.org/Usage...
by anthony
2016-12-22T16:27:52-07:00
Forum: Users
Topic: Convert Watermark Bash Script to CLI Command
Replies: 22
Views: 6965

Re: Convert Watermark Bash Script to CLI Command

Did you want to overlay of top of the image, or append to the side of the image?

See Annotating Images for LOTS of different techniques.
http://www.imagemagick.org/Usage/annotating/#annotating
by anthony
2016-12-21T20:34:12-07:00
Forum: Users
Topic: 0-padding numbers in filename when using fx calculation
Replies: 2
Views: 1413

Re: 0-padding numbers in filename when using fx calculation

At the moment there is no way to 'format' the number output from a FX calcualtion. It was thought about an planned though. see the Plan.... in Future Developments section of IM Examples http://www.imagemagick.org/Usage/bugs/ IMv7 Percent Escapes and FX Expression Development Section "Formatting Perc...
by anthony
2016-12-21T19:18:13-07:00
Forum: Users
Topic: cropping noisy background/border
Replies: 3
Views: 1491

Re: cropping noisy background/border

Also see... trimming noisy image
http://www.imagemagick.org/Usage/crop/#trim_noisy

This blurs the image to filter out the noise, trims it with an appropriate fuzz, then applies that trim results to the unblurred image with some adjustments.
by anthony
2016-12-21T18:04:51-07:00
Forum: Users
Topic: IM 7 Improvements and Scripting
Replies: 11
Views: 4115

Re: IM 7 Improvements and Scripting

use -write

The only place a -write is implied is on the end of the command line.
-read does remain implied for any option not starting with a '-' or '+', but in a script it may be better of also using -read to be explicit.
by anthony
2016-12-21T17:46:54-07:00
Forum: Users
Topic: IM 7 Improvements and Scripting
Replies: 11
Views: 4115

Re: IM 7 Improvements and Scripting

At the moment the features I know is working. magick -script file.mgk Where file.mgk contains all the command line options that you would normally put on the command line. but without all the shell escapes, for shell meta characters and end of lines, and with '#' comments or full line comments if th...
by anthony
2016-12-20T22:02:12-07:00
Forum: Users
Topic: IM 7 Improvements and Scripting
Replies: 11
Views: 4115

Re: IM 7 Improvements and Scripting

The benefit is you can create complex functions... for example magick image.jpg \ -script circle_mask.mgk \ -script add_border.mgk \ -script 3d_warp.mgk \ -script thumbnail.mgk \ output.png You can call a -script multiple times if needed. It may be we can get true functions (code blocks) at some poi...
by anthony
2016-12-20T18:53:11-07:00
Forum: Users
Topic: About "-shear" and "-distort affineprojection"
Replies: 8
Views: 3324

Re: About "-shear" and "-distort affineprojection"

There are basically two types of shear. One by by rotating a vector, The other by just pushing the vector to one side. Shears are normally given to be a simpler 'side-push', So tan would be the correct math. I updated the linked to example to reflect that. I only used sin() in that example because I...