Improve media library
Closed this issue · 4 comments
-
Make things POSTED to the media library get inserted in an index?
@emanuil-tolev : This seems to be the best way to do the ones below e.g. metadata, so yes, do this.
-
Store metadata about them
-
Store where they have been used, instead of searching for the name string as currently happens, which leads to errors.
@emanuil-tolev : need to clarify this requirement. How else do you check if an image has been used except for the name string? Maybe in a tag? But then using it in Javascript won't be tracked. What errors have occurred before? Using the name with the extension (example.png) should not break anything
-
Fix so that the DELETE function works (nginx issue)
- upload with conventional "Browse" button in addition to drag and drop
- upload by url
- access to these functions directly when editing a page from the /edit template
- generate tags with alt and title attributes == metadata from the image (do not try to insert into etherpad) so that people don't have to write image tags by hand any more
- be able to search images (if metadata, description and tags are added to the images - see first comment in this thread by Mark)
- low importance modularise components so they can be used in other projects, e.g.:
- image upload via conventional box
- image upload via drag & drop
- image upload via URL
- creation of elasticsearch records with metadata for images
- image search
- generation of tags
- polling a directory for new images (if the note by @markmacgillivray is ever implemented, see comment below)
@markmacgillivray does not have any requirements wrt the media library. However, noted that originally the idea was to let less tech-savvy people build their websites using this, as it could simply read in files from a folder, and that could be synced to a dropbox account or similar. We don't have a clear use case for this, so this will not be done now until such a use case appears.
- add ability to poll a directory for images and create relevant elasticsearch records with empty metadata (or read the EXIF) (relevant only after adding metadata to images and all of them having elasticsearch records)
- In the media library index, rather than display a list of filenames, a small thumbnail of the image/pdf/word file etc would be more useful
@emanuil-tolev would like:
- resize previews to user's screen - 100 pixels if bigger. Scale with the W/H ratio of course.
- show previews in centre of user's screen - right now previews will display down and right of the mouse cursor, so hovering over a link anywhere in the lower half of the screen makes a large part of the preview invisible (visually cropped)