My watchdog logs are littered with these:

Warning: getimagesize(): Filename cannot be empty in image_imagemagick_get_info() (line 350 of /path/to/drupal/sites/all/modules/imagemagick/imagemagick.module).

EDIT: line 350 in dev, line 343 in alpha.

after debugging I've determined that imagemagick is:
A) Using drupal_realpath and therefore breaking on Amazon streamwrapper requests and
B) Trying to get the image size of flv files

did I miss a setting somewhere?

Comments

Lux Delux’s picture

+1

I'm also getting this with my Amazon hosted images

dlumberg’s picture

Project: ImageMagick » Video.js (HTML5 Video Player)

This was driving me mad so I went and did a backtrace.

VideoJS is running through looking for images and doesn't filter out FLVs.

    // Skip unplayable items.
    if (empty($item['filemime']) || !isset($codecs[$item['filemime']])) {
      // check for image file and add in it as poster
      if (isset($item['uri'])) {
        $imagecheckerrors = file_validate_is_image((object) $item);
        if (empty($imagecheckerrors)) {
          $vars['poster'] = file_create_url($item['uri']);
        }
      }
      continue;
    }

Change line 40 to:

      if (isset($item['uri']) && !$item['filemime'] == 'video/x-flv') {
Jorrit’s picture

Status: Active » Closed (works as designed)

My recommendation is to update to version 7.x-2.x. It doesn't have this problem. Your fix is fine for 1.x, however.

Jorrit’s picture

Issue summary: View changes

changing line # of error

kappaluppa’s picture

Issue summary: View changes

I am using Video.js ver 7.x-2.3, and I am getting this same error.

Note: I solved the issue with this patch for imagemagick module: https://www.drupal.org/node/1695068