What's Changed
Features
- New
gallery-json-media:cleancommand: deletes the thumbnails whose image is missing and, for the models declared in the newmaintenance.modelsconfig, the files that no record uses, with their thumbnails--dry-runlists the files to delete,--forcedeletes them without confirmation,--diskchooses the disks- never touches a file outside the
root_directory, and the soft deleted records keep their files
- New
gallery-json-media:regeneratecommand: renders every existing thumbnail again from its image, with the same size and format, after a change ofqualityor ofdriver
Other
- The empty
filament-json-mediacommand is removed
Upgrade notes
- To clean the files no record uses, declare the json media fields of your models in
maintenance.models. Declare all of them: the other files of theroot_directoryare deleted
Full Changelog: v5.3.0...v5.4.0