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

Added "keep image ratio" to Image plugin #543

Merged
merged 2 commits into from
Nov 17, 2017

Conversation

facontidavide
Copy link
Contributor

@facontidavide facontidavide commented Nov 16, 2017

Hi,

I believe this PR would help making the Image Plugin more usable.

  1. Added "Keep original image ratio" to the Widget. When checked, the height is automatically adjust, both in "percent" and "pixel" mode. The user should only modify the Width whilst the Height is updated accordingly.

  2. When changing the mode from "percent" to "pixel" and vice versa, the image size is preserved.

  3. To be sure that no resize is introduced in step 2), I had to change the width and height type and QSpinBox to double and QDoubleSpinBox, and percend must have 1 decimal.

Cheers

@facontidavide
Copy link
Contributor Author

https://vimeo.com/243268373

@malban malban merged commit 1ccf605 into swri-robotics:kinetic-devel Nov 17, 2017
malban pushed a commit to malban/mapviz that referenced this pull request Nov 17, 2017
@facontidavide
Copy link
Contributor Author

Does anyone at SWRI ever say "thanks for contributing"?

@malban
Copy link
Contributor

malban commented Nov 20, 2017

Some of us do at least: #539 (comment) #525 (comment)

But regardless, thanks for contributing, we appreciate it and are glad you find the tool useful.

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.

None yet

2 participants