Why I built and open-sourced the Eagle Image Optimization API
Nico Bistolfi
Head of Engineering | Product Oriented Leader | Architecting Scalable SaaS Platforms
Images are essential to any website, and my motivation on building this open-source image optimization api is to enable everyone to give a better experience to their users. Having previously co-founded an Web Performance and Image Optimization company, I understand very well how these solutions might become unreachable and out of price for many.
An Open-source Image Optimization API levels the field, regardless of budget or technical expertise. I'm hoping this fosters innovation and experimentation, leading to a diverse landscape of solutions tailored to specific needs.
The benefits of optimizing images using Eagle Image Optimization API
Where to find Eagle Image Optimization API
The project is hosted on Github and can be found here with a detailed README on how to deploy it to AWS using the Serverless Framework.
How to use it
The API is very simple to use and it leverages query parameters to modify the image. Here's a list of the basic available parameters:
* More advanced parameters can be found in the README file.
A sample URL would look like this:
{{API_ENDPOINT}}/api/v1/image?width=400&height=400&fit=contain&url={{IMAGE_URL}}
Example of an image optimized using the API:
领英推荐
https://d3kbkk2pyl9ybg.cloudfront.net/api/v1/image?width=200&height=200&url=https%3A%2F%2Feagle-image-test.s3.us-west-1.amazonaws.com%2Fpublic%2Feagle.jpeg
Deploying to AWS
To deploy the API to AWS you can use the Serverless Framework. Once you have the Serverless Framework installed and you've configured your .env file with the settings you want to use for the API, you can deploy the API by running the following command:
serverless deploy --stage production
This will create a new CloudFormation stack in your AWS account and deploy the API.
? ProTip: If you fork the repo you can deploy to AWS using github actions.
Let's Collaborate
The Eagle Image Optimization API is a powerful tool designed to democratize access to high-quality image optimization, making it accessible to everyone, regardless of their budget or technical expertise. By leveraging the open-source community, we're creating a sustainable, collaborative environment that fosters innovation and continuous improvement.
If you're passionate about optimizing web experiences or simply need a robust solution for your project, I encourage you to explore the API, contribute to the project, and share your feedback. The more we collaborate, the better we can make this tool for everyone.
I’m always open to connecting with fellow developers, entrepreneurs, or anyone interested in web performance. If you have any questions, need help deploying the API, or just want to chat about the project, feel free to reach out. You can ping me anytime—I'd love to hear from you!
Let’s build a faster, more accessible web together!
International Consultant. Management of Technology. Innovation. Managing Director at Mordezki & Asociados (7k)
1 个月Qué grande Nico!!!!!!!