Opened 12 years ago
Last modified 7 years ago
#28750 new enhancement
Media modal: preview images
| Reported by: | iseulde | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: | administration |
Description
I'm not sure if this has been talked about before, but with FileReader we could preview images in the media modal.
https://developer.mozilla.org/en-US/docs/Web/API/FileReader
I've made a quick patch to try it, but it's far from perfect... It sometimes flickers and the reading seems to block js from executing further, so not ideal for uploading a ton of images at the same time. Still, I'm sure we can get this to work smoothly somehow.
I'll attach a screenshot. I think this would be a really cool experience. :)
Attachments (2)
Change History (4)
#2
@
11 years ago
- Focuses administration added
- Keywords needs-patch added
FileReader still has limited support http://caniuse.com/#feat=fileapi. However there's an MIT licensed plugin that could be used to bridge that gap https://github.com/MrSwitch/dropfile with a downside that it requires SilverLight
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
So cool.