Skip to content

Use new Makepad support for more image formats, fix rotation, show SVGs as images#913

Merged
kevinaboos merged 3 commits into
project-robius:mainfrom
kevinaboos:image_format_viewer_fixes
Jun 7, 2026
Merged

Use new Makepad support for more image formats, fix rotation, show SVGs as images#913
kevinaboos merged 3 commits into
project-robius:mainfrom
kevinaboos:image_format_viewer_fixes

Conversation

@kevinaboos

@kevinaboos kevinaboos commented Jun 6, 2026

Copy link
Copy Markdown
Member

We can now display png, jpg, gif, webp, bmp, ico, qoi, svg, which covers the vast majority of image formats encountered in the wild in Matrix rooms. Note that we already had SVG support,ngs like icons, it just wasn't included in the main Image widget.

My changes to makepad make it easy to auto-detect and load any image format, so there's no need for complex PNG- or JPG-specific code with fallbacks. All of that's been moved into makepad's Image widget.

Fix the ImageViewer to support SVGs, and fix its image rotation for images that don't have a square aspec ratio, with a neat little animation.

Plus, now we don't need the dependency on the big image crate.

…Gs as images

We can now display png, jpg, gif, webp, bmp, ico, qoi, svg, which covers the
vast majority of image formats encountered in the wild in Matrix rooms.
Note that we already had SVG support,ngs like icons, it just wasn't included
in the main `Image` widget.

My changes to makepad make it easy to auto-detect and load any image format,
so there's no need for complex PNG- or JPG-specific code with fallbacks.
All of that's been moved into makepad's Image widget.

Fix the ImageViewer to support SVGs, and fix its image rotation for images
that don't have a square aspec ratio, with a neat little animation.

Plus, now we don't need the dependency on the big `image` crate.
@kevinaboos kevinaboos changed the title Use new Makepad support for more image formats, fix rotation, show SV… Use new Makepad support for more image formats, fix rotation, show SVGs as images Jun 6, 2026
@kevinaboos kevinaboos marked this pull request as ready for review June 7, 2026 17:46
@kevinaboos kevinaboos merged commit 83e897a into project-robius:main Jun 7, 2026
11 checks passed
@kevinaboos kevinaboos deleted the image_format_viewer_fixes branch June 7, 2026 19:51
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.

1 participant