How do I convert 32 bit RGB (BMP or JPG) images to any these types A1R5G5B5,1-bit monochrome, R5G6B5 YUY2 UYVY, X8R8G8B8 images.
I need a command line utility preferably similar to "convert" or using convert itself
Conversion RGB to Other format
Re: Conversion RGB to Other format
If your format is supported try:
http://www.imagemagick.org/script/comma ... colorspace
Code: Select all
convert image_in.jpg -colorspace RGB image_out.jpg
Re: Conversion RGB to Other format
to be more specific I want to convert 32 bit RGB Image to Standard
16 bit A1 R5 G5 B5
1-bit monochrome etc.
Or I need a method to get R component G component & B component of a image separately.
How to combine raw data to form a image
16 bit A1 R5 G5 B5
1-bit monochrome etc.
Or I need a method to get R component G component & B component of a image separately.
How to combine raw data to form a image
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Conversion RGB to Other format
I think the bigger question here is... What image format supports these color spaces?
If this is handled by special color profiles, then you need to do a color profile conversion.
Otherwise you may have to save the converted image in a raw format such as the IM Pixel enumerated text format ".txt"
http://www.imagemagick.org/Usage/files/#txt
or perhaps a NetPBM image format
http://www.imagemagick.org/Usage/formats/#netpbm
If this is handled by special color profiles, then you need to do a color profile conversion.
Otherwise you may have to save the converted image in a raw format such as the IM Pixel enumerated text format ".txt"
http://www.imagemagick.org/Usage/files/#txt
or perhaps a NetPBM image format
http://www.imagemagick.org/Usage/formats/#netpbm
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/