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 : Thursday, April 13, 2006 9:19:39 AM(UTC)
steve.jackson

Groups: Registered
Posts: 7


I am having an issue when saving the first group 4 tiff that I open in
the viewer. The TIFF tag StripByteCounts (#279) is being set to 1 when
I save the image. This only happens on the first image. If I open a
second image and save the file, it is saved correctly. Another
interesting piece of info with this problem is that is works everytime
if I am running my application in the IDE. I believe in my testing, if I change the format to be just 'ccit' the save worked correctly.


I am attaching a simple example program so you can see if I am doing
something wrong in code. Included in the zip is a TIFF file that is not working correctly.

Thanks in advance for your help.

Steve
File Attachment(s):
Example.zip (1,129kb) downloaded 30 time(s).
 

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 : Sunday, April 16, 2006 11:38:25 PM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


Steve,

You are right. The code causes different values to be written to the
StripByteCounts tag if it is executed inside the IDE and outside it.
However, both values are incorrect. To get it to write the correct
value, the stream must be seekable. When I changed the "new FileStream"
line to use System.IO.FileAccess.ReadWrite instead of FileAccess.Write, the problem seems to be solved.

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Monday, April 17, 2006 6:35:22 AM(UTC)
steve.jackson

Groups: Registered
Posts: 7


I will make those changes.

Thanks for your help.
 
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-2020, Yet Another Forum.NET
This page was generated in 0.079 seconds.