Open edemaine opened 4 years ago
It might be even better if I can paste clipboard image, then I don't even need to save a screenshot. I think we often take screenshot and annotate.
This would also enable students working on a desktop computer without tablet capabilities to share pictures of their handwritten work. It would be awesome if we could get image sharing soon!
@kmcliff Coauthor is designed for that kind of image uploading in a group (as are other tools). You might consider using it instead?
Cocreate is really about being able to draw, e.g., to annotate on top of a picture.
PR #142 allows for pasting PNG/JPG (and text) from the clipboard, which gets rendered as an
For those following this issue, I just implemented and deployed #144 which is a sort of workaround for this; it allows embedding arbitrary images (SVG/PNG/JPG/etc.) from another image host, such as Imgur (PNG/JPG only) or Coauthor or your website or really any website. This lets Cocreate use arbitrary images without taxing the server's disk space, until we figure out a good account/quota system.
I tried this, and it works nicely on Chrome - but on Firefox I am running into CORS restrictions.
@loleg Could you please open a new issue that is more specific? What image are you trying to embed, and what error do you get on Firefox, in what situations?
This would enable e.g. coloring books and grid paper (as a quick-hack alternative to #21).
SVG import should actually be really easy to implement, provided the file fits within one BSON document, which is 16MB so probably all we really need/want. A new type of object
svg
(at the level ofpen
), which just renders as is. We'll quickly want the ability to move it, and possibly scale it, via #17.Once we have SVGs, images (PNG/JPG) would not be much harder -- just need to wrap in
<image>
tags.