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

Question: Does quip.apps.ui.Image provide resizing capabilities? #34

Open
timothy-law opened this issue Jan 21, 2019 · 0 comments
Open

Comments

@timothy-law
Copy link

I'm trying to create a custom live app that utilizes images. I've got images uploading and rendering via the quip.apps.ImageRecord type (using its chooseFile() function). However, a number of questions:

  1. How do I detect the size of the image? I tried imageRecord.getOriginalImageWidth() in the render() of my component, but that returns null.

  2. Per the issue title, do I need to implement my own resizing functionality, or, is this provided by quip.apps.ui.Image? If so, how do I use this? In the documentation I see onEditingModeChanged and onResizingModeChanged, but how do I actually get into editing/resizing mode?

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

No branches or pull requests

1 participant