roooomaaaan
Hello,
I think I’ve run into a bug with thumbnail generation when Piwigo uses Imagick on Windows.
Environment
Piwigo: 16.4.0 (fresh install reproduces the issue)
OS: Windows (XAMPP)
PHP: 8.2.12
Graphics library in Piwigo: Imagick / ImageMagick 7.1.1–46 (as reported in the Environment page)
PHP extension: imagick 3.8.1 (module enabled, shows ImageMagick 7.1.1–46 in phpinfo)
Symptoms
With $conf['graphics_library'] = 'gd'; thumbnails and other derivative sizes are generated correctly and stored under _data/i/....
After switching to $conf['graphics_library'] = 'imagick'; on the same installation, album synchronization succeeds (no PWG‑UPDATE‑1 errors once sync_chars_regex is configured), but no new files are written under _data/i/... and thumbnails are not displayed in albums.
Enabling enable_i_log + log_level = 'DEBUG' shows normal i.php activity and timing when GD is used, but with Imagick there are no errors in the logs, only missing derivative files.
Additional tests
A standalone PHP test script using Imagick (outside Piwigo) works fine:
new Imagick($src)
thumbnailImage(250, 250)
writeImage($dest)
returns true and writes the output file as expected.
So Imagick itself can read and write images on this system; the problem seems specific to how Piwigo 16.x integrates with Imagick on Windows + PHP 8.2.
Reproduction steps
Install Piwigo 16.4.0 on Windows (XAMPP, PHP 8.2.12) with the imagick extension 3.8.1 and ImageMagick 7.1.1–46.
Configure physical albums under ./galleries/... and run “synchronize file structure with database” so that photos appear in the admin.
Set in local/config/config.inc.php:
$conf['graphics_library'] = 'imagick';
optionally, enable_i_log = true, log_level = 'DEBUG'.
Use Batch Manager → “Generate multiple size images” for one album.
Observe that no derivative files are created under _data/i/... and thumbnails remain missing, while switching back to $conf['graphics_library'] = 'gd'; immediately fixes the issue on the same installation.
It looks very similar to past reports where ImageMagick/Imagick worked only partially and GD was required, but in this case Imagick itself (outside Piwigo) is able to generate thumbnails; only Piwigo + Imagick fails to actually write derivatives on Windows with PHP 8.2.
If you need, I can provide i.php logs and exact paths used for src_path and derivative_path.
Thank you for looking into this.