Skip to content

refactor(image): expose constructor, unify size getters#9179

Merged
lucasfernog merged 4 commits into
devfrom
refactor/image-constructor-and-size
Mar 14, 2024
Merged

refactor(image): expose constructor, unify size getters#9179
lucasfernog merged 4 commits into
devfrom
refactor/image-constructor-and-size

Conversation

@lucasfernog
Copy link
Copy Markdown
Member

  • Expose Image JS constructor for internal use (when a plugin returns a resource id for instance)
  • Added Image::size() instead of Image::width() and Image::height() (1 IPC call instead of 2 - usually you want both width and height)

@lucasfernog lucasfernog requested a review from a team as a code owner March 13, 2024 15:23
Comment thread .changes/image-size-refactor.md Outdated
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
@lucasfernog lucasfernog merged commit ea0242d into dev Mar 14, 2024
@lucasfernog lucasfernog deleted the refactor/image-constructor-and-size branch March 14, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants