@@ 4688-4696 (lines=9) @@ | ||
4685 | @imagepng($img); |
|
4686 | $data = ob_get_clean(); |
|
4687 | ||
4688 | if ($data == '') { |
|
4689 | $error = 1; |
|
4690 | $errormsg = 'trouble writing file from GD'; |
|
4691 | //DEBUG_IMG_TEMP |
|
4692 | //debugpng |
|
4693 | if (defined("DEBUGPNG") && DEBUGPNG) { |
|
4694 | print 'trouble writing file from GD'; |
|
4695 | } |
|
4696 | } |
|
4697 | ||
4698 | if ($error) { |
|
4699 | $this->addMessage('PNG error - (' . $file . ') ' . $errormsg); |
|
@@ 5149-5158 (lines=10) @@ | ||
5146 | $p += $chunkLen + 12; |
|
5147 | } |
|
5148 | ||
5149 | if (!$haveHeader) { |
|
5150 | $error = 1; |
|
5151 | ||
5152 | //debugpng |
|
5153 | if (defined("DEBUGPNG") && DEBUGPNG) { |
|
5154 | print '[addPngFromFile information header is missing ' . $file . ']'; |
|
5155 | } |
|
5156 | ||
5157 | $errormsg = 'information header is missing'; |
|
5158 | } |
|
5159 | ||
5160 | if (isset($info['interlaceMethod']) && $info['interlaceMethod']) { |
|
5161 | $error = 1; |