Sha256: d1b4580776c54b8fceb3ad854e87ad0f3e6f53b8e056a139cfd4edeb981f5ba6

Contents?: true

Size: 611 Bytes

Versions: 3

Compression:

Stored size: 611 Bytes

Contents

/*
 * listtif.c -- lists a tiff file.
 */

#include "xtiffio.h"
#include <stdlib.h>

void main(int argc,char *argv[])
{
	char *fname="newtif.tif";
	int flags;

	TIFF *tif=(TIFF*)0;  /* TIFF-level descriptor */

	if (argc>1) fname=argv[1];
	
	tif=XTIFFOpen(fname,"r");
	if (!tif) goto failure;
	
	/* We want the double array listed */
	flags = TIFFPRINT_MYMULTIDOUBLES;
	
	TIFFPrintDirectory(tif,stdout,flags);
	XTIFFClose(tif);
	exit (0);
	
failure:
	printf("failure in listtif\n");
	if (tif) XTIFFClose(tif);
	exit (-1);
}

/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 8
 * fill-column: 78
 * End:
 */

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
laag-libtiff-4.0.9.2 vendor/gitlab.com/libtiff/libtiff/contrib/tags/listtif.c
laag-libtiff-4.0.9.0 vendor/gitlab.com/libtiff/libtiff/contrib/tags/listtif.c
ghostscript-9.21.1 vendor/ghostscript-9.21/tiff/contrib/tags/listtif.c