•  » Extensions
  •  » AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

#1 2025-07-07 04:33:55

rw22mhhs
Member
2024-01-30
51

AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Hello everyone,

I am excited to announce the release of AlbumPilot v1.0.0!

AlbumPilot automates several key synchronization steps within Piwigo, saving you time and effort during album management. It allows you to batch process file synchronization, thumbnail generation, video poster creation, metadata updates, checksum calculations, and other features with a simple, user-friendly interface.

Thanks to its chunked processing architecture, long-running tasks, including metadata updates for existing files, run reliably to completion, even when they take considerable time.

Plugin page & download

https://piwigo.org/ext/index.php?eid=1038

Overview

AlbumPilot streamlines your entire Piwigo synchronization workflow with a single, unified interface. Instead of clicking through multiple maintenance pages, you can now:

1. Sync Files - Detect and import new or changed files into Piwigo in batches.

2. Update Metadata - Read EXIF/IPTC metadata for all images in your selected album(s), in small chunks to avoid timeouts.

3. Generate Video Posters - Create preview images (and optional filmstrip thumbnails) for your videos via VideoJS.

4. Generate Thumbnails - Produce or overwrite all configured thumbnail sizes in one go, with selective controls.

5. Calculate Checksums - Batch-compute missing MD5 hashes for images.

6. Reassign SmartAlbums - Trigger SmartAlbums rules automatically.

7. Update Album Metadata - Refresh album properties without leaving the plugin.

8. Update Photo Information - Rebuild photo metadata from the Maintenance page.

9. Repair & Optimize Database - Run Piwigo's database cleanup and optimization.

10. Run Integrity Check - Verify database and file consistency and report issues.

Additional features include a copy-and-paste external sync URL for automation, per-step enable/disable checkboxes, simulation mode (dry run), persistent UI settings across sessions, and detailed logging for each sync run.

Installation & Requirements

Piwigo 15.5.0 or later

piwigo-videojs plugin (for Step 3)

SmartAlbums plugin (for Step 6)

Via Plugin Manager:
Search for "AlbumPilot" under Plugins -> Install in your Piwigo admin panel.

Manual (ZIP):
Unzip into plugins/AlbumPilot and ensure write permissions for logging.

If you encounter any bugs or critical issues, feel free to open an issue on GitHub:
https://github.com/HendrikSchoettle/AlbumPilot/issues

A big thank you to everyone who tested and offered suggestions!

Happy syncing with AlbumPilot v1.0.0,

Hendrik (rw22mhhs)

Offline

 

#2 2025-08-02 20:27:55

neon
Member
2023-03-27
54

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Hi rw22mhhs!

Absolutely great! Very promising, seems exactly what I needed for my NAS photo collection.
Unfortunately, for some reason I get a very strange error on 4 step:

Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /config/www/plugins/AlbumPilot/include/images.php on line 287
Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /app/www/public/include/functions_session.inc.php on line 118

Does it really need so much memory?! The Piwigo internal thumbnail generation pahe is working - slowly, but without this error...

Offline

 

#3 2025-08-02 22:23:47

windracer
Member
St. Pete, FL
2014-12-28
636

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

I use 'memory_limit = 512M' in my php.ini.

Offline

 

#4 2025-08-03 16:04:00

neon
Member
2023-03-27
54

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

windracer wrote:

I use 'memory_limit = 512M' in my php.ini.

Mine is 2048M, and still not enough :(

Offline

 

#5 2025-08-03 17:12:52

rw22mhhs
Member
2024-01-30
51

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Hi,

Thanks, good to see it is helpful.

How many pictures are contained in the albums that are scanned? I will check what memory limit I use, but it has definitely been increased compared to the default setup.

Offline

 

#6 2025-08-04 13:36:15

erAck
Only trying to help
2015-09-06
2235

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

neon wrote:

Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /config/www/plugins/AlbumPilot/include/images.php on line 287
Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /app/www/public/include/functions_session.inc.php on line 118

That sounds more like some whatever error and not a real memory limit, 2147483648 is exactly 2GB.


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

Offline

 

#7 2025-08-04 14:24:58

neon
Member
2023-03-27
54

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

I have 830478 photos and tried to run the script on all of them. But in fact they all were syncronized already.
Now I tried again - no errors anymore! Good. And strange..

Offline

 

#8 2025-09-22 19:12:23

neon
Member
2023-03-27
54

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Since this strange initial problem I keep using AlbumPilot on two Piwigo installations, and it works perfectly well!
Thank you, rw22mhhs :)

Just one suggestion for the external trigger mode: is it possible to hide the disabled user interface completely? It is just confusing the user wihout playing any role. If the process steps will appear on an empty screen, they will be more visible (no need to scroll down ;)

Offline

 

#9 2025-10-24 15:09:21

windracer
Member
St. Pete, FL
2014-12-28
636

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

I see the new v1.2.0 release in Github, but the update is not appearing as available in my Piwigo sites.

Offline

 

#10 2025-10-26 22:00:42

rw22mhhs
Member
2024-01-30
51

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Hi everyone,

Just to follow up on the previous post: I've finally found the cause of the missing update notifications for AlbumPilot.

The issue was that the plugin header didn't include a Plugin URI line - I was not aware that Piwigo relies on this entry to check for new versions on the extensions site.

I have fixed it and published AlbumPilot 1.2.1, which adds this line.

Users of earlier versions (< v1.2.1) need to install the update manually once, via Plugins, Add a new plugin, search "AlbumPilot", Add, after which future updates should appear automatically.

Sorry for the inconvenience, and thanks to windracer and the Piwigo team for helping track this down!

Offline

 

#11 2025-10-26 22:37:31

windracer
Member
St. Pete, FL
2014-12-28
636

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Glad you were able to figure it out! I've manually upgraded to 1.2.1 and now we'll see what happens with your next release ;-)

Offline

 

#12 2025-11-02 16:21:56

neon
Member
2023-03-27
54

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

neon wrote:

Just one suggestion for the external trigger mode: is it possible to hide the disabled user interface completely? It is just confusing the user wihout playing any role. If the process steps will appear on an empty screen, they will be more visible (no need to scroll down ;)

Following up with this request: would it be possible to run this script (pre-configured, in external trigger mode) via curl or something like this, automatically?

Offline

 

#13 2025-11-18 12:01:33

AthLux
Member
2017-03-04
25

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Me too :)
I like to call albumpilot regularly from linux/bash

Offline

 

#14 2025-11-20 16:36:40

AthLux
Member
2017-03-04
25

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

I've just recognized that AlbumPilot write the piwigo_images.date_creation for pictures but not for videos.
That's my failure or a feauture in AlbumPilot?

Offline

 

#15 2026-01-24 18:11:14

rw22mhhs
Member
2024-01-30
51

Re: AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Hi everyone,

Just a short follow-up covering both topics raised above.

Regarding external trigger mode / automation:

Based on my experience so far, running AlbumPilot fully unattended is still somewhat fragile. Newer Chrome versions seem to apply additional restrictions when a browser is started programmatically, and in some cases the external trigger does not actually start until the browser window is opened or interacted with. There may be workarounds (for example using headless browser modes), but I have not fully validated these yet, and behavior tends to change with browser updates.
In practice, the external trigger URL usually needs to be adjusted and tested per environment, and reliability depends a lot on the individual setup (OS, browser version, login state, etc.). This is why there is currently no "official" one-size-fits-all solution for curl/cron-based execution. If anyone has a robust approach that works well in their environment, I'm very happy to take a look.

Regarding image / video creation dates:

In earlier versions, AlbumPilot updated piwigo_images.date_creation for images but not consistently for videos. This has now been addressed in AlbumPilot v1.3.0. There is a new explicit option in Step 3 to synchronize video metadata via VideoJS, and when enabled, creation dates (and other metadata) are now written for the processed videos as well. This keeps the workload limited to videos that are actually touched.

BTW: One important issue regarding plugin updates:

If you are running any AlbumPilot version older than v1.2.1, automatic updates in Piwigo's plugin manager will not work. This was caused by a missing Plugin URI entry in the plugin header and has been fixed in v1.2.1.

Unfortunately, you need a one-time manual update for older installations:

Piwigo Admin -> Plugins

Add a new plugin

Search for "AlbumPilot"

Click Add (it installs over the existing version; settings and logs are preserved)

After this one-time step, future updates (including v1.3.0) should appear normally in the plugin manager.

Further details are available in the README and on GitHub: https://github.com/HendrikSchoettle/AlbumPilot

Thanks again for the feedback and suggestions - they are very helpful in shaping future improvements!

Last edited by rw22mhhs (2026-01-24 18:12:07)

Offline

 
  •  » Extensions
  •  » AlbumPilot - Batch processing: Sync, thumbs, videos, maintenance

Board footer

Powered by FluxBB