Search found 12163 matches
- 2013-02-04T08:39:06-07:00
- Forum: Users
- Topic: Apply cubic bezier curve to image
- Replies: 10
- Views: 11046
Re: Apply cubic bezier curve to image
Can you be more specific about what you are trying to do? Ideally with before/after images. For example: an image could be distorted so that every horizontal line in the original followed a given bezier curve in the output. I would do this with a displacement map. See http://www.imagemagick.org/Usag...
- 2013-02-04T07:48:26-07:00
- Forum: Users
- Topic: Can't open in Android JPEG or JPG images converted from PDF
- Replies: 7
- Views: 9451
Re: Can't open in Android JPEG or JPG images converted from
Your shell command "convert stock.pdf -colorspace RGB stock.jpg" converts the image to the colorspace RGB, instead of the usual sRGB. Then it stores the image with a flag that says it is sRGB. You need to find the equivalent wand-python commands that do this. I know nothing about wand-pyth...
- 2013-02-04T07:31:29-07:00
- Forum: Users
- Topic: Change channels strength
- Replies: 7
- Views: 6863
Re: Change channels strength
"-color-matrix" will do this. See http://www.imagemagick.org/script/command-line-options.php#color-matrix For example, the following Windows command will increase the green channel by 25% of the red, and increase blue by 75% of the red, and zero the red. convert ^ in.png ^ -color-matrix ^ ...
- 2013-02-03T16:40:44-07:00
- Forum: Users
- Topic: A More Formal Description of the ImageMagick Machine
- Replies: 12
- Views: 10921
Re: A More Formal Description of the ImageMagick Machine
Some setting affect things that aren't operators. Eg "-density" affects the image formed by reading a PDF file.1. There is a single collection of global settings, referred to as the settings, which affect the behavior of operators.
- 2013-02-03T03:07:53-07:00
- Forum: Developers
- Topic: MagickWand writes a bitmap incompatible with Win32 LoadImage
- Replies: 3
- Views: 7822
Re: MagickWand writes a bitmap incompatible with Win32 LoadI
Good stuff. I do like it when a wild guess turns out to be correct.
- 2013-02-03T02:50:54-07:00
- Forum: Users
- Topic: Reduce color depth and dither?
- Replies: 5
- Views: 9875
Re: Reduce color depth and dither?
Ah, sorry. "-remap" can dither, and can use the colours from your Sample2:
Is Sample3.png what you want?
Code: Select all
convert Sample.png -depth 4 Sample2.png
convert Sample.png -remap Sample2.png Sample3.png
- 2013-02-03T02:38:06-07:00
- Forum: Developers
- Topic: MagickWand writes a bitmap incompatible with Win32 LoadImage
- Replies: 3
- Views: 7822
Re: MagickWand writes a bitmap incompatible with Win32 LoadI
This may be a problem with DIB headers. These come in different flavours: seven, at the last count. See http://en.wikipedia.org/wiki/BMP_file_format If I understand correctly (and I probably don't), IM understands three of them; see "convert -list format". Maybe your program implicitly exp...
- 2013-02-02T20:24:47-07:00
- Forum: Users
- Topic: Grayscale matters
- Replies: 7
- Views: 5698
Re: Grayscale matters
For PDFs that are a single raster image in a vector wrapper, as this one is, I open it in Adobe Reader and control-C the image, which copies it to the clipboard. Then ... convert clipboard: info: ... tells me how many pixels it has. Then I try a simple convert (at 72 ppi)... convert test.pdf info: ....
- 2013-02-02T19:48:13-07:00
- Forum: Users
- Topic: Grayscale matters
- Replies: 7
- Views: 5698
Re: Colorizing scanned grayscale PDF
I cross-posted with fmw42. His "+level colors" is far more elegant, and probably quicker, than my version that messes around with alpha. My "-density 150" is what you need for readable text.
- 2013-02-02T19:37:08-07:00
- Forum: Users
- Topic: Grayscale matters
- Replies: 7
- Views: 5698
Re: Colorizing scanned grayscale PDF
For example, green text on a white background: convert -density 150 test.pdf lecture2.png convert lecture2.png -alpha Copy -fuzz 100% -fill White -opaque Gray -background Green -alpha Remove lecture3.png convert lecture3.png lecture3.pdf I've shown it as three stages, but you could combine them into...
- 2013-02-02T18:46:13-07:00
- Forum: Users
- Topic: A More Formal Description of the ImageMagick Machine
- Replies: 12
- Views: 10921
Re: A More Formal Description of the ImageMagick Machine
A good description. A couple of observations: The IM "convert" language is essentially postfix, although (for historical reasons) many operators can also work in the prefix position. Example: "convert -resize 800% rose: bigrose.png". I expect (and hope) these anomonlies will be p...
- 2013-02-02T17:40:53-07:00
- Forum: Users
- Topic: Reduce color depth and dither?
- Replies: 5
- Views: 9875
Re: Reduce color depth and dither?
convert Sample.png -colors 16 Sample2.png
- 2013-02-02T10:29:25-07:00
- Forum: Users
- Topic: Removing Shadow and Background for OCR
- Replies: 8
- Views: 10773
Re: Removing Shadow and Background for OCR
Get a scanner. Life will be so much easier. If that isn't feasible (perhaps horrible images like this come from clients), use an interactive editor to square up the image, crop it and curve it. Automated processing is possible for this particular image, of course. But a generic solution for dodgy ph...
- 2013-02-01T19:06:33-07:00
- Forum: Bugs
- Topic: DXT5 Issues in DDS Format (Windows)
- Replies: 9
- Views: 19396
Re: DXT5 Issues in DDS Format (Windows)
The source image has gone away. Can you re-post it?
- 2013-02-01T17:53:57-07:00
- Forum: Users
- Topic: resized (smaller) image files larger than original?
- Replies: 7
- Views: 20907
Re: resized (smaller) image files larger than original?
If this is the only re-save you are doing, it shouldn't harm the visual quality much. If you are doing multiple changes and saving as jpeg each time, then you shouldn't. Instead, use a lossless compression for intermediate files. IM can't get a jpeg quality setting from non-jpeg files. I don't know ...