Is it possible to covert 16-bit pgm to 16-bit JPEG? I converted pgm to 16-bit tiff, but when I tried to converted to jpg ImageMagick creates 8-bit image.
I use 16-bit version 6.4.0.3.
Thanks.
Covert 16-bit pgm to 16-bit JPEG
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Covert 16-bit pgm to 16-bit JPEG
If it does not do it automatically, then try adding -depth 16
convert image.pgm -depth 16 image.jpg
See if that works.
convert image.pgm -depth 16 image.jpg
See if that works.
Re: Covert 16-bit pgm to 16-bit JPEG
JPEG supports 8 and 12 bit images. However, you have to enable 12-bit support when you build the JPEG delegate library before 12-bit JPEG images can be written with ImageMagick.
Re: Covert 16-bit pgm to 16-bit JPEG
I've never compiled ImageMagick. Would you, please, give me some details on that?magick wrote:JPEG supports 8 and 12 bit images. However, you have to enable 12-bit support when you build the JPEG delegate library before 12-bit JPEG images can be written with ImageMagick.
I managed to get 24-bit jpeg with
Code: Select all
-depth 24 -type truecolor
Re: Covert 16-bit pgm to 16-bit JPEG
ImageMagick cannot create 12-bit JPEG images until the JPEG delegate library is first compiled with 12-bit support (the default is 8-bit). To compile ImageMagick from source see http://www.imagemagick.org/script/install-source.php.