Search found 11 matches
- 2013-04-16T10:46:19-07:00
- Forum: Developers
- Topic: Decompose 16-bit TIF into two 8-bit PNGs
- Replies: 10
- Views: 18218
Re: Decompose 16-bit TIF into two 8-bit PNGs
I tried it. It doesn't seem to work.
- 2013-04-16T10:24:20-07:00
- Forum: Developers
- Topic: Decompose 16-bit TIF into two 8-bit PNGs
- Replies: 10
- Views: 18218
Re: Decompose 16-bit TIF into two 8-bit PNGs
I was thinking:
Code: Select all
-fx "(u & #ff00) | (u >> 8)" -depth 8 upper.png
-fx "(u & #00ff) | (u << 8)" -depth 8 lower.png
- 2013-04-16T08:22:28-07:00
- Forum: Developers
- Topic: Decompose 16-bit TIF into two 8-bit PNGs
- Replies: 10
- Views: 18218
Re: Decompose 16-bit TIF into two 8-bit PNGs
So it looks to me that if I want to force #XXYY to convert to #XX (regardless of YY), I should first modify it to #XXXX.
Do you agree?
Thanks a ton for your assistance!
Do you agree?
Thanks a ton for your assistance!
- 2013-04-15T19:46:20-07:00
- Forum: Developers
- Topic: Decompose 16-bit TIF into two 8-bit PNGs
- Replies: 10
- Views: 18218
Re: Decompose 16-bit TIF into two 8-bit PNGs
I give up. How do you get #99 from the top bits of #9ABC?16-bit=>8-bit(#9ABC) = #99, not #9A
Is there documentation of the rules for converting from 16 to 8 bit?
- 2013-04-15T17:31:28-07:00
- Forum: Developers
- Topic: read() does not maintain depth
- Replies: 8
- Views: 8071
Re: read() does not maintain depth
The version output was from "convert -version", but Magick::Quantum is 1 (byte) and MaxRGB is 255, so I think you are right that my command line utilities are 16-bit and my library is 8.
- 2013-04-15T17:27:38-07:00
- Forum: Developers
- Topic: Decompose 16-bit TIF into two 8-bit PNGs
- Replies: 10
- Views: 18218
Decompose 16-bit TIF into two 8-bit PNGs
Can I use convert to write only the upper (or lower) 8 bits of a 16-bit grayscale TIF? That is, will the following work? convert original.tif -evaluate and 255 -depth 8 lower.png convert original.tif -evaluate RightShift 8 -evaluate and 255 -depth 8 upper.png I don't want any normalization to occur ...
- 2013-04-15T17:04:04-07:00
- Forum: Developers
- Topic: read() does not maintain depth
- Replies: 8
- Views: 8071
Re: read() does not maintain depth
I believe my problem is that the version of the Magick++ library I am using is 8-bit, and therefore the 16-bit image being read is converted to 8-bit when I call read(). Does this sound like a reasonable conclusion?
- 2013-04-15T11:48:52-07:00
- Forum: Developers
- Topic: read() does not maintain depth
- Replies: 8
- Views: 8071
Re: read() does not maintain depth
6.6.9-7 is dated Aug 17, 2012. That may be "old", but "very old" is a stretch.
- 2013-04-15T11:28:21-07:00
- Forum: Developers
- Topic: read() does not maintain depth
- Replies: 8
- Views: 8071
Re: read() does not maintain depth
No. When I run the command
it generates a proper 16-bit JP2 file!
Code: Select all
convert fullres.tif test.jp2
- 2013-04-15T10:05:40-07:00
- Forum: Developers
- Topic: read() does not maintain depth
- Replies: 8
- Views: 8071
read() does not maintain depth
Obviously I am relatively new to Magick++. I read in a 16-bit TIF file, but its depth prints as 8, and the resultant JPEG2000 file is also only 8 bpp. Can you tell me what I'm doing wrong? Thank you. Version: ImageMagick 6.6.9-7 2012-08-17 Q16 $ identify fullres.tif fullres.tif TIFF 2560x3328 ...
- 2012-12-20T13:00:28-07:00
- Forum: Users
- Topic: Extract low or high bits from an image using convert
- Replies: 7
- Views: 9468
Extract low or high bits from an image using convert
I have a 16-bit image file and want to create two images/files from it:
- - the low 8 bits only
- the high 8 bits only