elm-designer
elm-designer copied to clipboard
Media library
Add a media library to the UI so user can see and select again every document image.
We can add a "Media" tab right where the element library currently is and list all used images there. Once located the user could drop the image again on the document.
Features
- The UI should show a list of image thumbnails with image dimensions on the right, perhaps together with the original image name
- When dragged on a page an image should be copied into the document, so one can apply different padding, borders, cropping, etc. for the same image.
Nice-to-have features
- Allow to drop images directly on the media library
- Background images are used in the document too, so user expects to find them in the media library. This somewhat is linked to issue #39
Implementation
Once loaded to the document an image is added to the media library. The library could be a dictionary or a similar structure that is serialized together with the document.
If an image is deleted from the document it still remains in the library, ready to be added back later.