diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index c39e2117375b6dd188dc44a66b8ddfa1e88db56c..9bfb5d1d415fd04b2100731852cc752f496af3c4 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -245,7 +245,8 @@ function get_cropped($file, $ext, $w, $h=0){
   global $conf;
 
   if(!$h) $h = $w;
-  $info = getimagesize($file); //get original size
+  $info = @getimagesize($file); //get original size
+  if($info == false) return $file; // that's no image - it's a spaceship!
 
   // calculate crop size
   $fr = $info[0]/$info[1];