Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, November 26, 2008 5:20:03 PM(UTC)

bob  
bob

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?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, November 27, 2008 2:37:14 AM(UTC)

Adnan Ismail  
Guest

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.087 seconds.