unclecheese / silverstripe-kickassets

KickAssets module for asset management in SilverStripe 3
GNU General Public License v2.0
47 stars 22 forks source link

feature request: display of filename including extension under previews #52

Open Friksel opened 8 years ago

Friksel commented 8 years ago

Would it be possible to also show filenames with extensions under the preview-blocks / in the list? Then you can more easily spot filetypes, like SVGs (or other unknown fileformats?) without thinking something went wrong with the previews or (especially svg-)files were not uploaded correctly. Now you have to click on the preview everytime. An SVG-icon would also help. But that's maybe a missing icon in the framework? It could be just me, but I always feel like a blind man without seeing extensions....

jonom commented 7 years ago

Does appear no SVG extension is included, so you get a broken img icon in browser. Maybe should do a check to see if image icon exists and fallback to generic icon if not? Or do away with custom file icons and just have a generic icon overlaid with a CSS based label that shows the file type. Colour could be different depending on extension perhaps.

Additionally, the module attempts to fetch a resampled thumbnail for SVG files which ain't gonna happen :)