-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import images #19
Comments
How about in the interim we support insertion from URL? |
From UX perspective, you should be able to:
|
Seems like we should also be able to crop the image with a shape or upload it as a shape's fill, but that may be better left for a new issue. |
Persistence could be done as base64 encoded json values |
Keep in mind that we still store to Maybe we should investigate using different storage (IndexedDB...), soon. |
Perhaps the implementations should be every image blob a key on localstorage and only store on the file the reference to the item. Others are doing these, (thought kibana) |
We could upload the images in an encrypted manner to |
What about downloading the file? |
Download a zip maybe? |
This comment has been minimized.
This comment has been minimized.
How about getting a non-profit license from a hosting service? I've used Cloudinary in the past. cc @vjeux |
Yeah, I’d rather not we use random third party to host user content. We already have a way to store end to end encrypted blobs with json.excalidraw.com |
I've worked on this for a couple of hours and found it fairly simple to add a new component so that's kudos to neat code. I noticed then however there's PR #1589 which is also implementing this, so will pivot to help that progress. |
is there any progress on this issue? |
Not at this moment.
|
+1 |
@o0O-ds-O0o note that anyone can support the project at any time from https://opencollective.com/excalidraw |
Any tentative date on when this feature will be released? |
Check the PR mentioned above. |
Any updates on this issue? The PR referenced is a POC and hasn't had any activity in 2021. |
Wrong PR. This one is active: #3424. Will get back to it in a few days. Latest preview: https://excalidraw-9im2ruy53-excalidraw.vercel.app/ |
Looks like the active PR might now be #4011! Preview: https://excalidraw-git-imagesupport-excalidraw.vercel.app/ Yal are amazing <3 |
Thanks for sharing and congratulations! I'm using this preview version to my needs and sounds very functional to me. I hope to get this version officially in main excalidraw =D |
Seems like it breaks any images added when doing a scene export and re-import. Is this a known issue in this PR ? |
While this PR is being worked on. For my IntelliJ IDEA Excalidraw integration plugin I copied internal code to support image export / import as suggested by (although I am currently using version 0.8). Eg (along with a few other files, like https://github.com/bric3/excalidraw-jetbrains-plugin/blob/main/excalidraw-assets/src/image.ts This is definitely a workaround but it's working. |
@pseudonator Are you trying the latest preview? https://excalidraw-cxhuxg4g9-excalidraw.vercel.app/ Anyway, we're releasing soon, very soon. |
It seems to be released on excalidraw.com allright. However it is not yet in the stable https://codesandbox.io/s/excalidraw-forked-95wx0 Do you have a rough timeline when you will release the next version of stable |
We need to finalise few API's so probably by end next month we will be shipping the next release |
Would it be possible for this to support PDFs as well? |
@gohma231 what do you mean? If you convert the pdf file to an image then you can use it. If you have something else in mind, please create an issue and elaborate on it. |
I'd love to get started on PDF annotations via. Excalidraw. |
would love to be able to crop images. |
is it possible to load the pdf file in excalidraw so that i can read and annotate texts or pictures in pdf via excalidraw and automatically (or manually) generate elements in canvas of excalidraw? what inspired me is an app called guga compatible only with ipad currently, and since that app is similar to excalidraw in terms of a whiteboard, excalidraw can work better with obsidian if some functions(especially with pdf) can be realized. |
@wutsminame you can: |
Just in case someone wants to work on this, the implementation should have these attributes:
Technical
elements
array, but live in a separate data structure (likely inappState.images
).{type: "image"}
or something) that will live inelements
— this element will be used for manipulation, and act as a normal element would.elements
array should be synced freely as we normally do with other elements.The image source should be compressed (usingEDIT: gzipping the image will actually offer almost no benefits, so let's not do that. But we'll want to serialize to binary string instead of base64 (which is inefficient). But we may also consider lossy compression (thus encode as JPG).pako
zlib library we're already using for something else) before syncing/storing to database. Note, we're talking about a lossless compression, butUI
The text was updated successfully, but these errors were encountered: