While working with resizes recently (testing AlbumPilot from @rw22mhhs), I noticed I have about 85k thumbnails taking up 5.5gb of disk space that are named like this: <imagename>-cu_e<resolution>.<ext>. I have all sorts of "sizes" like:
- cu_e64
- cu_e350
- cu_e520x360
- cu_e260x180
etc.
I'm using the modus theme, and the only photo sizes I have checked are square, thumbnail, and medium, so in addition to the above resize names I also have the expected -sq, -th, and -me names.
Where are those custom resizes coming from? Is it from using the mobile iOS app or a mobile browser?
Offline
I would say that cu means custom.
The webmaster chooses which photo sizes he wants to propose in
admin.php?page=configuration§ion=sizes
But when visitors visit the site whith unusual screen sizes, other photo sizes can be created and they will include the cu in their file names.
Custom sizes can be deleted in admin.php?page=maintenance
I tried and all the files including cu disapeared.
Sorry for this non technical answer.
Last edited by Katryne (2025-06-25 16:19:44)
Offline
Hi Katryne!
Thanks for reminding me these could be deleted via the admin page (I was about to write a script). I guess I'll start with that and then monitor to see if/when they come back. Sounds like it's Piwigo creating the "custom" resizes for the different screen sizes (like mobile devices) as you mentioned.
Offline