Archived

This topic is now archived and is closed to further replies.

RGB to JPG

This topic is 4958 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there any simple library/API to convert sgi image (.rgb) to (.jpg) ?. I have an rgba array in my memory and would like to write them as jpg file. ~ Matt

Share this post


Link to post
Share on other sites
I checked on some of the libraries available online!!!....would like your suggestions on the same!!....

1) libjpeg
2) ImgSource
3) MagicCK....

I am not sure how far their claims support my requirement. I can''t use photoshop or other tools as I would like to convert .RGB file to .JPEG on the fly as .rgb is produced in the middle of my application.

I appreciate your inputs on this!..

~ Matt

Share this post


Link to post
Share on other sites
quote:
Original post by taurean
1) libjpeg



This is the JPEG library. You would use this if you wanted to open and save JEPG images using the JPEG compression algo.

quote:

2) ImgSource



Looks overly complicated compaired to FreeImage, but if you have the time to read the documentation and learn how to use it, by all means go right ahead. It seems this lib will do what you need.

quote:

3) MagicCK....



I don''t know anything about this.

Share this post


Link to post
Share on other sites
ImageMagick will convert just about anything right off the command line. You can even batch convert and perform manipulations at the same time.

Share this post


Link to post
Share on other sites