Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Service #131

Open
atinux opened this issue Jun 3, 2024 — with Volta.net · 4 comments · May be fixed by #305
Open

Image Service #131

atinux opened this issue Jun 3, 2024 — with Volta.net · 4 comments · May be fixed by #305
Labels
enhancement New feature or request

Comments

Copy link
Contributor

atinux commented Jun 3, 2024

I would like to explore the possibility of serving (/_hub/images/**) as well a transforming them using photon.

The transformers could follow the same convention as Cloudflare Images (https://developers.cloudflare.com/images/transform-images/transform-via-url/) (see Nuxt Image transformer)

Later we could have a Nuxt Image nuxthub provider (which will be the default with @nuxthub/core and hub.images = true)

We may want to also give the possibility to store the transformed image inside the blobs, this could be achieved by using some options inside the hub.images key.

We need also a way to prevent abuse by whitelisting the authorized transformations?

hub: {
  images: {
    transformers: [
      { width: 30, height: 60 },
      { width: 120, height: 360 }
    ]
  }
}

It will also resolves #126

@atinux atinux added the enhancement New feature or request label Jun 3, 2024 — with Volta.net
@zacwebb
Copy link
Contributor

zacwebb commented Jun 4, 2024

This would be great – currently just uploading images directly to cloudflare via their API for a project so would nice to be able to have this work locally and through nuxthub in prod 🔥

@MineDrum
Copy link

MineDrum commented Sep 5, 2024

Is there a possibility of giving this some priority? I think NuxtHub could really go to the next level if we could get integration with Pruvious as a CMS. This has the potential of being the next WordPress in my opinion. (Maybe that's a bit dramatic, I would just really love to see both of these projects flourish)

@atinux
Copy link
Contributor Author

atinux commented Sep 5, 2024

I agree, it can be the next Wordpress on the Edge.

We are collaborating with @murisceman to make it happen, just have to be patient :)

@atinux atinux mentioned this issue Sep 9, 2024
@farnabaz farnabaz linked a pull request Oct 2, 2024 that will close this issue
@RihanArfan
Copy link
Contributor

Cloudflare Images became free for 5000 unique image transformations per month on Builder Week 2024, and it can be configured with Nuxt Image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants