|TIFF and LibTiff Mailing List Archive|
LibTiff Mailing List
2017.09.01 14:06 "Re: problems saving BigTIFF format", by Paul Hemmer
Thanks everyone for the help. Bob, Kemp, great info and assistance. I ended up rebuilding everything from a clean slate in the same MSVC2015 environment and now the 4GB+ TIFF files can be opened in supported viewers. Have a good weekend! ________________________________ From: Bob Friesenhahn <email@example.com> Sent: Thursday, August 31, 2017 9:28 AM To: Paul Hemmer Subject: Re: [Tiff] problems saving BigTIFF format On Thu, 31 Aug 2017, Paul Hemmer wrote: > Hi Bob, > > > Using 64bit Windows 10, MSVC 2015.. My colleague actually did the > compile from the sources he pulled down from the LibTIFF site. Are > there precompiled binaries available anywhere online? > > Agreed, it is suspect that it claimed to be exactly 4.0GB in size, it > should have been more like 4.6 A key factor is if 'tif_unix.c' or 'tif_win32.c' is used in the build. For recent enough Visual Studio (perhaps MSVC 2005 and later), I think that 'tif_unix.c' can support large files by using special large file (64-bit offset) versions of the stdio functions. I think that the 'tif_win32.c' source file should support large files by using the WIN32 specific I/O functions. GraphicsMagick provides its own I/O functions to libtiff and uses TIFFClientOpen(), and its own I/O functions use C stdio with the 64-bit versions of the functions, or memory mapped files. You should definitely be using the exact same compiler and compiler options to build libtiff as you are using for your own application. Visual Studio runtimes are very fragile. Make sure that you are using libtiff version 4.0.8 since that is the current release. Bob -- Bob Friesenhahn firstname.lastname@example.org, http://www.simplesystems.org/users/bfriesen/ [http://www.simplesystems.org/users/bfriesen/photo-animated.gif]<http://www.simplesystems.org/users/bfriesen/> Bob Friesenhahn's Mindless Babble - Simple Systems<http://www.simplesystems.org/users/bfriesen/> www.simplesystems.org Bob Friesenhahn's Personal Home Page ... Collection Of Mindless Babble. My principal focus is maintaining the GraphicsMagick image processing package. GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ GraphicsMagick Image Processing System<http://www.graphicsmagick.org/> www.graphicsmagick.org GraphicsMagick is a robust collection of tools and libraries to read, write, and manipulate an image in any of the more popular image formats including GIF, JPEG, PNG ...