 +
 +		return $bp;
 +	}
-+}
++
+ }
--- a/lib/private/preview/bitmap.php.orig	2015-03-06 15:14:17.770952395 +0000
+++ b/lib/private/preview/bitmap.php	2015-03-06 15:02:38.803951481 +0000
@@ -1,6 +1,7 @@
 <?php
 /**
- * Copyright (c) 2013-2014 Georg Ehrke georg@ownCloud.com
+ * @copyright 2013-2014 Georg Ehrke georg@ownCloud.com
+ * @copyright 2015 Olivier Paroz <owncloud@interfasys.ch>
  * This file is licensed under the Affero General Public License version 3 or
  * later.
  * See the COPYING-README file.
@@ -8,31 +9,93 @@
 
 namespace OC\Preview;
 

+			$bp = $this->getResizedPreview($tmpPath);
 		} catch (\Exception $e) {
-			\OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR);
+			\OC_Log::write('core', 'ImageMagick says: ' . $e->getmessage(), \OC_Log::ERROR);
 			return false;
 		}
 
