Search found 9489 matches

by snibgo
2017-12-16T16:10:13-07:00
Forum: Bugs
Topic: draw circle radius
Replies: 2
Views: 86

Re: draw circle radius

The difficulty is that "radius" (like "diameter" and most other distance) is usually defined as the distance between centres of pixels, not the total distance including the thickness of the pixels at both ends. The documentation http://www.imagemagick.org/script/command-line-options.php#draw says: G...
by snibgo
2017-12-16T10:11:43-07:00
Forum: Users
Topic: Recreate third color channel with 2 channels and grayscale image.
Replies: 1
Views: 60

Re: Recreate third color channel with 2 channels and grayscale image.

You need to know which channel is missing, so they can be combined in the correct order. I'll assume it is the blue channel. First, find an expression for the missing channel. Fairly obviously: blue = 3*gray - red - green The IM operation that can make one image from many inputs, each with a known w...
by snibgo
2017-12-16T10:03:12-07:00
Forum: Users
Topic: Swap image color channels based off noise image.
Replies: 1
Views: 56

Re: Swap image color channels based off noise image.

With a "compose over". The basic idea is: convert ^ source.png ^ switched.png ^ mask.png ^ -compose Over -composite ^ out.png Where the mask is black, the output is from source. Where it is white, it is from switched. Where it is gray, the output is a blend. Instead of "switched.png", you could star...
by snibgo
2017-12-16T09:37:01-07:00
Forum: Users
Topic: Smoothly denoise an image of a scanned page
Replies: 10
Views: 253

Re: Smoothly denoise an image of a scanned page

pchun wrote:... Greycstoration algorithm. Is it by any chance available in IM?
No. I have IM scripts that do similar work (eg Adaptive contour blur and sharpen, the Modifying texture part of Seamless photomontage).
by snibgo
2017-12-16T08:40:57-07:00
Forum: PerlMagick
Topic: [Solved] Brightness...
Replies: 2
Views: 97

Re: Brightness...

I don't use Perl, but from the documentation http://www.imagemagick.org/script/perl-magick.php you have evaluate and level, so you can do the equivalent of:

Code: Select all

convert in.png -evaluate Multiply 1.1 out.png
convert in.png -level 0,90% out.png
by snibgo
2017-12-16T08:33:53-07:00
Forum: Users
Topic: Change canvas size and fit original image inside it, preserving aspect ratio.
Replies: 11
Views: 743

Re: Change canvas size and fit original image inside it, preserving aspect ratio.

IM will convert the SVG vector file to pixels (a raster image). You can extend that etc if you want, but if you write the output to SVG, the SVG will contain an embedded raster image. This is probably not what you want. IM is not a vector editor. For that, Inkscape is a better tool. SVG is a text fo...
by snibgo
2017-12-15T19:01:41-07:00
Forum: Users
Topic: Reading file attributes quickly
Replies: 3
Views: 73

Re: Reading file attributes quickly

IM has a "ping" facility that generally reads metadata without reading pixels. But IM is fundamentally a raster image processor, not a metadata processor.
by snibgo
2017-12-15T11:53:51-07:00
Forum: Users
Topic: Reading file attributes quickly
Replies: 3
Views: 73

Re: Reading file attributes quickly

Perhaps exiftool does what you need.
by snibgo
2017-12-15T10:27:01-07:00
Forum: Users
Topic: Change canvas size and fit original image inside it, preserving aspect ratio.
Replies: 11
Views: 743

Re: Change canvas size and fit original image inside it, preserving aspect ratio.

First, I suggest you don't use "magick mogrify" or "magick convert". Just use "magick". This needs the input file, then do the processing, then write the output. Secondly, when you read the SVG, it is rasterised (converted to pixels) at whatever density you have specified, if any. If you then enlarg...
by snibgo
2017-12-15T08:57:18-07:00
Forum: Users
Topic: Change canvas size and fit original image inside it, preserving aspect ratio.
Replies: 11
Views: 743

Re: Change canvas size and fit original image inside it, preserving aspect ratio.

Do the same thing, but with the name of your SVG file.

If you want a better answer, you need to provide more details.
by snibgo
2017-12-15T05:32:53-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 1
Views: 56

Re: MagickSetImageCompression not working

If you are using v7, I'm surprised that program compiles. "wand" is a v6 directory. The v7 directory is "MagickWand". In my (admittedly old) v7.0.1-0 IM, there is no "magick_wand.h". And there are other problems. Building your program as v6, it builds and runs, and exiftool reports the output is not...
by snibgo
2017-12-15T05:08:48-07:00
Forum: Users
Topic: How to change logo color
Replies: 7
Views: 235

Re: How to change logo color

I guess, because your logo colour is within 15% of #c03030.
by snibgo
2017-12-14T15:17:04-07:00
Forum: Magick.NET
Topic: EXIF data lost on save
Replies: 5
Views: 149

Re: EXIF data lost on save

Exiftool is open source (see http://owl.phy.queensu.ca/~phil/exiftool/ ). Perhaps you can hack what you need from that.
by snibgo
2017-12-14T06:31:04-07:00
Forum: Users
Topic: How to change logo color
Replies: 7
Views: 235

Re: How to change logo color

Documentation of the options is at http://www.imagemagick.org/script/command-line-options.php "-opaque {colour}" means "change pixels that are currently {colour} to the fill colour". If fuzz was zero, only pixels that were exactly {colour} would be changed. With a fuzz of 15%, all colours that were ...
by snibgo
2017-12-13T11:14:35-07:00
Forum: Magick.NET
Topic: Force Density Units on Read?
Replies: 1
Views: 81

Re: Force Density Units on Read?

I believe the PNG standard allows for integer numbers, "units unknown" and "per metre" only. So it doesn't record density as "per inches". See http://www.w3.org/TR/2003/REC-PNG-20031110/#11pHYs EDIT: I'll add that, at the command line, we can change the units to get what we want after the read, eg: ...