πŸ”§ Step-by-step guide: Adding media dimensions in #Laravel using #SpatiePHP MediaLibrary

β€’ πŸ“Š Automatically captures width & height for images and videos using #MediaLibrary and #FFmpeg integration
β€’ πŸ”„ Implements background processing through #Laravel jobs system for better performance
β€’ πŸ’Ύ Stores dimensions as custom properties in the Media model for easy access
β€’ ⚑ Includes #PHP artisan command to process existing media files
β€’ πŸ› οΈ Features comprehensive error handling and logging system
β€’ πŸ“‹ Complete with code examples and environment configuration steps

Full tutorial: https://silvanhagen.com/writing/image-and-video-dimensions-laravel-media-library/

Add Dimensions to Image and Video Uploads in Laravel

Programmatically add Image and Video dimensions to Media items in Laravel using an Observer and a Background Job or Artisan Command

Silvan Hagen