Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37764970
en ru br
ALT Linux repos
S:4.4.0-alt4
5.0: 3.8.2-alt3
4.1: 3.8.2-alt2.M41.4
4.0: 3.8.2-alt2
+updates:3.8.2-alt2
3.0: 3.7.2-alt5

Group :: System/Libraries
RPM: libtiff

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libtiff-3.7.4-alt-tif_print-size.patch
Download


--- tiff-3.7.4/libtiff/tif_print.c.orig	2005-08-17 13:05:27 +0000
+++ tiff-3.7.4/libtiff/tif_print.c	2005-10-25 14:59:19 +0000
@@ -133,8 +133,16 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, 
 	if (TIFFFieldSet(tif,FIELD_POSITION))
 		fprintf(fd, "  Position: %g, %g\n",
 		    td->td_xposition, td->td_yposition);
-	if (TIFFFieldSet(tif,FIELD_BITSPERSAMPLE))
+	if (TIFFFieldSet(tif,FIELD_BITSPERSAMPLE)) {
 		fprintf(fd, "  Bits/Sample: %u\n", td->td_bitspersample);
+		if (TIFFFieldSet(tif,FIELD_IMAGEDIMENSIONS)) {
+			fprintf(fd, "  Scanline Size: %ld\n",
+			    (long) tif->tif_scanlinesize);
+			fprintf(fd, "  %s Size: %ld\n",
+			    isTiled(tif) ? "Tile" : "Strip",
+			    (long) (isTiled(tif) ? tif->tif_tilesize : TIFFStripSize(tif)));
+		}
+	}
 	if (TIFFFieldSet(tif,FIELD_SAMPLEFORMAT)) {
 		fprintf(fd, "  Sample Format: ");
 		switch (td->td_sampleformat) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin