This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, November 26, 2008 5:20:03 PM(UTC)
Groups: Registered
Posts: 6
I am now evaluating Leadtools V16.net. I have run across a roadblock. Whenever I save a .jpg, all the exif tags go away.
gImage = gCodecs.Load("c:\tmp1.jpg")
gCodecs.Options.Save.Tags = True
gCodecs.Save(gImage, "c:\tmp1.jpg", RasterImageFormat.ExifJpeg, 24)
Surely I don't have to make a call to rastercodecs.readcomment for each tag do I? That would be 111 extra disk accesses every time I load a file (for typical photo image). Isn't there a better way to do this?
#2
Posted
:
Thursday, November 27, 2008 2:37:14 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You will need to loop, but you can reduce disk access as follows:
1. Load the file into a System.IO.MemoryStream object.
2. Loop using RasterCodecs.ReadComment() Method that works with streams.
3. After each iteration in the loop, you should rewind the stream to its beginning.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.