Skip to content
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

Image shape + tool #33

Open
ashwinshres opened this issue Sep 6, 2019 · 2 comments
Open

Image shape + tool #33

ashwinshres opened this issue Sep 6, 2019 · 2 comments

Comments

@ashwinshres
Copy link

Can we give support for image addition as a shape layer just like any other drawing tool?

@stevelandeyasana stevelandeyasana changed the title Support of image addition like any other drawing tool Image shape + tool Sep 14, 2019
@stevelandeyasana
Copy link
Collaborator

This is possible and a PR would be welcome. There is one challenge: images can't be serialized in a self-contained way the same way as other shapes. Images should probably be stored by URL rather than bitmap data to avoid exploding the JSON blob size. This introduces a question of whether remote URLs should be supported—if so, there are also UI considerations to think about.

If you're only working with local file URLs, it should be roughly as complex as the rectangle shape + tool. Though from my experience writing drawing libraries, the very first GitHub issue opened after releasing that tool will be to request remote images. :-)

@ashwinshres
Copy link
Author

ashwinshres commented Sep 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants