[pLog-svn] r5029 - plog/branches/lifetype-1.2/class/gallery/resizers

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Mar 8 14:59:22 EST 2007


Author: oscar
Date: 2007-03-08 14:59:22 -0500 (Thu, 08 Mar 2007)
New Revision: 5029

Modified:
   plog/branches/lifetype-1.2/class/gallery/resizers/galleryimagemagickresizer.class.php
Log:
Added double quotes around the file names so that file names with spaces work too.

Modified: plog/branches/lifetype-1.2/class/gallery/resizers/galleryimagemagickresizer.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/gallery/resizers/galleryimagemagickresizer.class.php	2007-03-08 17:21:50 UTC (rev 5028)
+++ plog/branches/lifetype-1.2/class/gallery/resizers/galleryimagemagickresizer.class.php	2007-03-08 19:59:22 UTC (rev 5029)
@@ -34,9 +34,10 @@
             $config =& Config::getConfig();
             $convertPath = $config->getValue( "path_to_convert", DEFAULT_PATH_TO_CONVERT );
                 // run the command
-            $command = $convertPath." -geometry ".$width."x".$height." ".$this->_image." ".$outFile;
+            $command = $convertPath." -geometry ".$width."x".$height." \"".$this->_image."\" \"".$outFile."\"";
+
             $cmdOutput = system($command, $retval);
-            
+
                 // check if there was an error creating the thubmnail
             if($cmdOutput === FALSE || $retval )
             	return false;



More information about the pLog-svn mailing list