We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
By default, ImageBlocks take up the entire width of the page. If you have a small image, this can look terrible.
You can set the dimensions of an image by setting its width, like so:
image_block = row.children.add_new(ImageBlock) image_block.width = 250
Notion will automatically scale the height to keep the aspect ratio.
Be sure to set the size after uploading an image:
image_block = row.children.add_new(ImageBlock) image_block.upload_file(f) image_block.width = 250
Mostly making an issue because I couldn't find the information in this repo. Hopefully this helps someone else.
The text was updated successfully, but these errors were encountered:
Thank you!
Sorry, something went wrong.
No branches or pull requests
By default, ImageBlocks take up the entire width of the page. If you have a small image, this can look terrible.
You can set the dimensions of an image by setting its width, like so:
Notion will automatically scale the height to keep the aspect ratio.
Be sure to set the size after uploading an image:
Mostly making an issue because I couldn't find the information in this repo. Hopefully this helps someone else.
The text was updated successfully, but these errors were encountered: