Comments (5)
Instead of using R2 to store images, why not just use Cloudflare Images, https://developers.cloudflare.com/images/. This will automatically transform the images for you and offers many other image features that will greatly improve Sonicjs. I don't know why anyone uses R2 for images actually. It's better for documents, but not images. So in your repo, when someone uploads an image from TUS just use the cloudflare images API to store there, and then you get automatic transformations out of the box. Easy to use.
from sonicjs.
✨amazing
more storyblok users & similar headless cms users will come to here 😁
from sonicjs.
sorry, i put the wrong reference url.
the right one is here https://www.storyblok.com/docs/image-service
it contains more comprehensive & demos on how storyblok generate dynamic responsive images based on url params.
from sonicjs.
I didn't even know about cf images. That is something we should be using for sure. I'll add an issue for that. Thanks for letting us know
from sonicjs.
Yeah, basically Cloudflare Images is built on top of R2 and just includes all the other features that everyone needs for images that they would have to build on their own with just R2. So you don't have to reinvent the wheel with R2 for tranformations etc., as Cloudflare has already built it. It's an amazing service. I think you can keep R2 here, but just use it for files, like PDF uploads. Images should just use Cloudflare Images as it has every thing you can possibly want for images (and backend is R2).
from sonicjs.
Related Issues (20)
- Installation Process not clear HOT 2
- Content Editor? HOT 14
- How to Secure Admin endpoint? HOT 1
- Bug in server.ts prevents this from running HOT 7
- Await updateD1Data to avoid race conditions HOT 2
- Installation Error: SonicJs Error: Error: D1_ERROR: no such table: users HOT 4
- Installation Error HOT 8
- Fix Bootstrap.js integration issue, breaking the form.io forms
- Admin UI/UX Auth Enhancements
- Integrate with Webstudio.is POC HOT 2
- Add unit tests to cover lucia (authentication - login/registration/tokens/access controls/etc) HOT 1
- Allow schema files to be edited in the browser
- Update Environment Variables Documentation HOT 1
- Fast? HOT 6
- Migrate D1 in production adjustment
- Convert tests to vitest
- Add support for Cloudflare images
- Hello World example in routing is broken HOT 1
- categoriesToPost example is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonicjs.