Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
Hi Spatie team, I would like to suggest improving the internal logic that adds the Current behavior:
Proposed behavior:
Current workaround: You can bind a custom generator via the service container: $this->app->bind(
\Spatie\MediaLibrary\ResponsiveImages\ResponsiveImageGenerator::class,
\App\MediaLibrary\CustomResponsiveImageGenerator::class
); This allows removing the suffix from the filenames. Proposed clean solution:
Rationale:
I look forward to your feedback and am happy to discuss further. Thank you for your work on this excellent package! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I have a problem when I regenerate the image from the media library.
In addition to the regenerated responsive files in the "responsive-images" folder, other files are added that have the name "media_library_original".
and this significantly increases the size of folders.
The method that generates the files, generateResponsiveImages(), is in the class:
Spatie\MediaLibrary\ResponsiveImages\ResponsiveImageGenerator
How can you fix it? Can anyone help me?
thanks
Beta Was this translation helpful? Give feedback.
All reactions