Search found 12163 matches

by snibgo
2013-06-02T06:49:10-07:00
Forum: Bugs
Topic: Bug for ImageMagick to import SVG image
Replies: 6
Views: 4487

Re: Bug for ImageMagick to import SVG image

The oldest IM I have is 6.5.8-8, which gives me the same results as 6.8.5-8. But it might use a different delegate to your setup. I'm not an expert at IM configuration with libraries etc etc.

Inkscape is generally more comprehensive than IM at reading SVG files.
by snibgo
2013-06-02T06:14:38-07:00
Forum: Users
Topic: GLib-GObject-CRITICAL problem
Replies: 7
Views: 5995

Re: GLib-GObject-CRITICAL problem

What is in test.svg? It might specify a large number of pixels, so convert (or its delegate) tries to make a massive image, causing the memory allocation failure.
by snibgo
2013-06-02T05:29:02-07:00
Forum: Bugs
Topic: Bug for ImageMagick to import SVG image
Replies: 6
Views: 4487

Re: Bug for ImageMagick to import SVG image

After copying your example into grad.svg, for IM 6.8.5-8 on Windows 7, I get the expected 100x100: D:\web\im>%IM%identify grad.svg grad.svg SVG 100x100 100x100+0+0 16-bit sRGB 478B 0.031u 0:00.021 D:\web\im>%IM%convert grad.svg g.png D:\web\im>%IM%identify g.png g.png PNG 100x100 100x100+0+0 16-bit ...
by snibgo
2013-06-02T05:19:08-07:00
Forum: Users
Topic: GLib-GObject-CRITICAL problem
Replies: 7
Views: 5995

Re: GLib-GObject-CRITICAL problem

I don't know what this command would try to do:

Code: Select all

convert test.svg -png
Better would be:

Code: Select all

convert test.svg testOut.png
by snibgo
2013-06-02T04:54:09-07:00
Forum: Users
Topic: Replace a color that doesn't match a list of colors
Replies: 11
Views: 5288

Re: Replace a color that doesn't match a list of colors

According to the documentation and in practise, "-colorize N" doesn't need a percent sign. Adding a percent sign seems harmless. I did fluff my final command: the mask should be the negative of what I created, ie my "-negative" was wrong. So this is what I get (Windows script): s...
by snibgo
2013-06-01T13:42:58-07:00
Forum: Users
Topic: Replace a color that doesn't match a list of colors
Replies: 11
Views: 5288

Re: Replace a color that doesn't match a list of colors

For my solution, I supposed that one of the "good" colours was red, but then changed all the bad pixels to red. Doh! Almost any other colour would have been better.
by snibgo
2013-06-01T13:07:55-07:00
Forum: Users
Topic: Replace a color that doesn't match a list of colors
Replies: 11
Views: 5288

Re: Replace a color that doesn't match a list of colors

There are many ways to approach this. Here is one. Suppose your source image is src.png. 1. Make an image that contains the "good" colours. I'll just have three. convert xc:red xc:rgb(34,56,89) xc:green -append goodCols.png 2. Make a new version of the source, containing just the "goo...
by snibgo
2013-06-01T11:09:11-07:00
Forum: Bugs
Topic: intensity and grayscale
Replies: 10
Views: 9768

Re: intensity and grayscale

Yes. "Brightness" is the maximum of RG and B; "Average" is the average, and "Lightness" should be the average of the minimum and maximum. To complete the picture, perhaps we could also have a "Minimum", though I can't see any use for it.
by snibgo
2013-06-01T08:28:38-07:00
Forum: Users
Topic: Changes to equalize..
Replies: 11
Views: 16116

Re: Changes to equalize..

Exactly which v6.7? Colorspaces (including greyscale) changed a lot during that version. Using your mountain photo: "%IMG679%convert" mountains.jpg -set colorspace RGB -equalize e679.png "%IMG682%convert" mountains.jpg -set colorspace RGB -equalize e682.png "%IMG685%convert&...
by snibgo
2013-06-01T06:59:05-07:00
Forum: Users
Topic: Converting pdf to high quality png
Replies: 3
Views: 19455

Re: Converting pdf to high quality png

"-quality" refers to the data loss when saving files, especially in JPG format. It is just a number that happens to be between 0 and 100, not a percentage. Good places to start learning about IM: http://www.imagemagick.org/script/command-line-options.php http://www.imagemagick.org/script/c...
by snibgo
2013-06-01T03:58:36-07:00
Forum: Bugs
Topic: intensity and grayscale
Replies: 10
Views: 9768

intensity and grayscale

IM 6.8.5-8 on Windows 7. The documentation for "-intensity" (http://www.imagemagick.org/script/command-line-options.php#intensity) claims Lightness is the average of the min and max RGB values, and that "-grayscale" should do the same. Lightness (min(R', G', B') + max(R', G', B')...
by snibgo
2013-06-01T03:19:19-07:00
Forum: Users
Topic: Converting pdf to high quality png
Replies: 3
Views: 19455

Re: Converting pdf to high quality png

For this, you almost certainly need "-density". Vector images in PDF have no perfect setting for density. In general, higher numbers give higher quality. Raster images in PDF work best when "-density" is an integer multiple (or fraction) of the original. For example, if the origi...
by snibgo
2013-06-01T02:16:11-07:00
Forum: Users
Topic: [SOLVED] Error convert JPEG-2000
Replies: 13
Views: 12661

Re: Error convert JPEG-2000

Are you converting 1000 at once?

Code: Select all

convert *.tif -quality 95 pippo.jp2
Can you convert just one file?
by snibgo
2013-06-01T02:12:31-07:00
Forum: Users
Topic: suppress warnings PDF to JPG
Replies: 3
Views: 6934

Re: suppress warnings PDF to JPG

You can find out the exact command issued:

Code: Select all

convert -verbose in.pdf out.jpg
I don't know of any other options to suppress warnings from GS. You can redirect stderr, of course.
by snibgo
2013-05-31T15:19:42-07:00
Forum: Users
Topic: Histograms in Photoshop CS6 vs. IM
Replies: 21
Views: 20176

Re: Histograms in Photoshop CS6 vs. IM

When you append, won't all values (every channel of every pixel) show in the histogram? Yes. Averaging is a primitive form of greyscale conversion. Appending uses the actual values of each channel. The difference can be readily seen: convert xc:red xc:lime xc:blue -append test.png convert test.png ...