mirror of
https://git.sr.ht/~edwardloveall/scribe
synced 2026-01-10 19:54:52 +00:00
d863cc27a5bbe9368233fa95f7bc825b743a9881
Instead of getting the full size image, the image can be fetched with a width and height parameter so that only the resized data is transferred. The url looks like this: https://cdn-images-1.medium.com/fit/c/<width>/<height>/<media-id> I picked a max image width of 800px. If the image width is more than that, it scales the width down to 800, then applies that ratio to the height. If it's smaller than that, the image is displayed as the original.
scribe
This is a project written using Lucky. Enjoy!
Setting up the project
- Install required dependencies
- Update database settings in
config/database.cr - Run
script/setup - Run
lucky devto start the app
Learning Lucky
Lucky uses the Crystal programming language. You can learn about Lucky from the Lucky Guides.
Languages
Crystal
83.9%
Nix
8.6%
Shell
4.6%
JavaScript
1.4%
Dockerfile
1%
Other
0.5%