Missing Derivative Files

After my recent upgrade to Omeka S 4.1.1 (and subsequent module upgrades mentioned here), the some of the derivative files for my media has disappeared. It also doesn’t create the derivative files when I add new items/media like it did before. Previously, if I didn’t specify a thumbnail, it would create one as long as the item had a primary media. Now, I’m having to specify a thumbnail, which doesn’t work too well for things that are not in the Asset panel (or sideload directory).

I have tried fixing the problem using the Derivative Media Optimizer, Image Server, IIIF Server, or Create Missing Thumbnails modules–none of which had much luck.

This seemed to be a common error:
image

Any suggestions?

Did you change servers or something like that at the same time?

The “unrecognized option -alpha” part of the error log suggests you’re using a quite old version of ImageMagick. Our command used for ImageMagick hasn’t really changed though; if you have an old enough version to cause this error, then it would have never worked with Omeka S. (Which is why I suggested above that you might have moved servers or similar, to somewhere with an older ImageMagick installed.)

Can you run /usr/bin/convert --version and check what version you have? Or, pressing the button for it in the System Information screen can do that for you also. For context, the -alpha option was added around the time of ImageMagick 6.3, which dates to 2007 or so.

I attempted to upgrade last year, but ran into roadblocks with Reclaim Hosting and (I think) room on the server, but now there was no issue, so I don’t know if the site has moved servers or not.

On my System Information page:
image

You might talk to Reclaim about this.

You could also try, if ImageMagick is going to be a problem on your server, using one of the other thumbnailers. If your server has the imagick or gd extensions (they’re listed on the System Information page), then you can make a setting in your config/local.config.php file to use either of those to make thumbnails instead of using the command-line ImageMagick tool.

This is my config/local.config.php file:

<?php
return [
    'logger' => [
        'log' => false,
        'priority' => \Laminas\Log\Logger::NOTICE,
    ],
    'http_client' => [
        'sslcapath' => null,
        'sslcafile' => null,
    ],
    'cli' => [
        'phpcli_path' => '/usr/local/bin/php',
    ],
    'thumbnails' => [
        'types' => [
            'large' => ['constraint' => 800],
            'medium' => ['constraint' => 200],
            'square' => ['constraint' => 200],
        ],
        'thumbnailer_options' => [
            'imagemagick_dir' => '/usr/bin/',
        ],
    ],
    'translator' => [
        'locale' => 'en_US',
    ],
    'service_manager' => [
        'aliases' => [
            'Omeka\File\Store' => 'Omeka\File\Store\Local',
            'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\ImageMagick',
        ],
    ],
];

In Configuration Options under Thumbnailers, it shows

        'thumbnailer_options' => [
            'imagemagick_dir' => null,

image
Could this be part of it?

I do have the gd and imagick extensions listed on the System Information page:

So if I change the

    'service_manager' => [
        'aliases' => [
            'Omeka\File\Store' => 'Omeka\File\Store\Local',
            'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\ImageMagick',
        ],
    ],

to

    'service_manager' => [
        'aliases' => [
            'Omeka\File\Store' => 'Omeka\File\Store\Local',
            'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\Imagick',
        ],
    ],

, do I need to do anything else?

Just that change should be enough (or the Gd one to use GD).

1 Like

Thank you, that worked perfectly! (after I also did a “Rebuild Derivative Images” in Easy Admin)
image