pixelfed icon indicating copy to clipboard operation
pixelfed copied to clipboard

generate gif thumbnail

Open eufelipemateus opened this issue 7 months ago • 0 comments

Description

This PR adds an asynchronous Job that automatically generates a thumbnail for GIF files.

✅ This enhancement resolves an issue where certain parts of the system could not properly display GIF content due to the lack of a preview thumbnail.

Fixed issues:

  • #6021: Legacy UI failed to render GIF content correctly.
  • Admin panel: Media list showed raw GIFs without preview thumbnails.

With this Job, GIFs will now automatically have a static preview image, ensuring:

  • Better compatibility.
  • Improved system performance.
  • More consistent user experience.

Summary of changes:

  • Added new Job for GIF thumbnail generation.
  • Uses pbmedia/laravel-ffmpeg for frame extraction.
  • Automatically updates the media model with thumbnail_path.

eufelipemateus avatar Jun 05 '25 01:06 eufelipemateus