Git Product home page Git Product logo

Comments (3)

nelsonic avatar nelsonic commented on July 3, 2024 1

Long time friend @jupiter 🪐 created https://github.com/jupiter/rust-image-worker a few years back. ⭐
The demo still works: https://factorymethod.uk/image.png?mode=fill&width=400&height=400&origin=http://factorymethod.uk/Apollo_17.jpeg

400px:
earth 400px

40px:
earth 40px

This looks like a very good starting point for what we want in terms of dynamic (URL param) re-sizing. 🎉

from imgup.

LuchoTurtle avatar LuchoTurtle commented on July 3, 2024

For URL param re-sizing, I've found https://dev.to/horaceshmorace/an-open-source-and-completely-serverless-image-resizing-service-in-aws-589b (with an accompanying https://github.com/HoraceShmorace/Image-Flex repo) for image re-sizing on AWS (what we're using).

It might entail a revamp of what we have and discarding essentially our resizing lambda function, compressed bucket and a few other services.

However:

While Image-Flex allows you to indicate a region to use other than us-east-1, CloudFront requires us-east-1. Until I figure out a workaround, don't attempt to deploy in any region other than us-east-1.

from imgup.

nelsonic avatar nelsonic commented on July 3, 2024

Consider the following image:
https://world-celebs.com/public/media/resize/800x-/2019/8/5/porter-robinson-3.jpg
porter

We can resize it dynamically without owning/hosting it:
https://factorymethod.uk/image.png?mode=fill&width=200&height=200&origin=https://world-celebs.com/public/media/resize/800x-/2019/8/5/porter-robinson-3.jpg

porter-200

porter-100

porter-50

porter-25

porter-10

The only drawback I can see is that it doesn't yet work for GIF or webp as per: jupiter/rust-image-worker#3
But this is preferable to being forced to use the us-east-1 AWS region and then having to get consent from people in the EU because of GDPR ... 🙃
I would much rather use Cloudflare than AWS.

Full disclosure: 2% of my holdings are Cloudflare (NYSE: NET 📈
We know a few people that work there and love the work they're doing! 😍
Not saying AWS, S3 and Lambda are "bad", they are "fine". 👌
Oh and Jeff is more than rich enough already! 🤑

But this is definitely side-tracking and we should discuss implementation of "advanced" resizing in a dedicated issue rather than this EPIC. 💭

Did you have any further thoughts on any of the items in the list above?

from imgup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.