The MediaManager widget currently uses custom thumbnail generation logic implemented in generateThumbnail() and related path generation methods to generate the thumbnails for the media library items.
This causes the following problems:
- Generating thumbnails is only possible on deployments with active local storage (read-only filesystems cannot generate thumbnails)
- Resizing logic is unnecessarily duplicated
That logic should be revised to use the ImageResizer class as much as possible. Additionally the ImageResizer class may need to be double checked for functionality on read only filesystems.
Fixing this will improve our support for serverless deployment environments (i.e. Laravel Vapor).