06-05-2019 03:12 PM
Thank you very much Darin.K.
You have been a great help to me.
- Sable
06-07-2019 11:39 PM
Darin.K,
After adding the ascii exif, must we save as a new jpeg file (or) is there a way we can save the changes on the jpeg file read itself?
- Sable
06-08-2019 09:18 AM
Just use the same filename to overwrite the file if you so desire. I always write to a new file during testing.
06-09-2019 02:20 AM
Tried to overwrite the file but it throws an exception.
06-09-2019 11:20 AM
I guess I would not run into that issue in my workflow since I very rarely do any type of 'in-place' work on a file. My reasoning being that if something goes wrong you are likely to end up with a corrupted file. Instead I usually write a new file with the old name to a different directory, and if I am certain that worked, then I *might* go back and delete the original. I tend to be a data hoarder to I tend to keep originals.
You will have to do some combination of write to new file, delete original file, and renaming/moving. I would use the file constant to get the temp directory and write a new file with the original name to there. Then I would delete the original jpeg and move the new file into the original directory.
06-09-2019 10:02 PM
Thank you Darin.K
- Sable