AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 1998

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1998.07.29 16:00 "Appending images", by Bruno Ledoux
1998.07.30 07:00 "Re: Appending images", by <tim@sierra.auriga.ru>
1998.07.30 13:24 "Re: Appending images", by Geoff Vandegrift
1998.08.28 14:34 "Re: multipage", by Geoff Vandegrift

1998.07.30 13:24 "Re: Appending images", by Geoff Vandegrift

Bruno,

Upon a quick perusal of the libtiff code, there appears to be a
problem/bug in tif_win32.c.  On or around line 173, you have

	case O_RDWR|O_CREAT:
		dwMode = CREATE_NEW;
		break;

This appears to be an incorrect "translation" of the standard file
constants (O_XXXXX).  In checking through the on-line help, it looks
like it would be more appropriate to replace the above code snippet with

	case O_RDWR|O_CREAT:
		dwMode = OPEN_ALWAYS;
		break;

I haven't tried this change myself (I've never tried to append to a
file), so you might double check that OPEN_ALWAYS is the right
parameter.

Geoff Vandegrift
Applications Engineer
Hitachi Software Engineering America, Ltd.

> -----Original Message-----
> From:	bruno Ledoux [SMTP:bruno_ledoux@binuscan.com]
> Sent:	Wednesday, July 29, 1998 10:00 AM
> To:	tiff@sgi.com
> Subject:	Appending images
> 
> Hi,
> 
> I would like to append images to an existing TIFF file , I tried to
> open
> the file in append mode with :
>         tif = TIFFOpen("myfile.tif","a");
> but it fails because the Windows CreateFile function returns an error
> as
> the file already exists !!!
> 
> Has anyone got any idea ?
> 
> PS: I'm using tifflib v3.4 beta under Windows95.
> 
> Gratefully,
> 
> Bruno