RT: Extracting embedded jpeg from raw image using RT

exiv2 and exiftool are the perfect, lightweight tools for the job:

exiv2 -pp my_image.ext

to print out the list of recognized previews, and then:

exiv2 -ep1 my_image.ext

to extract preview no. 1 etc. (or leave out the number to extract them all).