| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
2006.08.31 12:48 "Patch for enhanced version of tiff2ps", by Richard NoldeI recently posted a new version of tiff2ps.c to the bugzilla forum on the libtiff site, but I have been advised that members of the tiff list might also wish to see it. This version adds support for rotation of images by 90,180,270 or "auto" which chooses portrait or landscape orientation and rotates the image accordingly to fit the specified page size. Added the ability to produce multiple images constrained by a maximum width (but not at the same time as using the maximum page height already present) from a single image, in effect tiling the image into a series of images of that width. The PlaceImage routine has been modified to support image sizes smaller or larger than the physical page size while still preserving the aspect ratio. There are still a few unsupported combinations in the tiling option, but the code has been in production use for over a year at my company. To save space, I am only including a patch file rather than the entire source code here. I can supply the full source if that would be helpful. This patch applies against the version of libtiff distributed as an RPM for Linux IA32, or POWER64 (AIX on IBM Pseries) with revisions 3.7.2 or 3.8.2. I have seen a bugzilla report that there is a problem with the bounding box size not being correctly set in the current release, and I do not think that this patch addresses that issue yet. Recent testing of this versions suggests that the described bug is still present in this patched version but I have not had time to get back to it to check. If my current work on a tiffcrop utility pans out, I may develop an option for tiff2ps that actually crops the image before writing it out to postscript as this would make for much smaller file sizes with large images that are tiled using the -W or -H option. The current code appears to rely on the Postscript mask operator to do the masking rather than removing the unwanted parts of the image from the file. As always, comments and corrections are welcome. Richard Nolde |
|||||||