replace image magick with gd
authorymh <ymh.work@gmail.com>
Wed, 28 Apr 2010 19:56:25 +0200
changeset 100 074326680b09
parent 99 9b8f2cd7a078
child 101 84d54120ed7e
replace image magick with gd
web/thdProject/plugins/UcImageScalerPlugin/lib/UcImageCacheManager.class.php
--- a/web/thdProject/plugins/UcImageScalerPlugin/lib/UcImageCacheManager.class.php	Wed Apr 28 18:36:36 2010 +0200
+++ b/web/thdProject/plugins/UcImageScalerPlugin/lib/UcImageCacheManager.class.php	Wed Apr 28 19:56:25 2010 +0200
@@ -44,7 +44,8 @@
 
     //not already cached
     if(!$this->cache->has($imageKey)) {
-      $thumbnail = new sfThumbnail($mw, $mh, $keepRatio, true, 80, 'sfImageMagickAdapter');
+      //$thumbnail = new sfThumbnail($mw, $mh, $keepRatio, true, 80, 'sfImageMagickAdapter');
+	  $thumbnail = new sfThumbnail($mw, $mh, $keepRatio, true, 80, 'sfGDAdapter');
 
       try {
         $thumbnail->loadFile($imageUrl);