The schedule task Image Size Check lets you select the image folders to process. It is hard coded to /images as the parent and you can select a subfolder.
The plugin should not be hard coded to the images folder but should support the folder defined in the plugin Filessystem-Local
path to images should always respect the settings in the plugin and not be hardcoded anywhere
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Feature
|
Backward-Compatible Solution Proposal: Dynamic Filesystem Root Support for
To enhance flexibility without breaking existing functionality, I propose an update to the field that optionally supports dynamic filesystem roots.
Implementation:
directory
attribute to accept a value like @filesystem:adapter
, e.g. @filesystem:local
@filesystem:
is detected, resolve the adapter name and fetch the root_folder
or repeatable directories
param from the pluginimages
What Stays the Same:
directory="images"
or any static folder is provided, existing logic remains unchangedBenefits:
I'm happy to contribute the updated getOptions()
method or submit a patch. Let me know if this can be considered for core inclusion.
@brianteeman review above solution. Happy to contribute!
Folder or folders (there might be multiple).