Auto-set content type based on camera mode (v0.2.5b3)
Pre-release
Pre-release
-
Added automatic content type selection in _convert_to_binary():
- MAP_VIEW mode → JPEG format (optimized for map images)
- OBSTACLE_VIEW mode → PNG format (preserves obstacle details)
-
Implementation is library-safe:
- Works with CameraModes constants (CameraModes.MAP_VIEW)
- Works with direct string values ("map_view")
- Added CameraModes to utils.py imports
-
Version bump: 0.2.5b2 → 0.2.5b3
- Updated pyproject.toml
- Updated init.py
Quality checks:
- Ruff: All checks passed!
- isort: All imports properly sorted
- Pylint: 9.98/10 (no new issues)
Full Changelog: v0.2.5b2...v0.2.5b3