Preview of images not working for png and jpg when using nginx

Dear all,

I moved my Cockpit installation from a apache to a nginx with PHP 7.3.
After moving the data I can see all my collections, … and assets. The problem is, that I cannot see the preview for png and jpg in the asset section. I can only see the preview for svg.

Once I click on the image, I can see it in the pop up. This indicates that the image is indeed there and the migration was succesfull.

Do you know why the preview is not working? Could this be a PHP GD issue? Or do I need a special PHP extension enabled for this?


I have also tried this with a completely new installation with the same result :frowning:
Does anyone know how to fix this?

If anyone else is stumbling across this question, found a fix here

The $is_args in my nginx conf was missing, thats why the thumbnail options were the defaults (and throw errors about missing height/width and src)

    location / {
            try_files $uri $uri/ /index.php$is_args$args;

Awesome. It worked! Thanks a lot @joshinat0r