You're probably right.
The following seems to work:
convert 00000001.jpg -compress none 00000001.pnm
pnmtorast -standard 00000001.pnm > 00000001.ras
I have added the '-compress none' option just to check that I have 256 colors in the pnm because pnmtorast complains:
pnmtorast: computing ...
Search found 4 matches
- 2011-09-24T16:12:04-07:00
- Forum: Users
- Topic: [SOLVED] write RAS files in BGR order
- Replies: 7
- Views: 15735
- 2011-09-23T16:21:05-07:00
- Forum: Users
- Topic: [SOLVED] write RAS files in BGR order
- Replies: 7
- Views: 15735
Re: write RAS files in BGR order
Hi,
Thank you both for your reply and sorry for the long delay.
Anthony: it's very interesting to dig in the source code. It would be nice to be able to use BGR order without assumption on the colormap... RAS file can have a colormap (see the fields ras_maplength and ras_maptype). By the way ...
Thank you both for your reply and sorry for the long delay.
Anthony: it's very interesting to dig in the source code. It would be nice to be able to use BGR order without assumption on the colormap... RAS file can have a colormap (see the fields ras_maplength and ras_maptype). By the way ...
- 2011-09-02T08:25:30-07:00
- Forum: Users
- Topic: [SOLVED] write RAS files in BGR order
- Replies: 7
- Views: 15735
Re: write RAS files in BGR order
Hi,
I just wanted to add that nautilus thumbnailer (under GNOME desktop) seems to be unable to display RGB images converted with image magick... Maybe a good reason to fix that.
I just wanted to add that nautilus thumbnailer (under GNOME desktop) seems to be unable to display RGB images converted with image magick... Maybe a good reason to fix that.
- 2011-08-13T06:08:26-07:00
- Forum: Users
- Topic: [SOLVED] write RAS files in BGR order
- Replies: 7
- Views: 15735
[SOLVED] write RAS files in BGR order
Hello,
This is probably an obvious question but I didn't find an answer. I have asked the question http://stackoverflow.com/questions/7025788/imagemagick-write-pixels-in-bgr-order but didn't receive an answer.
I want to convert JPEG files to Sun RAS files from command-line to read them with my own ...
This is probably an obvious question but I didn't find an answer. I have asked the question http://stackoverflow.com/questions/7025788/imagemagick-write-pixels-in-bgr-order but didn't receive an answer.
I want to convert JPEG files to Sun RAS files from command-line to read them with my own ...