From 56af758c98f19d7b8a92f9aeff16998d4d23444c Mon Sep 17 00:00:00 2001 From: nick Date: Mon, 2 Jul 2012 20:31:44 +0100 Subject: [PATCH] 5.9.172 (2012-07-02) - A PNG color profile issue was fixed. --- CHANGELOG.TXT | 3 +++ README.TXT | 4 ++-- tcpdf.php | 14 ++++++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index f138182..75e3ccb 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +5.9.172 (2012-07-02) + - A PNG color profile issue was fixed. + 5.9.171 (2012-07-01) - Some SVG rendering problems were fixed. diff --git a/README.TXT b/README.TXT index 9320dcc..00ea30d 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 5.9.171 -Release date: 2012-07-01 +Version: 5.9.172 +Release date: 2012-07-02 Author: Nicola Asuni Copyright (c) 2002-2012: diff --git a/tcpdf.php b/tcpdf.php index dc3b387..476d021 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.171 + * @version 5.9.172 */ // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. @@ -149,7 +149,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 5.9.171 + * @version 5.9.172 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -160,7 +160,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.171'; + private $tcpdf_version = '5.9.172'; // Protected properties @@ -8417,11 +8417,13 @@ class TCPDF { $data .= $this->rfread($f, $n); fread($f, 4); } elseif ($type == 'iCCP') { - // skip profile name and null separator + // skip profile name $len = 0; while ((ord(fread($f, 1)) > 0) AND ($len < 80)) { ++$len; } + // skip null separator + fread($f, 1); // get compression method if (ord(fread($f, 1)) != 0) { //$this->Error('Unknown filter method: '.$file);