Skip to content

[MediaManager]: Switch to using the ImageResizer class to generate thumbnails #437

@LukeTowers

Description

@LukeTowers

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions