Announcement

#1 2023-11-14 08:48:43

Windrider6
Member
Empress, Alberta, Canada
2023-11-14
13

Some thumbnails not being created

Just started using Piwigo, and I've been uploading pictures via FTP, then Synchrozing.

Some thumbnails (and the other file sizes), are being created, but some are not.  I haven't found any difference between the files or filenames between the pictures that did get the thumbnails created, and the pictures that did not.

Can anyone suggest a fix or how I can force the creation of the other file sizes?

Environment

    Piwigo 13.8.0 Check for upgrade
    Installed on 13 November 2023, 10 hours ago
    Operating system: Linux
    PHP: 7.2.34 (Show info) [2023-11-14 06:55:05]
    MySQL: 5.7.44 [2023-11-13 22:55:05]
    Graphics Library: External ImageMagick 6.7.2-7
    Cache size 11.23 Mo ? calculated 12 minutes ago Refresh

Activated plugin list 1

    LocalFiles Editor

URL: https://brucejohnson.ca/wallpaper/

Offline

 

#2 2023-11-14 10:38:57

erAck
Only trying to help
2015-09-06
2054

Re: Some thumbnails not being created

It might could had helped if you gave an example URL of a thumbnail/image for which derivatives were not generated.

Oh btw, you should upgrade your PHP, 7.2.34 is end-of-life since 2020 and probably full of security bugs.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2023-11-14 23:58:45

Windrider6
Member
Empress, Alberta, Canada
2023-11-14
13

Re: Some thumbnails not being created

Updated PHP to the latest that my webhost offers.  I don't understand why they didn't have it up-to-date.  Also finally found imagick in those settings, so I could add it.

https://brucejohnson.ca/wallpaper/index.php?/category/6
Shows some thumbs, some missing.

I assume that now the suggestion will be to remove, then add again the galleries that have thumbnail problems.  Is there not another way to trigger re-creation of the other file sizes?

Environment

    Piwigo 13.8.0 Check for upgrade
    Installed on 13 November 2023, 1 day ago
    Operating system: Linux
    PHP: 8.1.24 (Show info) [2023-11-14 22:56:58]
    MySQL: 5.7.44 [2023-11-14 14:56:58]
    Graphics Library: ImageMagick 7.1.0-2
    Cache size 60.99 MB ? calculated right now Refresh

Activated plugin list 1

    LocalFiles Editor

Offline

 

#4 2023-11-15 01:52:10

Windrider6
Member
Empress, Alberta, Canada
2023-11-14
13

Re: Some thumbnails not being created

OK, I've fixed the problem now ... mostly, by changing sync_chars_regex to:

Code:

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9+-_.,; !@#$%^&\&\[\]\(\)\'ÀÁÂÃÄÅçğıİöşüÇĞÖŞŠÜąāàáâãäåæÒÓÔÕÖØòóôõöøÈÉ@;ÊËèéêëÇçÌÍÎÏìíîïŁÙÚÛÜùúûüÿÑñń]+$/';

I previous had in it [:alpha:][:digit:] Now with a-zA-Z0-9 instead, it works better.

Now thumbnails and other file sizes are not being created if the directory or filename has the ampersand (&) character in it.  Perhaps that is a problem with ImageMagick.

Offline

 

#5 2023-11-15 11:16:54

erAck
Only trying to help
2015-09-06
2054

Re: Some thumbnails not being created

See [Forum, topic 33202] No thumbnail if ampersand (&) in folder or filename.

And /^[[:alpha:][:digit:]...]+$/ should work fine even in PHP 7.2


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact