An open API service indexing awesome lists of open source software.

https://github.com/igorkowalczyk/image-forwarder

🦕 Deno API that takes the image from a link and transmits the data so that the end user cannot be logged by the origin server
https://github.com/igorkowalczyk/image-forwarder

deno image image-forwarder javascript typescript

Last synced: about 1 year ago
JSON representation

🦕 Deno API that takes the image from a link and transmits the data so that the end user cannot be logged by the origin server

Awesome Lists containing this project

README

          

![Image forwarder](https://github.com/IgorKowalczyk/image-forwarder/assets/49127376/7d1c53b7-55b3-4071-988b-a62c10a99c88)











---

## 🔩 Self Hosting

1. Clone [this repository](https://github.com/igorkowalczyk/image-forwarder) `git clone https://github.com/IgorKowalczyk/image-forwarder`
2. Run `deno task dev` to start the project in development mode or `deno task start` to run the project in production mode.
3. Visit `http://localhost:8080` in your browser

> [!NOTE]
> Deno will automatically install all the project packages on the first run

## 🗜️ API Usage

```http
GET https://image-forwarder.deno.dev/?url=${url}
```

| Parameter | Type | Description | Required |
| :-------- | :------- | :----------------------------------------- | :------- |
| `url` | `string` | URL to the image to forward | `true` |
| `height` | `number` | Height of the image if you want to resize | `false` |
| `width` | `number` | Width of the image if you want to resize | `false` |
| `quality` | `number` | Quality of the image if you want to resize | `false` |

> [!IMPORTANT]
> The url parameter is required and must be a valid url to an image. **Max size of the image is 10MB.**

## ⁉️ Issues

If you come across any errors or have suggestions for improvements, please create a [new issue here](https://github.com/igorkowalczyk/image-forwarder/issues) and describe it clearly.

## 📥 Pull Requests

When submitting a pull request, please follow these steps:

- Clone [this repository](https://github.com/igorkowalczyk/image-forwarder) `git clone https://github.com/IgorKowalczyk/image-forwarder.git`
- Create a branch from `main` and give it a meaningful name (e.g. `my-awesome-new-feature`).
- Open a [pull request](https://github.com/igorkowalczyk/image-forwarder/pulls) on [GitHub](https://github.com/) and clearly describe the feature or fix you are proposing.

## 📋 License

This project is licensed under the MIT. See the [LICENSE](https://github.com/igorkowalczyk/image-forwarder/blob/main/license.md) file for details