Error loading jpg and jpeg files

Not showing .jpg and .jpeg files after update to NC 19+.
I see the error message - “error loading FILENAME.jpeg”.

nc-error1

But .png showing normal.

Server configuration detail

Operating system: Linux 4.4.208 #1 SMP Wed Jan 8 15:23:19 CST 2020 x86_64

Webserver: Apache/2.4.37 (Unix) OpenSSL/1.0.2u (fpm-fcgi)

Database: mysql 10.0.38

PHP version: 7.4.11

Modules loaded: Core, date, libxml, pcre, fileinfo, filter, gd, hash, SPL, json, pcntl, session, bz2, posix, Reflection, standard, SimpleXML, sockets, imap, sysvmsg, sysvsem, sysvshm, xml, xmlwriter, mysqlnd, cgi-fcgi, bcmath, openssl, calendar, ctype, curl, dba, dom, enchant, mbstring, ftp, gettext, gmp, iconv, intl, ldap, exif, mysqli, odbc, zlib, PDO, pdo_mysql, pdo_sqlite, PDO_ODBC, pspell, shmop, snmp, soap, sqlite3, tokenizer, xmlreader, xsl, zip, Phar, apcu, imagick, redis, smbclient, libsmbclient, Zend OPcache

Nextcloud version: 19.0.5 - 19.0.5.2

I recompilied the php with options:
–enable-gd
–with-webp
–with-jpeg
–with-xpm
–with-freetype
and NC working fine now!

@graf-s
Very interesting. Have you on generating the problem only upgrade the nextcloud version or also update the php version? Was it only a php problem or a combination from php and nextcloud?

When I upgrading NC, I got a message that my php version (7.2.x built by myself) is not supported. So I built a new version of php (7.4.11), but didn’t take into account that the compilation options have changed.

< 7.4
–with-gd=DIR
–with-webp-dir=DIR
–with-jpeg-dir=DIR
–with-png-dir=DIR
–with-zlib-dir=DIR
–with-xpm-dir=DIR

>=7.4
–enable-gd
–with-external-gd
–with-webp
–with-jpeg
–with-xpm
–with-freetype

so it is my inadvertence when I compiled new php version.

1 Like