Search found 8887 matches

by anthony
2019-07-02T22:25:14-07:00
Forum: Users
Topic: Generating svg images using convert "command line"
Replies: 13
Views: 27867

Re: Generating svg images using convert "command line"

cancerberosgx For converting shapes to vectors, you may like to look at IM Examples... http://www.imagemagick.org/Usage//draw/#svg_output Where I go though the process, using autotrace. however SVG is not really suitable for 'drawing' real photos. I have now added a link from that area to your post...
by anthony
2019-05-19T16:51:27-07:00
Forum: Users
Topic: How to save PGM in Raw(binary) format instead of ascii?
Replies: 4
Views: 11611

Re: How to save PGM in Raw(binary) format instead of ascii?

Yes it was added to IM Examples all those years ago...

PbmPlus / NetPBM Image File Format: PBM PGM PPM PNM PAM
http://www.imagemagick.org/Usage/formats/#pbmplus
by anthony
2019-03-26T17:14:39-07:00
Forum: Users
Topic: SOLVED Is image density an actual feature of an image,or merely a means of defining the size of the image in the viewer?
Replies: 10
Views: 5651

Re: SOLVED Is image density an actual feature of an image,or merely a means of defining the size of the image in the vie

Image Density or Resolution http://www.imagemagick.org/Usage/basics/#density The density of an image is completely irrelevant to the actual images pixel size. It is just a set of numbers stored with the image to tell output devices such as printers and displays how many dots (or pixels) per inch the...
by anthony
2019-03-26T17:11:11-07:00
Forum: Users
Topic: Extracr B&W ratio in order to "target" images
Replies: 11
Views: 5687

Re: Extracr B&W ratio in order to "target" images

For UNIX I would use single quotes. Otherwise '\' in '\n' may get removed, though as the shell did not understand '\n' it probably didn't remove it. In shell (and more (non-DOS) languages), single quotes means 'literal' or don't do anything... While double quotes means handle '$' variable substituti...
by anthony
2019-03-26T16:49:21-07:00
Forum: Bugs
Topic: disappointed by -define jpeg:preserve-settings results
Replies: 10
Views: 9990

Re: disappointed by -define jpeg:preserve-settings results

I have removed (HTML Commented) the define from IM Examples. It will update, during normal distribution.
by anthony
2019-03-25T18:13:32-07:00
Forum: Bugs
Topic: disappointed by -define jpeg:preserve-settings results
Replies: 10
Views: 9990

Re: disappointed by -define jpeg:preserve-settings results

What would you like the documentation to say? ;-) It is a little confusing as to what exactly the option does. It sounds like the setting is 'true' by default. Does setting it to 'false' disable the preservation? Or does the option just not do anything at all? :-? Or should I just mention those sett...
by anthony
2019-03-10T16:11:24-07:00
Forum: Users
Topic: Trimming Noisy Images - another robust solution
Replies: 9
Views: 31056

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

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

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

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

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

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

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

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...