Changeset 154 for trunk/lib/ImageThumb.inc.php
- Timestamp:
- Jun 8, 2006 5:36:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ImageThumb.inc.php
r152 r154 320 320 if (!$this->_validFileExtension($file_name)) { 321 321 $this->_raiseMsg(sprintf(_("Image resizing failed: source image %s not a valid type. It must have one of the following file name extensions: %s"), $file_name, join(', ', $this->getParam('valid_file_extensions'))), MSG_ERR, __FILE__, __LINE__); 322 $app->logMsg(sprintf('Image resizing failed: source image not of valid type: %s', $source_file), LOG_ ERR, __FILE__, __LINE__);322 $app->logMsg(sprintf('Image resizing failed: source image not of valid type: %s', $source_file), LOG_WARNING, __FILE__, __LINE__); 323 323 return false; 324 324 } … … 382 382 if (IMAGETHUMB_METHOD_NETPBM === $this->getParam('resize_method') && file_exists($this->getParam('anytopnm_binary')) && file_exists($this->getParam('pnmscale_binary')) && file_exists($this->getParam('cjpeg_binary'))) { 383 383 // Resize using Netpbm binaries. 384 $app->logMsg(sprintf('Resizing with Netpbm: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__);384 // $app->logMsg(sprintf('Resizing with Netpbm: %s', $source_file), LOG_DEBUG, __FILE__, __LINE__); 385 385 $return_val += $this->_resizeWithNetpbm($source_file, $dest_file, $spec); 386 386 } else if (IMAGETHUMB_METHOD_GD === $this->getParam('resize_method') && extension_loaded('gd')) { 387 387 // Resize with GD. 388 $app->logMsg(sprintf('Resizing with GD: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__);388 // $app->logMsg(sprintf('Resizing with GD: %s', $source_file), LOG_DEBUG, __FILE__, __LINE__); 389 389 $return_val += $this->_resizeWithGD($source_file, $dest_file, $spec); 390 390 } else { … … 739 739 } 740 740 if (!file_exists($dest_dir)) { 741 if (phpversion() > '5' && false) { ///741 if (phpversion() > '5') { 742 742 // Recursive. 743 if (! 743 if (!file_exists($dest_dir) && !($ret = mkdir($dest_dir, $this->getParam('dest_dir_perms'), true))) { 744 744 $return_val++; 745 745 $app->logMsg(sprintf('mkdir failure: %s', $dest_dir), LOG_ERR, __FILE__, __LINE__);
Note: See TracChangeset
for help on using the changeset viewer.