From 77eb12eb2edf32eb91a1e7ff11422500cca6c8ef Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 29 Jun 2014 01:24:38 +0000 Subject: Release 10.35.93 git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@2217 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- Makefile.version | 2 +- analyzer/pamsharpness.c | 2 +- buildtools/debian/mkdeb | 6 +++--- converter/other/exif.c | 23 ++++++++++++++++++----- converter/other/exif.h | 3 ++- doc/HISTORY | 22 ++++++++++++++++++++++ 6 files changed, 47 insertions(+), 11 deletions(-) diff --git a/Makefile.version b/Makefile.version index a502a9d4..cb92cf29 100644 --- a/Makefile.version +++ b/Makefile.version @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 35 -NETPBM_POINT_RELEASE = 92 +NETPBM_POINT_RELEASE = 93 diff --git a/analyzer/pamsharpness.c b/analyzer/pamsharpness.c index 2cb5edb9..3850aa3a 100644 --- a/analyzer/pamsharpness.c +++ b/analyzer/pamsharpness.c @@ -145,7 +145,7 @@ main(int argc, char **argv) { computeSharpness(&inpam, tuplenarray, &sharpness); - pm_message("Sharpness = %f\n", sharpness); + printf("Sharpness = %f\n", sharpness); pnm_freepamarrayn(tuplenarray, &inpam); pm_close(ifP); diff --git a/buildtools/debian/mkdeb b/buildtools/debian/mkdeb index 9c7b1735..42a986eb 100755 --- a/buildtools/debian/mkdeb +++ b/buildtools/debian/mkdeb @@ -133,12 +133,12 @@ sub control($$) { $control{'Installed-Size'} = '6164'; $control{'Depends'} = 'libc6, ' . - 'libjpeg8, ' . + 'libjpeg62, ' . 'libpng12-0, ' . 'libsvga1, ' . - 'libtiff5, ' . + 'libtiff4, ' . 'libx11-6, ' . - 'libxml2a, ' . + 'libxml2, ' . 'zlib1g, ' . 'ghostscript, ' . 'perl, ' . diff --git a/converter/other/exif.c b/converter/other/exif.c index 19f108a7..f9592d6c 100644 --- a/converter/other/exif.c +++ b/converter/other/exif.c @@ -86,6 +86,9 @@ static int BytesPerFormat[] = {0,1,1,2,4,8,1,1,2,4,8,4,8}; #define TAG_ORIENTATION 0x0112 +#define TAG_XRESOLUTION 0x011A +#define TAG_YRESOLUTION 0x011B + #define TAG_EXPOSURETIME 0x829A #define TAG_FNUMBER 0x829D @@ -472,15 +475,25 @@ ProcessExifDir(unsigned char * const ExifData, switch(Tag){ case TAG_MAKE: - strncpy(ImageInfoP->CameraMake, (char*)ValuePtr, 31); + STRSCPY(ImageInfoP->CameraMake, (char*)ValuePtr); break; case TAG_MODEL: - strncpy(ImageInfoP->CameraModel, (char*)ValuePtr, 39); + STRSCPY(ImageInfoP->CameraModel, (char*)ValuePtr); break; + case TAG_XRESOLUTION: + ImageInfoP->XResolution = + ConvertAnyFormat(ValuePtr, Format); + break; + + case TAG_YRESOLUTION: + ImageInfoP->YResolution = + ConvertAnyFormat(ValuePtr, Format); + break; + case TAG_DATETIME_ORIGINAL: - strncpy(ImageInfoP->DateTime, (char*)ValuePtr, 19); + STRSCPY(ImageInfoP->DateTime, (char*)ValuePtr); ImageInfoP->DatePointer = (char*)ValuePtr; break; @@ -838,8 +851,8 @@ ShowImageInfo(ImageInfo_t * const ImageInfoP) if (ImageInfoP->DateTime[0]){ fprintf(stderr, "Date/Time : %s\n",ImageInfoP->DateTime); } - fprintf(stderr, "Resolution : %d x %d\n", - ImageInfoP->Width, ImageInfoP->Height); + fprintf(stderr, "Resolution : %f x %f\n", + ImageInfoP->XResolution, ImageInfoP->YResolution); if (ImageInfoP->Orientation > 1){ /* Only print orientation if one was supplied, and if its not diff --git a/converter/other/exif.h b/converter/other/exif.h index e5825e12..4630988f 100644 --- a/converter/other/exif.h +++ b/converter/other/exif.h @@ -16,7 +16,8 @@ typedef struct { char CameraMake [32]; char CameraModel [40]; char DateTime [20]; - int Height, Width; + float XResolution; + float YResolution; int Orientation; int IsColor; int FlashUsed; diff --git a/doc/HISTORY b/doc/HISTORY index 38593cb4..e43611c9 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,26 @@ Netpbm. CHANGE HISTORY -------------- +14.06.29 BJH Release 10.35.93 + + pamsharpness: put primary output on Standard Output instead of + on Standard Error as a Netpbm message. + + jpegtopnm -dumpexif: fix incorrect display of resolution. + Always broken. (-dumpexif was new in Netpbm 9.18 September + 2001). + + jpegtopnm -dumpexif: fix truncated make, model, or datetime. + Always broken. (-dumpexif was new in Netpbm 9.18 September + 2001). + + jpegtopnm -dumpexif: fix wild pointer with invalid EXIF data. + Always broken. (-dumpexif was new in Netpbm 9.18 September + 2001). + + Build: fix dependencies in .deb package so they work with Debian + 6 at least. Always broken (.deb capability was new in 10.35.92). + 14.03.29 BJH Release 10.35.92 ppmrelief: fix out-of-bound values in output. Always broken. @@ -20,6 +40,8 @@ CHANGE HISTORY Netpbm 9.21 (January 2001)). Thanks Prophet of the Way . + build/install: add tools for creating a Debian package. + 13.12.24 BJH Release 10.35.91 pbmtoepsi: fix handling of all-white image. Always broken. -- cgit 1.4.1