JPG images not showing on NextCloud Hub 3

As in this topic, my images are not showing. I started at php7.4, but have migrated to php8.1.

Stock packages should work, but no images are showing, even during file selection.

I’ve addressed the php changes in the following files:
/etc/nginx/conf.d/nextcloud.conf
/etc/php/8.1/fpm/pool.d/www.conf

NextCloud 25.0.4
Nginx
Postgresql
Ubuntu 20.04

Thanks!

What php extensions do you have installed?

dpkg -l | grep php

What does the output of phpinfo(); show?

What does your Nginx log file show when loading images?

php-common/now 2:93+ubuntu20.04.1+deb.sury.org+2 all [installed,local]
php-pear/now 1:1.10.13+submodules+notgz+2022032202-2+ubuntu20.04.1+deb.sury.org+1 all [installed,local]
php8.1-bcmath/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-cli/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-common/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-curl/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-dev/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-fpm/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-gd/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-gmp/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-igbinary/now 3.2.12+2.0.8-2+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-imagick/now 3.7.0-3+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-intl/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-mbstring/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-mysql/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-opcache/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-pgsql/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-readline/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-sqlite3/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-xml/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1-zip/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,local]
php8.1/now 8.1.13-1+ubuntu20.04.1+deb.sury.org+1 all [installed,local]
pkg-php-tools/focal,focal,now 1.38 all [installed,automatic]

PHP information as reported by NextCloud:

Version: 8.1.13

Memory limit: 512 MB

Max execution time: 10000

Upload max size: 16 GB

Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, cgi-fcgi, intl, mysqlnd, PDO, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, exif, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache