Skip to content

Image memory usage regression #2652

@marlenecota

Description

@marlenecota

If an Image's width and height have been set, then we can presumably set the desiredMaxSize of the LoadedImageSurface when loading the resource.

Caveats:

  • maxWidth and maxHeight take priority
  • (max)Width and (max)Height have to be constants. If they're using a % and then resize the window to make it bigger, then the image wouldn't grow.
  • Do both values (width and height) have to be set? I think that if only one of the values in the pair has been set, we can do this: StartLoadFromStream(stream, {width, 0}) and get what we want.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions