•  » Engine
  •  » (new ?) plugin AutoFileRenamer, quick audit

#1 2026-05-14 13:00:05

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14100

(new ?) plugin AutoFileRenamer, quick audit

Hi cschafer,

I'm discovering [extension by cschafer] AutoFileRenamer and I have a few questions:

1) why is version 3.0.38 while it's the first one we see? I see there is a first version 2.10 (not released) then many more (none released)
2) do you confirm it only applies to synched photos (the ones in "galleries", not in "upload")?
3) why using Python?
4) is __pycache__ necessary?
5) why is the design (especially the tags look&feel) not the Piwigo administration design? (that's a pattern I see in all AI-generated plugins)
6) isn't the plugin managed on a git repository somewhere?

It looks like this is an old plugin but you decided to release it only now. Am I right?

Offline

 

#2 2026-05-14 23:58:19

cschafer
Member
2026-05-14
3

Re: (new ?) plugin AutoFileRenamer, quick audit

plg wrote:

1) why is version 3.0.38 while it's the first one we see? I see there is a first version 2.10 (not released) then many more (none released)

I built this application originally just for myself as I wanted my family members to be able to contribute to the photo website by modifying the photo titles on my server and even make album moves to organize a set of photos that originally came from a highly unorganized set of 5000+ 38mm slides.  I consider the Piwigo server to be a place of collaboration.  As such, I ended up wanting to update filenames and even metadata to match any contributions.

Just recently, I decided to share the plugin thinking perhaps others might use Piwigo in the same way?

plg wrote:

2) do you confirm it only applies to synched photos (the ones in "galleries", not in "upload")?

Yes, it only acts on galleries files, not on upload managed files.

Further, for safety, it only acts on specific triggers around administrative changes including:

* album rename and re-ordering
* photo title/description edits
* and -- it also acts on "Physical Photo Move" plugin actions -- including a correction for physical album move where I check and move any stranded pwg_format files (where the plugin currently only moves canonical files)

The plugin purposely does not run against mass imports through Synchronize.  Instead, I added a Global Update Tool which can be used following any Synchronize action.  The Global Update Tool does a safe bulk renaming but forces user to do a Preview first and approve the intened changes.

plg wrote:

3) why using Python?

I built this in collaboration with ChatGPT for coding and I appreciate the fact that the python code is published with the plugin so that it can be inspected.  I've spent much of my time designing and redesign for high performance and am happy with the current results.  On my home web server, i can scan through a photo collection of 5000+ in under 60 seconds applying check for renaming and checking for stale metadata.

plg wrote:

4) is __pycache__ necessary?

No, that will be removed with my next version.

plg wrote:

5) why is the design (especially the tags look&feel) not the Piwigo administration design? (that's a pattern I see in all AI-generated plugins)

Yes, it is AI-generated via ChatGPT.  It started out looking quite like other admin pages, but I found the dark background on the text input was making it difficult for me to read tags in various fields -- and so I change the look as I like it thinking the plugin was for my personal use only.  I don't mind doing another version or variant that brings it into compliance if that is highly important to the community.

plg wrote:

6) isn't the plugin managed on a git repository somewhere?

Not at the moment.  I have no problem setting that up soon.. but just wanted to share and see if it was useful to anyone before I did too much further. If there is interested in extending/changing this plugin, for sure will be glad to get it to a repository.

plg wrote:

7) Is this an old plugin that is only being released now?

Not really, don't consider it old.  I built this in the last 3 weeks.

Version 1.0+ focused on automated physical file renaming (week 1)

Version 2.0+ focused on metadata syncing (week 2)

Version 3.0+ this week - focused on folder renaming and adding a smarter engine that can run in parallel to the GUI until a rename job is completely.  In my case, all my rename jobs finish in under a second, so this wasn't needed.  But I added this mechanism in case people use the tool to do more advanced renaming or metadata syncs that run slower than how I'm using the tool.

It was around the third week that I decided for all the time I spent making it work the way I liked, .. perhaps I should socialize it and see if anyone else sees value in it.  So.. it's the first "public" release as until now I've just been using it on my own personal server.

Offline

 

#3 2026-05-15 11:44:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14100

Re: (new ?) plugin AutoFileRenamer, quick audit

cschafer wrote:

plg wrote:

4) is __pycache__ necessary?

No, that will be removed with my next version.

Thank you. Generated or binary files are not really designed/expected in plugins.

Code:

$ ll ext-1083/rev-*/*.zip
655986 May 14 ext-1083/rev-10526/AutoFileRenamer_plugin_v3_0_38.zip
275341 May 15 ext-1083/rev-10527/AutoFileRenamer_plugin_v3_0_55.zip

... and that's 380kB less !

Offline

 

#4 2026-05-15 12:05:04

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14100

Re: (new ?) plugin AutoFileRenamer, quick audit

cschafer wrote:

plg wrote:

1) why is version 3.0.38 while it's the first one we see? I see there is a first version 2.10 (not released) then many more (none released)
[...]

7) Is this an old plugin that is only being released now?

I built this application originally just for myself [...] I decided to share the plugin thinking perhaps others might use Piwigo in the same way?

Very good reasons. That's often how users start contributing to Piwigo with their custom plugins.

cschafer wrote:

Not really, don't consider it old.  I built this in the last 3 weeks.

Version 1.0+ focused on automated physical file renaming (week 1)

Version 2.0+ focused on metadata syncing (week 2)

Version 3.0+ this week - focused on folder renaming and adding a smarter engine [...]

OK, very young plugin actually. Considering the version numbers starting with 2.10, I though it was started in 2019 with Piwigo 2.10.

And why jumping from 3.0.38 to 3.0.55. Users are going to wonder where are all the in-between version :-/

Offline

 

#5 2026-05-15 12:23:20

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14100

Re: (new ?) plugin AutoFileRenamer, quick audit

cschafer wrote:

plg wrote:

3) why using Python?

I built this in collaboration with ChatGPT for coding and I appreciate the fact that the python code is published with the plugin so that it can be inspected.  I've spent much of my time designing and redesign for high performance and am happy with the current results.  On my home web server, i can scan through a photo collection of 5000+ in under 60 seconds applying check for renaming and checking for stale metadata.

I see the Python script connects to the database and so on. I really wonder why it would be faster than PHP. What's "slow" is database requests and calls to exiftool. But anyway, that's fine if you prefer Python. It's just an additional set of requirements. You should just tell users Ptyhon (and appropriate modules) is required, as well as exiftool.

Offline

 

#6 2026-05-15 12:24:39

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14100

Re: (new ?) plugin AutoFileRenamer, quick audit

cschafer wrote:

plg wrote:

2) do you confirm it only applies to synched photos (the ones in "galleries", not in "upload")?

Yes, it only acts on galleries files, not on upload managed files.

Good. It would be a very big bug if it was changing the filename pattern for upload/**/* files

Offline

 

#7 2026-05-15 12:46:21

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14100

Re: (new ?) plugin AutoFileRenamer, quick audit

cschafer wrote:

plg wrote:

5) why is the design (especially the tags look&feel) not the Piwigo administration design? (that's a pattern I see in all AI-generated plugins)

Yes, it is AI-generated via ChatGPT.

I could have told you, just by the design of the page, actually. Many recent plugins all look the same and they all "don't" look like Piwigo. And that's a problem. Piwigo has a "design system". There is an expected look&feel for tabs, sections, inputs... We (and especially our designer) find it very frustrating when we see complete change of design coming out from nowhere in the middle of Piwigo administration pages. Actually I don't understand why ChatGPT/Claude/WhateverAI don't respect Piwigo design :-/

I don't mind doing another version or variant that brings it into compliance if that is highly important to the community.

I wouldn't say "highly important" but I don't understand why breaking an expected design.

We have a theme Bootstrap Darkroom where the author has decided to create "sub-tabs". Why?!? I don't know. It also breaks Piwigo design (but less than new AI-generated plugins) and we've been living with that for years, even if Hannah has planned to change that to standard Piwigo tabs.

https://sandbox.piwigo.com/i?/uploads/4/y/1/4y1zzhnrnw//2026/05/15/20260515124104-f8f1e55d-la.png

As an example of expected design for tabs:

https://sandbox.piwigo.com/i?/uploads/4/y/1/4y1zzhnrnw//2026/05/15/20260515124105-5a20c6de-la.png

and the current tabs of plugin:1083 :

https://sandbox.piwigo.com/uploads/4/y/1/4y1zzhnrnw//2026/05/15/20260515124608-f46df277.jpg

Offline

 

#8 2026-05-15 13:13:29

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14100

Re: (new ?) plugin AutoFileRenamer, quick audit

cschafer wrote:

plg wrote:

6) isn't the plugin managed on a git repository somewhere?

Not at the moment.  I have no problem setting that up soon.. but just wanted to share and see if it was useful to anyone before I did too much further. If there is interested in extending/changing this plugin, for sure will be glad to get it to a repository.

As an opensource piece of code, a public repository is highly expected and appreciated. Personnaly I don't even understand how you can work without one :-)

The Piwigo.org extension manager is designed to work with a repository for each extension. It will directly build your zip file each time you want to publish a new version.

Offline

 

#9 2026-05-15 13:32:28

cschafer
Member
2026-05-14
3

Re: (new ?) plugin AutoFileRenamer, quick audit

Thanks for your many ideas. in short-term I'll see if I can better match the panel look in particular and switch to a more contiguous public release level scheme.

Offline

 

#10 2026-05-18 22:12:38

cschafer
Member
2026-05-14
3

Re: (new ?) plugin AutoFileRenamer, quick audit

Ok, with new version 3.2, I've taken the time to attempt to better align with the common piwigo look and feel and killed off the python scripting (getting a performance boost as a result).

Offline

 
  •  » Engine
  •  » (new ?) plugin AutoFileRenamer, quick audit

Board footer

Powered by FluxBB