Canvas: Images are not enlarged beyond their base resolution

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  1. Open any Obsidian Vault
  2. Create\open Canvas
  3. Insert an image into the Canvas
  4. Start to scale it up

Did you follow the troubleshooting guide? [Y/N]

YES!

Expected result

Image should be scaled up as far as user continues to scale it

Actual result

Image is scaled only until its real size in pixels.
Then it stops scaling up and only solid black\white color is starting to fill new extra space of the node

Environment

Windows 10 Pro


Additional information

For example, I inserted image of logo of Obsidian into the Canvas.
Then I started to scale it up.
In the past (for example, 1 month ago) everything worked fine.
And right now there is no extra scaling - there is only solid color inside new extra space of the node.

I can’t reproduce.

What is the output of show debug info command?

I think I managed to reproduce.

The images are not corrupted they just are not maximized beyond a certain point

1 Like

will be fixed v1.13.0. ETA unknown.

2 Likes

Thank you for identifying the problem quickly. I just wanted to say that I’m a heavy Canvas user and now so many images in my vaults have this issue. I am eagerly waiting for a fix. Thank you

1 Like

WhiteNoise, thank you for your help!

You can solve the problem with this CSS code.

.canvas-node img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.canvas-node .canvas-node-content {
  padding: 0 !important;
  overflow: hidden !important;
}