dwyl / dwyl/imgup

Feat: Dynamic Image Resizing

Open
#99 16 comments 0 reactions 0 assignees View on GitHub
discuss documentation enhancement help wanted priority-2 T4h technical
Dominant language
Elixir
Stars
108
Forks
20
Avg merge
21h 46m
Merged PRs (30d)
4

Description

At present we have **_single_ size image resizing**: [7. Resizing/compressing files](https://github.com/dwyl/imgup/tree/66a8e0fbbce86b94cfdc28e8e1187826290ecb6e#7-resizingcompressing-files)
This is a very good starting point, 👍
but it sets and **_artificial_ constraint**
that ends up looking "meh" on _most_ devices.

![ginger-compressed](https://github.com/dwyl/imgup/assets/194400/7e67e268-0aad-4ed4-a774-98e23c3b2da5)

image

# Story

**As a `person` using multiple devices** to view the `App` - that features `image` content -
**I want** `images` to conform to the device/screen size
**So _that_** they always look their best.

As noted in https://github.com/dwyl/imgup/issues/91 our friend has created https://github.com/jupiter/rust-image-worker
which appears to be well-documented and tested and runs on `Cloudflare` with `CDN` caching. 🏎️
While it _currently_ does not have support for certain formats https://github.com/jupiter/rust-image-worker/issues/3
But the underlying library _does_ support `GIF` and `Webp`: https://docs.rs/image/latest/image/enum.ImageFormat.html#variant.Gif

# Todo

+ [ ] Follow the deployment instructions in the repo: https://github.com/jupiter/rust-image-worker#how-to-use
+ [ ] Create a new file to document _our_ setup/deployment in _even _more detail: `dynamic-resizing.md`
+ [ ] **Bonus Level**: Create Pull Request _extending_ the image support: https://github.com/jupiter/rust-image-worker/issues/3#issuecomment-1635583690

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.