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

Add toggle to fit raw image (on by default) #1633

Merged
merged 1 commit into from
May 2, 2024
Merged

Add toggle to fit raw image (on by default) #1633

merged 1 commit into from
May 2, 2024

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented May 2, 2024

Fix #1630

I add a toggle button to the Raw visualization toolbar and a (persisted) config store to hold the state. The button is toggled on by default. When the dataset isn't a binary image, the button is disabled.

I chose to create a separate visualization component called RawImageVis to deal specifically with JPEG/PNG images; it's the RawVisContainer that now decides which visualization component to use.

fit-raw-image

@axelboc axelboc requested a review from loichuder May 2, 2024 14:29
Copy link
Member

@loichuder loichuder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it ! Both in the code and in the UI !

@axelboc axelboc merged commit 5e51b1d into main May 2, 2024
8 checks passed
@axelboc axelboc deleted the fit-raw branch May 2, 2024 14:41
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.

Allow fitting Raw Image to window size
2 participants