Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picture needs to support resizing method. #148

Closed
hermet opened this issue Nov 26, 2020 · 1 comment
Closed

Picture needs to support resizing method. #148

hermet opened this issue Nov 26, 2020 · 1 comment
Labels
enhancement Improve features

Comments

@hermet
Copy link
Member

hermet commented Nov 26, 2020

Svg has a preserveAspectRatio option.
User might need to resize picture based on this option.
What is the best interface for this?

  1. picture->viewbox(0, 0, w, h);
  2. picture->size(w, h);
  3. picture->transform(?) + return picture->aspectRatio();?
@hermet hermet added the enhancement Improve features label Nov 26, 2020
@hermet
Copy link
Member Author

hermet commented Nov 26, 2020

picture->size(w, h);
picture->size(&w, &h);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve features
Projects
None yet
Development

No branches or pull requests

2 participants