-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversion file names #1636
Comments
I think #1686 is related to this as well. One case that I would add is that we might want to secure some of the files. Having a way to fully customize paths to conversions (including disk, path and filename) would be helpful. |
I'll take a look at this when creating a new major version of the package. |
Conversion file namers have been implemented in |
Currently after conversion names are generated with this scheme:
source:
https://github.com/spatie/laravel-medialibrary/blob/master/src/Conversion/Conversion.php
where getName() is conversion name like 'thumb'.
output is: originalName-thumb.jpg
Question: Is it possible to get custom file names for conversions without name inside or use subfolders for each conversion and keep the original name of file? Maybe is it possible to create inferface similar to PathGenerator for setting up: https://docs.spatie.be/laravel-medialibrary/v7/advanced-usage/using-a-custom-directory-structure/#using-a-custom-directory-structure ?
example:
1/conversions/thumb/originalName.jpg
1/conversions/thumb/originalName.webp
1/conversions/desktop/originalName.jpg
1/conversions/desktop/originalName.webp
The text was updated successfully, but these errors were encountered: