elm-designer icon indicating copy to clipboard operation
elm-designer copied to clipboard

Media library

Open passiomatic opened this issue 4 years ago • 0 comments

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.

passiomatic avatar Dec 23 '21 16:12 passiomatic