Skip to content

Commit 59fbbb8

Browse files
authored
Fix jpeg returning None for image_height_width_channels (#3885)
### What Small mistake (maybe merge error) that slipped into #3541 before: ![image](https://github.com/rerun-io/rerun/assets/1220815/0d3e94d7-6a8d-4171-9ddf-4924f61ce5a1) After: <img width="488" alt="image" src="https://github.com/rerun-io/rerun/assets/1220815/00cb7c3f-46be-437d-b4ec-d67e7ee5819b"> (actually curious it says depth 4 here; that must be a bug on the logging side though. Same behavior [as before](https://demo.rerun.io/pr/3838/examples/structure_from_motion/)!) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/3885) (if applicable) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/3885) - [Docs preview](https://rerun.io/preview/d99315e47a273c4dfef158a34fc806005c2f51e8/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/d99315e47a273c4dfef158a34fc806005c2f51e8/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
1 parent bc3de3f commit 59fbbb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/re_types/src/datatypes/tensor_data_ext.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ impl TensorData {
5555
_ => None,
5656
}
5757
}
58-
TensorBuffer::U8(_)
58+
TensorBuffer::Jpeg(_)
59+
| TensorBuffer::U8(_)
5960
| TensorBuffer::U16(_)
6061
| TensorBuffer::U32(_)
6162
| TensorBuffer::U64(_)
@@ -89,7 +90,6 @@ impl TensorData {
8990
_ => None,
9091
}
9192
}
92-
TensorBuffer::Jpeg(_) => None,
9393
}
9494
}
9595

0 commit comments

Comments
 (0)