Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve the file preview in the media manager #14321
Improve the file preview in the media manager by improving the quality of the "No Preview Available" image and make it translatable and/or use actual images matching the file type.
Why is it needed?
Because all non-image files show the "No Preview Available" image it's hard for users to distinguish files. The Media Browser is not used only to browse images but also other kind of files.
One thing that needs to be done is to improve the quality of the image itself by creating a higher resolution image.
To make it translatable we can:
To better distinguish the different file types I propose to add preview images corresponding the file type. Like a PHP icon for php files, PDF icon for PDF files etc etc.
@JoshuaLuckers Why did you refuse the option with the icon? In my opinion, this is the simplest and most universal solution.
If the Media Browser will open different files in the preview window, then yes, it would be helpful to see the icon with the file type (php, jpg, txt, etc.), but if the view is not available, then the icon with the type is not needed.
The icon is already in Font Awesome, just need replace the image tag with an icon tag, for example:
Or another suitable icon - https://fontawesome.com/icons?d=gallery&m=free