Skip to content

Large embedded <image>s are shrunk #58

Open
@towerofnix

Description

@towerofnix

Expected Behavior

The embedded image should be the correct (original) size:

A crop of the Wings of Fire map of Pyrrhia; some is cut off around the edges of the 2.0 paint editor

Actual Behavior

The embedded image is shrunk:

The 3.0 paint editor, showing that the entire map embedded previously, shrunk to fit about 75% of the stage size

Steps to Reproduce

  • Create an SVG embedding a large <image> in it. (This is a niche trick for embedding bitmap images that are larger than the stage.)
  • Compare the appearance of the SVG in Scratch 2.0 and 3.0.

I've created a demo project here (3.0, 2.0).

I spotted this issue while testing this project in 3.0: https://scratch.mit.edu/projects/116498519/

Operating System and Browser

Chrome 70.0.3538.77 and Firefox 63.0.1, macOS 10.13.6.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions