Images.php
authorAlan Knowles <alan@roojs.com>
Mon, 23 Jul 2012 07:47:29 +0000 (15:47 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Jul 2012 07:47:29 +0000 (15:47 +0800)
Images.php

index 09d35dc..020a00a 100644 (file)
@@ -170,7 +170,11 @@ class Pman_Core_Images extends Pman
         require_once 'File/Convert.php';
         $cv = new File_Convert($tmp, $this->mimetype);
         
-        $fn = $cv->convert($this->as_mimetype);
+        $fn = $cv->convert(
+                $this->as_mimetype ,
+                empty($_REQUEST['width']) ? 0 : $_REQUEST['width'],
+                empty($_REQUEST['height']) ? 0 : $_REQUEST['height']
+        );
         if (!empty($_REQUEST['as_data'])) {
             $this->jok(base64_encode(file_get_contents($fn)));
         }