Issue #2216šŸ’¬ AnsweredOpened August 24, 2019by benvmatheson0 reactions

Automatic resizing for oversized images

Quick answerby MatthewMariner

Ben how did you fix this?

Read full answer below ↓

Question

If I drop an image that's larger than the canvas, then double click the top left anchor, the width is adjusted to the size of the canvas. Is there a way to programmatically call the same funciton, or would this need to be manually done in a listener? Is it also possible to fit to height as well, instead of just width?

Answers (2)

MatthewMariner• February 5, 2020

Ben how did you fix this?

benvmatheson• February 5, 2020

@MatthewMariner I just had it add a max-width the size of the canvas. Wasn't able to figure out a better solution.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.