Search found 8859 matches

by anthony
2017-06-20T16:35:12-07:00
Forum: Users
Topic: Identify all colours in picture and output to txt ?
Replies: 22
Views: 2151

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

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 fig files...
by anthony
2017-05-04T21:40:54-07:00
Forum: Users
Topic: Getting standard Hex colors..
Replies: 18
Views: 27247

Re: Getting standard Hex colors..

If you do not mind a extra comma at the end, and no newline, you can also do something like this...

Code: Select all

convert rose: -colorspace Lab -scale 2x2! -crop 1x1 -format '%[fx:r*100],'  info:-
36.228,51.7021,54.4274,39.9542,
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: 3582

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

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

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

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

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

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: 26
Views: 12667

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/path/public_ht...
by anthony
2017-01-22T18:19:24-07:00
Forum: Users
Topic: Amazon Linux ImageMagick with AutoTrace
Replies: 7
Views: 812

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

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

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

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

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