>-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > >I'm wondering if any of you knows a method to programmatically extract >the JPG image from a RAW file. I would like to write my own program to >generate archive CD's.
There might be some programs out there that can do that for you instead of doing it yourself. Not sure but it's worth to check in case you haven't done so yet. >So far, it's the best compromise I've found to organize my files and >once it starts to grow I can still 'scale' it to DVD-R. I think that >in the future I'll link the thumbs with a database and some keywords and >a CD-Id for easy retrieval. I hope you have at least two better three copies of your images on different brand of CDs/DVDs each using different dies and check all of them at least once a year. I had quite bad experience with CDs even with well-known brands. >For all that, I need a method to extract the JPG's from the RAW. Any >hints?? If Canon store the jpegs as valid jpegs and not some short form then search for the following marker 0xffd8 which marks the beginning of a jpeg image. This marker is followed by another marker, i.e. 0xff (markers start with 0xff). In most cases this will be a 0xffdb marker. The jpeg ends with 0xffd9. The easiest thing is probably to simply locate 0xffd8 and then use some jpeg library that will decode from there and then automatically stop when it gets to 0xffd9. You can use something like the Magick++ library to do so. Robert * **** ******* *********************************************************** * For list instructions, including unsubscribe, see: * http://www.a1.nl/phomepag/markerink/eos_list.htm ***********************************************************
