Tiff.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @package Zend_Pdf
  16. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  17. * @license http://framework.zend.com/license/new-bsd New BSD License
  18. */
  19. /** Zend_Pdf_Resource_Image */
  20. require_once 'Zend/Pdf/Resource/Image.php';
  21. /** Zend_Pdf_Element_Numeric */
  22. require_once 'Zend/Pdf/Element/Numeric.php';
  23. /** Zend_Pdf_Element_Name */
  24. require_once 'Zend/Pdf/Element/Name.php';
  25. /**
  26. * TIFF image
  27. *
  28. * @package Zend_Pdf
  29. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  30. * @license http://framework.zend.com/license/new-bsd New BSD License
  31. */
  32. class Zend_Pdf_Resource_Image_Tiff extends Zend_Pdf_Resource_Image
  33. {
  34. const TIFF_FIELD_TYPE_BYTE=1;
  35. const TIFF_FIELD_TYPE_ASCII=2;
  36. const TIFF_FIELD_TYPE_SHORT=3;
  37. const TIFF_FIELD_TYPE_LONG=4;
  38. const TIFF_FIELD_TYPE_RATIONAL=5;
  39. const TIFF_TAG_IMAGE_WIDTH=256;
  40. const TIFF_TAG_IMAGE_LENGTH=257; //Height
  41. const TIFF_TAG_BITS_PER_SAMPLE=258;
  42. const TIFF_TAG_COMPRESSION=259;
  43. const TIFF_TAG_PHOTOMETRIC_INTERPRETATION=262;
  44. const TIFF_TAG_STRIP_OFFSETS=273;
  45. const TIFF_TAG_SAMPLES_PER_PIXEL=277;
  46. const TIFF_TAG_STRIP_BYTE_COUNTS=279;
  47. const TIFF_COMPRESSION_UNCOMPRESSED = 1;
  48. const TIFF_COMPRESSION_CCITT1D = 2;
  49. const TIFF_COMPRESSION_GROUP_3_FAX = 3;
  50. const TIFF_COMPRESSION_GROUP_4_FAX = 4;
  51. const TIFF_COMPRESSION_LZW = 5;
  52. const TIFF_COMPRESSION_JPEG = 6;
  53. const TIFF_COMPRESSION_FLATE = 8;
  54. const TIFF_COMPRESSION_FLATE_OBSOLETE_CODE = 32946;
  55. const TIFF_COMPRESSION_PACKBITS = 32773;
  56. const TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO=0;
  57. const TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO=1;
  58. const TIFF_PHOTOMETRIC_INTERPRETATION_RGB=2;
  59. const TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED=3;
  60. const TIFF_PHOTOMETRIC_INTERPRETATION_CMYK=5;
  61. const TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR=6;
  62. const TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB=8;
  63. protected $_width;
  64. protected $_height;
  65. protected $_imageProperties;
  66. protected $_endianType;
  67. protected $_fileSize;
  68. protected $_bitsPerSample;
  69. protected $_compression;
  70. protected $_filter;
  71. protected $_colorCode;
  72. protected $_whiteIsZero;
  73. protected $_blackIsZero;
  74. protected $_colorSpace;
  75. protected $_imageDataOffset;
  76. protected $_imageDataLength;
  77. const TIFF_ENDIAN_BIG=0;
  78. const TIFF_ENDIAN_LITTLE=1;
  79. const UNPACK_TYPE_BYTE=0;
  80. const UNPACK_TYPE_SHORT=1;
  81. const UNPACK_TYPE_LONG=2;
  82. const UNPACK_TYPE_RATIONAL=3;
  83. /**
  84. * Byte unpacking function
  85. *
  86. * Makes it possible to unpack bytes in one statement for enhanced logic readability.
  87. *
  88. * @param int $type
  89. * @param string $bytes
  90. * @throws Zend_Pdf_Exception
  91. */
  92. protected function unpackBytes($type, $bytes) {
  93. if(!isset($this->_endianType)) {
  94. require_once 'Zend/Pdf/Exception.php';
  95. throw new Zend_Pdf_Exception("The unpackBytes function can only be used after the endianness of the file is known");
  96. }
  97. switch($type) {
  98. case Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_BYTE:
  99. $format = 'C';
  100. $unpacked = unpack($format, $bytes);
  101. return $unpacked[1];
  102. break;
  103. case Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_SHORT:
  104. $format = ($this->_endianType == Zend_Pdf_Resource_Image_Tiff::TIFF_ENDIAN_LITTLE)?'v':'n';
  105. $unpacked = unpack($format, $bytes);
  106. return $unpacked[1];
  107. break;
  108. case Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_LONG:
  109. $format = ($this->_endianType == Zend_Pdf_Resource_Image_Tiff::TIFF_ENDIAN_LITTLE)?'V':'N';
  110. $unpacked = unpack($format, $bytes);
  111. return $unpacked[1];
  112. break;
  113. case Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_RATIONAL:
  114. $format = ($this->_endianType == Zend_Pdf_Resource_Image_Tiff::TIFF_ENDIAN_LITTLE)?'V2':'N2';
  115. $unpacked = unpack($format, $bytes);
  116. return ($unpacked[1]/$unpacked[2]);
  117. break;
  118. }
  119. }
  120. /**
  121. * Object constructor
  122. *
  123. * @param string $imageFileName
  124. * @throws Zend_Pdf_Exception
  125. */
  126. public function __construct($imageFileName)
  127. {
  128. if (($imageFile = @fopen($imageFileName, 'rb')) === false ) {
  129. require_once 'Zend/Pdf/Exception.php';
  130. throw new Zend_Pdf_Exception( "Can not open '$imageFileName' file for reading." );
  131. }
  132. $byteOrderIndicator = fread($imageFile, 2);
  133. if($byteOrderIndicator == 'II') {
  134. $this->_endianType = Zend_Pdf_Resource_Image_Tiff::TIFF_ENDIAN_LITTLE;
  135. } else if($byteOrderIndicator == 'MM') {
  136. $this->_endianType = Zend_Pdf_Resource_Image_Tiff::TIFF_ENDIAN_BIG;
  137. } else {
  138. require_once 'Zend/Pdf/Exception.php';
  139. throw new Zend_Pdf_Exception( "Not a tiff file or Tiff corrupt. No byte order indication found" );
  140. }
  141. $version = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_SHORT, fread($imageFile, 2));
  142. if($version != 42) {
  143. require_once 'Zend/Pdf/Exception.php';
  144. throw new Zend_Pdf_Exception( "Not a tiff file or Tiff corrupt. Incorrect version number." );
  145. }
  146. $ifdOffset = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_LONG, fread($imageFile, 4));
  147. $fileStats = fstat($imageFile);
  148. $this->_fileSize = $fileStats['size'];
  149. /*
  150. * Tiff files are stored as a series of Image File Directories (IFD) each direcctory
  151. * has a specific number of entries each 12 bytes in length. At the end of the directories
  152. * is four bytes pointing to the offset of the next IFD.
  153. */
  154. while($ifdOffset > 0) {
  155. if(fseek($imageFile, $ifdOffset, SEEK_SET) == -1 || $ifdOffset+2 >= $this->_fileSize) {
  156. require_once 'Zend/Pdf/Exception.php';
  157. throw new Zend_Pdf_Exception("Could not seek to the image file directory as indexed by the file. Likely cause is TIFF corruption. Offset: ". $ifdOffset);
  158. }
  159. $numDirEntries = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_SHORT, fread($imageFile, 2));
  160. /*
  161. * Since we now know how many entries are in this (IFD) we can extract the data.
  162. * The format of a TIFF directory entry is:
  163. *
  164. * 2 bytes (short) tag code; See TIFF_TAG constants at the top for supported values. (There are many more in the spec)
  165. * 2 bytes (short) field type
  166. * 4 bytes (long) number of values, or value count.
  167. * 4 bytes (mixed) data if the data will fit into 4 bytes or an offset if the data is too large.
  168. */
  169. for($dirEntryIdx = 1; $dirEntryIdx <= $numDirEntries; $dirEntryIdx++) {
  170. $tag = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_SHORT, fread($imageFile, 2));
  171. $fieldType = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_SHORT, fread($imageFile, 2));
  172. $valueCount = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_LONG, fread($imageFile, 4));
  173. switch($fieldType) {
  174. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_BYTE:
  175. $fieldLength = $valueCount;
  176. break;
  177. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_ASCII:
  178. $fieldLength = $valueCount;
  179. break;
  180. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_SHORT:
  181. $fieldLength = $valueCount * 2;
  182. break;
  183. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_LONG:
  184. $fieldLength = $valueCount * 4;
  185. break;
  186. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_RATIONAL:
  187. $fieldLength = $valueCount * 8;
  188. break;
  189. default:
  190. $fieldLength = $valueCount;
  191. }
  192. $offsetBytes = fread($imageFile, 4);
  193. if($fieldLength <= 4) {
  194. switch($fieldType) {
  195. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_BYTE:
  196. $value = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_BYTE, $offsetBytes);
  197. break;
  198. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_ASCII:
  199. //Fall through to next case
  200. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_LONG:
  201. $value = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_LONG, $offsetBytes);
  202. break;
  203. case Zend_Pdf_Resource_Image_Tiff::TIFF_FIELD_TYPE_SHORT:
  204. //Fall through to next case
  205. default:
  206. $value = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_SHORT, $offsetBytes);
  207. }
  208. } else {
  209. $refOffset = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_LONG, $offsetBytes);
  210. }
  211. /*
  212. * Linear tag processing is probably not the best way to do this. I've processed the tags according to the
  213. * Tiff 6 specification and make some assumptions about when tags will be < 4 bytes and fit into $value and when
  214. * they will be > 4 bytes and require seek/extraction of the offset. Same goes for extracting arrays of data, like
  215. * the data offsets and length. This should be fixed in the future.
  216. */
  217. switch($tag) {
  218. case Zend_Pdf_Resource_Image_Tiff::TIFF_TAG_IMAGE_WIDTH:
  219. $this->_width = $value;
  220. break;
  221. case Zend_Pdf_Resource_Image_Tiff::TIFF_TAG_IMAGE_LENGTH:
  222. $this->_height = $value;
  223. break;
  224. case Zend_Pdf_Resource_Image_Tiff::TIFF_TAG_BITS_PER_SAMPLE:
  225. if($valueCount>1) {
  226. $fp = ftell($imageFile);
  227. fseek($imageFile, $refOffset, SEEK_SET);
  228. $this->_bitsPerSample = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_SHORT, fread($imageFile, 2));
  229. fseek($imageFile, $fp, SEEK_SET);
  230. } else {
  231. $this->_bitsPerSample = $value;
  232. }
  233. break;
  234. case Zend_Pdf_Resource_Image_Tiff::TIFF_TAG_COMPRESSION:
  235. $this->_compression = $value;
  236. switch($value) {
  237. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_UNCOMPRESSED:
  238. $this->_filter = 'None';
  239. break;
  240. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_CCITT1D:
  241. //Fall through to next case
  242. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_GROUP_3_FAX:
  243. //Fall through to next case
  244. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_GROUP_4_FAX:
  245. $this->_filter = 'CCITTFaxDecode';
  246. require_once 'Zend/Pdf/Exception.php';
  247. throw new Zend_Pdf_Exception("CCITTFaxDecode Compression Mode Not Currently Supported");
  248. break;
  249. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_LZW:
  250. $this->_filter = 'LZWDecode';
  251. require_once 'Zend/Pdf/Exception.php';
  252. throw new Zend_Pdf_Exception("LZWDecode Compression Mode Not Currently Supported");
  253. break;
  254. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_JPEG:
  255. $this->_filter = 'DCTDecode'; //Should work, doesnt...
  256. require_once 'Zend/Pdf/Exception.php';
  257. throw new Zend_Pdf_Exception("JPEG Compression Mode Not Currently Supported");
  258. break;
  259. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_FLATE:
  260. //fall through to next case
  261. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_FLATE_OBSOLETE_CODE:
  262. $this->_filter = 'FlateDecode';
  263. require_once 'Zend/Pdf/Exception.php';
  264. throw new Zend_Pdf_Exception("ZIP/Flate Compression Mode Not Currently Supported");
  265. break;
  266. case Zend_Pdf_Resource_Image_Tiff::TIFF_COMPRESSION_PACKBITS:
  267. $this->_filter = 'RunLengthDecode';
  268. break;
  269. }
  270. break;
  271. case Zend_Pdf_Resource_Image_Tiff::TIFF_TAG_PHOTOMETRIC_INTERPRETATION:
  272. $this->_colorCode = $value;
  273. $this->_whiteIsZero = false;
  274. $this->_blackIsZero = false;
  275. switch($value) {
  276. case Zend_Pdf_Resource_Image_Tiff::TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO:
  277. $this->_whiteIsZero = true;
  278. $this->_colorSpace = 'DeviceGray';
  279. break;
  280. case Zend_Pdf_Resource_Image_Tiff::TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO:
  281. $this->_blackIsZero = true;
  282. $this->_colorSpace = 'DeviceGray';
  283. break;
  284. case Zend_Pdf_Resource_Image_Tiff::TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR:
  285. //fall through to next case
  286. case Zend_Pdf_Resource_Image_Tiff::TIFF_PHOTOMETRIC_INTERPRETATION_RGB:
  287. $this->_colorSpace = 'DeviceRGB';
  288. break;
  289. case Zend_Pdf_Resource_Image_Tiff::TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED:
  290. $this->_colorSpace = 'Indexed';
  291. break;
  292. case Zend_Pdf_Resource_Image_Tiff::TIFF_PHOTOMETRIC_INTERPRETATION_CMYK:
  293. $this->_colorSpace = 'DeviceCMYK';
  294. break;
  295. case Zend_Pdf_Resource_Image_Tiff::TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB:
  296. $this->_colorSpace = 'Lab';
  297. break;
  298. default:
  299. require_once 'Zend/Pdf/Exception.php';
  300. throw new Zend_Pdf_Exception('TIFF: Unknown or Unsupported Color Type: '. $value);
  301. }
  302. break;
  303. case Zend_Pdf_Resource_Image_Tiff::TIFF_TAG_STRIP_OFFSETS:
  304. if($valueCount>1) {
  305. $format = ($this->_endianType == Zend_Pdf_Resource_Image_Tiff::TIFF_ENDIAN_LITTLE)?'V*':'N*';
  306. $fp = ftell($imageFile);
  307. fseek($imageFile, $refOffset, SEEK_SET);
  308. $stripOffsetsBytes = fread($imageFile, $fieldLength);
  309. $this->_imageDataOffset = unpack($format, $stripOffsetsBytes);
  310. fseek($imageFile, $fp, SEEK_SET);
  311. } else {
  312. $this->_imageDataOffset = $value;
  313. }
  314. break;
  315. case Zend_Pdf_Resource_Image_Tiff::TIFF_TAG_STRIP_BYTE_COUNTS:
  316. if($valueCount>1) {
  317. $format = ($this->_endianType == Zend_Pdf_Resource_Image_Tiff::TIFF_ENDIAN_LITTLE)?'V*':'N*';
  318. $fp = ftell($imageFile);
  319. fseek($imageFile, $refOffset, SEEK_SET);
  320. $stripByteCountsBytes = fread($imageFile, $fieldLength);
  321. $this->_imageDataLength = unpack($format, $stripByteCountsBytes);
  322. fseek($imageFile, $fp, SEEK_SET);
  323. } else {
  324. $this->_imageDataLength = $value;
  325. }
  326. break;
  327. default:
  328. //For debugging. It should be harmless to ignore unknown tags, though there is some good info in them.
  329. //echo "Unknown tag detected: ". $tag . " value: ". $value;
  330. }
  331. }
  332. $ifdOffset = $this->unpackBytes(Zend_Pdf_Resource_Image_Tiff::UNPACK_TYPE_LONG, fread($imageFile, 4));
  333. }
  334. if(!isset($this->_imageDataOffset) || !isset($this->_imageDataLength)) {
  335. require_once 'Zend/Pdf/Exception.php';
  336. throw new Zend_Pdf_Exception("TIFF: The image processed did not contain image data as expected.");
  337. }
  338. $imageDataBytes = '';
  339. if(is_array($this->_imageDataOffset)) {
  340. if(!is_array($this->_imageDataLength)) {
  341. require_once 'Zend/Pdf/Exception.php';
  342. throw new Zend_Pdf_Exception("TIFF: The image contained multiple data offsets but not multiple data lengths. Tiff may be corrupt.");
  343. }
  344. foreach($this->_imageDataOffset as $idx => $offset) {
  345. fseek($imageFile, $this->_imageDataOffset[$idx], SEEK_SET);
  346. $imageDataBytes .= fread($imageFile, $this->_imageDataLength[$idx]);
  347. }
  348. } else {
  349. fseek($imageFile, $this->_imageDataOffset, SEEK_SET);
  350. $imageDataBytes = fread($imageFile, $this->_imageDataLength);
  351. }
  352. if($imageDataBytes === '') {
  353. require_once 'Zend/Pdf/Exception.php';
  354. throw new Zend_Pdf_Exception("TIFF: No data. Image Corruption");
  355. }
  356. fclose($imageFile);
  357. parent::__construct();
  358. $imageDictionary = $this->_resource->dictionary;
  359. if(!isset($this->_width) || !isset($this->_width)) {
  360. require_once 'Zend/Pdf/Exception.php';
  361. throw new Zend_Pdf_Exception("Problem reading tiff file. Tiff is probably corrupt.");
  362. }
  363. $this->_imageProperties = array();
  364. $this->_imageProperties['bitDepth'] = $this->_bitsPerSample;
  365. $this->_imageProperties['fileSize'] = $this->_fileSize;
  366. $this->_imageProperties['TIFFendianType'] = $this->_endianType;
  367. $this->_imageProperties['TIFFcompressionType'] = $this->_compression;
  368. $this->_imageProperties['TIFFwhiteIsZero'] = $this->_whiteIsZero;
  369. $this->_imageProperties['TIFFblackIsZero'] = $this->_blackIsZero;
  370. $this->_imageProperties['TIFFcolorCode'] = $this->_colorCode;
  371. $this->_imageProperties['TIFFimageDataOffset'] = $this->_imageDataOffset;
  372. $this->_imageProperties['TIFFimageDataLength'] = $this->_imageDataLength;
  373. $this->_imageProperties['PDFfilter'] = $this->_filter;
  374. $this->_imageProperties['PDFcolorSpace'] = $this->_colorSpace;
  375. $imageDictionary->Width = new Zend_Pdf_Element_Numeric($this->_width);
  376. if($this->_whiteIsZero === true) {
  377. $imageDictionary->Decode = new Zend_Pdf_Element_Array(array(new Zend_Pdf_Element_Numeric(1), new Zend_Pdf_Element_Numeric(0)));
  378. }
  379. $imageDictionary->Height = new Zend_Pdf_Element_Numeric($this->_height);
  380. $imageDictionary->ColorSpace = new Zend_Pdf_Element_Name($this->_colorSpace);
  381. $imageDictionary->BitsPerComponent = new Zend_Pdf_Element_Numeric($this->_bitsPerSample);
  382. if(isset($this->_filter) && $this->_filter != 'None') {
  383. $imageDictionary->Filter = new Zend_Pdf_Element_Name($this->_filter);
  384. }
  385. $this->_resource->value = $imageDataBytes;
  386. $this->_resource->skipFilters();
  387. }
  388. /**
  389. * Image width (defined in Zend_Pdf_Resource_Image_Interface)
  390. */
  391. public function getPixelWidth() {
  392. return $this->_width;
  393. }
  394. /**
  395. * Image height (defined in Zend_Pdf_Resource_Image_Interface)
  396. */
  397. public function getPixelHeight() {
  398. return $this->_height;
  399. }
  400. /**
  401. * Image properties (defined in Zend_Pdf_Resource_Image_Interface)
  402. */
  403. public function getProperties() {
  404. return $this->_imageProperties;
  405. }
  406. }