Afaik you can't extract 1 bit pixel data from the image with ImageMagick, it will always be scaled the the quantum format you choose. There are other libraries that can do that, like LibPNG.
Someone correct me if I'm wrong.
Search found 6 matches
- 2014-04-14T11:24:28-07:00
- Forum: MagickWand
- Topic: MagickExportImagePixels for BiLevel image
- Replies: 4
- Views: 15905
- 2014-04-11T14:50:28-07:00
- Forum: MagickWand
- Topic: Accessing index for palette with MagickExportImagePixels
- Replies: 3
- Views: 14195
Re: Accessing raw packed pixel data (PixelPacket) in MagickW
Got another problem.
MagickExportImagePixels can't seem to retrieve indexes for paletted images. I tried "I" for intensity, but that returns something else than index and it fails when I try "K" to get the black (or, in IndexPacket also representing the index)...
MagickExportImagePixels can't seem to retrieve indexes for paletted images. I tried "I" for intensity, but that returns something else than index and it fails when I try "K" to get the black (or, in IndexPacket also representing the index)...
- 2014-04-11T13:25:37-07:00
- Forum: MagickWand
- Topic: MagickExportImagePixels for BiLevel image
- Replies: 4
- Views: 15905
Re: MagickExportImagePixels for BiLevel image
typedef enum { UndefinedPixel, CharPixel, DoublePixel, FloatPixel, IntegerPixel, LongPixel, QuantumPixel, ShortPixel } StorageType; You can provide one of those for the storage. Consider the size of the pixels with each storage type. The formula should be (number of channels)*(StorageType size). So ...
- 2014-04-11T10:09:11-07:00
- Forum: MagickWand
- Topic: Accessing index for palette with MagickExportImagePixels
- Replies: 3
- Views: 14195
Re: Accessing raw packed pixel data (PixelPacket) in MagickW
Yes, that is exactly what I've been looking for, thank you!
- 2014-04-10T17:11:35-07:00
- Forum: Users
- Topic: MagickCore program compile problems
- Replies: 0
- Views: 3805
MagickCore program compile problems
Edit: Disregard this, problem fixed.
- 2014-04-07T07:35:04-07:00
- Forum: MagickWand
- Topic: Accessing index for palette with MagickExportImagePixels
- Replies: 3
- Views: 14195
Accessing index for palette with MagickExportImagePixels
I need to access indexes with MagickExportImagePixels, but the possible maps don't seem to have index in them, there is R, G, B, C, M, Y, K, Alpha, Opacity, Padding (?) and Intensity. I tried with intensity but it doesn't seem to return an index, instead returns an odd number for a paletted image ...