Skip to content

Fix auto-size for 2d views with RVL encoded depth image not working#12288

Merged
Wumpf merged 2 commits intomainfrom
andreas/fix-2d-sizing-for-encoded-depth-image
Dec 19, 2025
Merged

Fix auto-size for 2d views with RVL encoded depth image not working#12288
Wumpf merged 2 commits intomainfrom
andreas/fix-2d-sizing-for-encoded-depth-image

Conversation

@Wumpf
Copy link
Copy Markdown
Member

@Wumpf Wumpf commented Dec 19, 2025

See title ;-). Bit nieche, but annoying when it hits.

@Wumpf Wumpf added 📺 re_viewer affects re_viewer itself include in changelog consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. labels Dec 19, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 19, 2025

Web viewer built successfully.

Result Commit Link Manifest
93b96ce https://rerun.io/viewer/pr/12288 +nightly +main

View image diff on kitdiff.

Note: This comment is updated whenever you push a commit.

@Wumpf Wumpf requested a review from Copilot December 19, 2025 17:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an issue where auto-sizing for 2D views was not working correctly when displaying RVL-encoded depth images. Previously, RVL-encoded depth images would return None for their dimensions, preventing proper auto-sizing behavior.

Key changes:

  • Added support for parsing RVL metadata to extract image dimensions
  • Refactored common image size reading logic into a reusable helper function
  • Added re_rvl dependency to enable RVL metadata parsing

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
crates/viewer/re_view_spatial/src/max_image_dimension_subscriber.rs Implemented RVL metadata parsing for depth images and extracted common image reading logic into read_image_size_via_image_library helper function
crates/viewer/re_view_spatial/Cargo.toml Added re_rvl dependency and reordered dependencies alphabetically

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/viewer/re_view_spatial/src/max_image_dimension_subscriber.rs Outdated
Co-authored-by: Gijs de Jong <14833076+oxkitsune@users.noreply.github.com>
@Wumpf Wumpf merged commit 9f65671 into main Dec 19, 2025
10 checks passed
@Wumpf Wumpf deleted the andreas/fix-2d-sizing-for-encoded-depth-image branch December 19, 2025 18:41
ntjohnson1 pushed a commit that referenced this pull request Dec 19, 2025
…12288)

Co-authored-by: Gijs de Jong <14833076+oxkitsune@users.noreply.github.com>
@ntjohnson1 ntjohnson1 removed the consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. label Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants