Search found 8887 matches

by anthony
2017-08-27T17:42:13-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 31416

Re: Determining if All Pixels Fall Within a Color Range

An alternative for 3 is to -solarize the image at 50% That make pure white, pure black (folding the colorspace in half) As such is any pixels after a solarize is more than 2% away from black, you have grey pixels.
by anthony
2017-06-20T16:35:12-07:00
Forum: Users
Topic: Identify all colours in picture and output to txt ?
Replies: 22
Views: 23634

Re: Identify all colours in picture and output to txt ?

Extracting image colors... http://www.imagemagick.org/Usage/quantize/#extract Specifically you either use unique colors, or use the histogram: output format and extract teh image comment. convert rose: -format %c -depth 8 histogram:info:- This not only outputs the colors (one color per line), but al...
by anthony
2017-06-20T16:30:06-07:00
Forum: Users
Topic: convert fails for fig to jpg
Replies: 1
Views: 4276

Re: convert fails for fig to jpg

The Fig file format is a vector image format saved by the program "xfig" . This has not seem any real changes for at least 20 years, but is still available using Linux. Heck.. I'm so old I still use it for basic line drawings (even combined with small raster images). The best way to output...
by anthony
2017-04-26T16:21:52-07:00
Forum: Bugs
Topic: IM7.0.5-5 Problem with border and transparent canvas...
Replies: 9
Views: 15351

Re: IM7.0.5-5 Problem with border and transparent canvas...

In the second set of examples of Border... http://www.imagemagick.org/Usage/crop/#border I go though a number of different compose methods, including Copy. And the very next example (third one) that is a specific one for Copy! convert star.gif -bordercolor LimeGreen -compose Copy \ -border 5 star_bo...
by anthony
2017-03-16T17:09:25-07:00
Forum: Users
Topic: Aliasing for 45 degree edge
Replies: 9
Views: 11943

Re: Aliasing for 45 degree edge

Hi. Thanks for the replies. The issue was actually related to the how I was using coordinates to distort the image to create 45 degree output. I was using a combination of pixel and image coordinates using exact values and %h. The result was that the output was off just enough to present the issue....
by anthony
2017-03-16T17:03:51-07:00
Forum: Users
Topic: Aliasing for 45 degree edge
Replies: 9
Views: 11943

Re: Aliasing for 45 degree edge

Answering the original question, which is a core aspect of raster graphic processing. Its is sort of the elephant in the room, and as such why its seemed to have been ignored... Cam someone explain why a 45 degree angle would not be single pixel step pattern throughout the edge? Because at a 45 degr...
by anthony
2017-03-15T19:17:34-07:00
Forum: Users
Topic: How to do a sub-pixel (float) crop
Replies: 13
Views: 14416

Re: How to do a sub-pixel (float) crop

Just remember viewport is only interger based. It defined what pixels in the distorted output space is in the final image (as well as the final images virtual offset). The SRT (or really a Affine Matrix transformation - or any other distortion method really) will distort based on the sub-pixel coord...
by anthony
2017-03-15T19:10:37-07:00
Forum: Users
Topic: A Print Delegate -- FYI
Replies: 0
Views: 12132

A Print Delegate -- FYI

I recently needed to grab a window on my display an print it... This is what I came up with, just throwing it out there... Printing Delegate One of the most useful delegates I have ever created was to let me easily print images to a postscript printer. The printer was already set up using the linux ...
by anthony
2017-03-13T19:36:14-07:00
Forum: Users
Topic: Replace/change/shift colors
Replies: 4
Views: 9610

Re: Replace/change/shift colors

I recommend modulating in a different cyclic hue colorspace such as LCHab as it will preserve the color intensity better, though the hue values are slightly different.

See Modulate in LCHab and other Colorspaces
by anthony
2017-02-26T16:54:52-07:00
Forum: Users
Topic: Watermark all images in sub folders
Replies: 30
Views: 46937

Re: Watermark all images in sub folders

Why not make this a little more direct, That is by using xargs, and feel it the file list as binary (-print0 option of "find"). find /home/path/public_html/watermark/test/original -type f -name '*.jpg' -print0 | xargs -0r mogrify -draw "gravity center image src-over 0,0 150,200 '/home...
by anthony
2017-01-22T18:19:24-07:00
Forum: Users
Topic: Amazon Linux ImageMagick with AutoTrace
Replies: 7
Views: 10219

Re: Amazon Linux ImageMagick with AutoTrace

The following was extracted from my personal notes on creating a autotrace package for fedora Basically I wanted to remove its dependency on imagemagick and pstoedit -- neither of which it really needs. Other than creating a replacement 'package' for fedora, without those dependancys the notes boile...
by anthony
2017-01-22T17:58:48-07:00
Forum: Users
Topic: Split and extend chest sprite.
Replies: 4
Views: 7919

Re: Split and extend chest sprite.

I downloaded the left image. It consists of a chest with black space on the left, an area of shadow on the right and 5 'bands' making up the chest proper. left edge, one band, center lock, another band, and right edge. A total of 7 thin vertical segments in the image I gather you want to clone the t...
by anthony
2017-01-22T16:45:31-07:00
Forum: Users
Topic: How To Enable Autotrace? -- Installed IM with OSX MacPorts
Replies: 10
Views: 29378

Re: How To Enable Autotrace? -- Installed IM with OSX MacPorts

IM may need to be rebuilt with configuration option --with-autotrace For example convert -list Configure | grep trace shows me my current version (a software package) has --with-autotrace=no So it was not built with autotrace While my IMv7 version (self compiled) magick -list Configure | grep trace ...
by anthony
2017-01-19T16:17:22-07:00
Forum: Users
Topic: -define png:size={size}?
Replies: 11
Views: 17090

Re: -define png:size={size}?

LOL... I wrote that advise!!!
by anthony
2017-01-17T17:41:18-07:00
Forum: Users
Topic: Making a gif by rotating an image
Replies: 6
Views: 13619

Re: Making a gif by rotating an image

See... GIF Animations Basics....
http://www.imagemagick.org/Usage/anim_basics/#gif_anim

Also see Basics, Setting/Changing Image Attributes/Properities
http://www.imagemagick.org/Usage/basics/#attributes