about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-22 16:38:17 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-22 16:38:17 +0000
commit2661fd6ecb2ec042e56905ea1a78d11267b30d5b (patch)
tree4f0329c9e8a695023d87f4e4dd7a9bc405764549
parentea0846b5215870caf455e33c8d8bfe0a5aba01ed (diff)
downloadnetpbm-mirror-2661fd6ecb2ec042e56905ea1a78d11267b30d5b.tar.gz
netpbm-mirror-2661fd6ecb2ec042e56905ea1a78d11267b30d5b.tar.xz
netpbm-mirror-2661fd6ecb2ec042e56905ea1a78d11267b30d5b.zip
Release 10.69.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2394 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/other/Makefile3
-rw-r--r--doc/HISTORY8
-rw-r--r--editor/pnmgamma.c4
-rw-r--r--version.mk2
4 files changed, 14 insertions, 3 deletions
diff --git a/converter/other/Makefile b/converter/other/Makefile
index bbc40a3f..db185faf 100644
--- a/converter/other/Makefile
+++ b/converter/other/Makefile
@@ -267,6 +267,9 @@ endif
 # In May 2002, pamtouil replaced ppmtouil
 	cd $(PKGDIR)/bin ; \
 	$(SYMLINK) pamtouil$(EXE) ppmtouil$(EXE)
+# In July 2002, pamtotga replaced ppmtotga
+	cd $(PKGDIR)/bin ; \
+	$(SYMLINK) pamtotga$(EXE) ppmtotga$(EXE)
 # In March 2005, we realized that pamtopnm obviates pnmtopnm
 	cd $(PKGDIR)/bin ; \
 	$(SYMLINK) pamtopnm$(EXE) pnmtopnm$(EXE)
diff --git a/doc/HISTORY b/doc/HISTORY
index d8994e91..0973e010 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,6 +4,14 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+15.01.22 BJH  Release 10.69.03
+
+              pnmgamma -srgbtobt709, -bt709tosrgb: fix bug; incorrect output
+              nearly always.  Always broken (These options were new in
+              Netpbm 10.32 (February 2006)).
+
+              Install: make backward compatibility link ppmtotga -> pamtotga .
+
 15.01.01 BJH  Release 10.69.02
 
               Libnetpbm: fix external header file pm.h so it does not include
diff --git a/editor/pnmgamma.c b/editor/pnmgamma.c
index 9c939eab..96068bfe 100644
--- a/editor/pnmgamma.c
+++ b/editor/pnmgamma.c
@@ -509,7 +509,7 @@ buildBt709ToSrgbGamma(xelval       table[],
         else
             radiance = pow((normalized + 0.099) / 1.099, gamma709);
 
-        if (radiance < linearCutoffSrgb)
+        if (radiance < linearCutoffSrgb * normalizer)
             srgb = radiance * linearExpansionSrgb;
         else
             srgb = 1.055 * pow(normalized, oneOverGammaSrgb) - 0.055;
@@ -563,7 +563,7 @@ buildSrgbToBt709Gamma(xelval       table[],
         else
             radiance = pow((normalized + 0.099) / 1.099, gammaSrgb);
 
-        if (radiance < linearCutoff709)
+        if (radiance < linearCutoff709 * normalizer)
             bt709 = radiance * linearExpansion709;
         else
             bt709 = 1.055 * pow(normalized, oneOverGamma709) - 0.055;
diff --git a/version.mk b/version.mk
index 4b69b3ff..091f066d 100644
--- a/version.mk
+++ b/version.mk
@@ -1,3 +1,3 @@
 NETPBM_MAJOR_RELEASE = 10
 NETPBM_MINOR_RELEASE = 69
-NETPBM_POINT_RELEASE = 2
+NETPBM_POINT_RELEASE = 3