rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
1.95k stars 69 forks source link

Add Image infrastructure #127

Open mad-moo opened 3 months ago

mad-moo commented 3 months ago

Rio already comes with infrastructure to handle assets. They're hosted for as long as they're needed, and released once all references have been dropped. This infrastracture also currently handles images.

This works, but there is some good reasons to handle images separately:

Long story short, this would make Rio faster, and also save users from having to know which formats are suited for what type of content.

Sn3llius commented 3 months ago

I like the idea! We should also include Better Image Sizing (#65) in our discussion, as we'll need to address the aspect ratio anyway.