diff --git a/imageapi.module b/imageapi.module
index c86c0bf..5599b7b 100644
--- a/imageapi.module
+++ b/imageapi.module
@@ -378,6 +378,10 @@ function imageapi_image_open($file, $toolkit = FALSE) {
     $image->info = image_get_info($file);
     $image->toolkit = $toolkit;
     if (imageapi_toolkit_invoke('open', $image)) {
+      // Image can not have an empty/zero dimension.
+      if (empty($image->info['width']) || empty($image->info['height'])) {
+        return FALSE;
+      }
       return $image;
     }
   }
