Hypertopic / HyperGlosae

A Nelsonian hypertext infrastructure for digital humanities
11 stars 22 forks source link

Upload a picture into a document #153

Closed benel closed 3 weeks ago

benel commented 6 months ago

For now, it is possible from a document to refer to a picture in Markdown:

![Description](https://elsewhere/MyPicture)

However this picture must be already on a distant server.

The idea, for example, would be to drag and drop a picture (like in GitHub issues or discussions). It would be then stored in CouchDB as an attached file of the document chunk and a markdown reference would be automatically created in the document.

nitram35 commented 6 months ago

Cette fonctionnalité serait utile afin de visualiser des diagrammes, ceci en permettant via l'interface de les ajouter (cas utile pour IF14)

christophe-lejeune commented 6 months ago

If you rest on a library to format the documents (for instance easymde for markdown rendering), you can use it to include images into the documents. I have not tested this feature, but the documentation mentions the drag-and-drop behavior.

However, using such a library have drawbacks. AFAIK, the images will be included in documents; this will produce large documents and the database will quickly grow. That's why I have personally not enabled this feature into Cassandre.

nitram35 commented 6 months ago

Image

petitfa1 commented 4 months ago

Phase 1

petitfa1 commented 4 months ago

Image

Barnabepetit commented 4 months ago

Image

raphaelweis commented 4 months ago

Implementation strategy :

Barnabepetit commented 4 months ago

Image

nitram35 commented 3 months ago

Screencast de la fonctionnalité :

by @nitram35 & @raphaelweis

https://github.com/Hypertopic/HyperGlosae/assets/105852593/013d6f65-8eca-4407-b796-dae6e0e80b59

benel commented 3 weeks ago

Merged as 597670f27dca514e9c4f5f4f5d4288c3e53e5a25.