   * This file is licensed under the Affero General Public License version 3 or
   * later.
   * See the COPYING-README file.
-@@ -8,30 +9,121 @@
-
+@@ -8,31 +9,93 @@
+ 
  namespace OC\Preview;
-
+ 
 +use Imagick;
 +
 +/**

+		$this->maxDims = [$maxX, $maxY];
+
 		$tmpPath = $fileview->toTmpFile($path);

-		//create imagick object from bitmap or vector file
+		// Creates \Imagick object from bitmap or vector file
 		try {

+			\OC_Log::write('core', 'ImageMagick says : ' . $e->getmessage(), \OC_Log::ERROR);
 			return false;
 		}
 
 		unlink($tmpPath);
 
 		//new bitmap image object
-		$image = new \OC_Image($bp);
+		$image = new \OC_Image();
