for the common good, I'm going to answer my question, the exif application has a modified libjpeg that allows you to manipulate jpeg source data. it has features like
jpeg_data_load_data (JPEGData *data, const unsigned char *d,unsigned int size); and
jpeg_data_set_exif_data(myJPEGImage,exif); jpeg_data_save_file(myJPEGImage,"gangrene1.jpg");
This can be used, as well as free available programs like imagemagick, have their own implementation of libjpeg, libexif to manipulate exif and jpeg data. Hope this helps
source share