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
- Host: GitHub
- URL: https://github.com/igorkowalczyk/image-forwarder
- Owner: IgorKowalczyk
- License: mit
- Created: 2023-04-03T14:40:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T12:14:31.000Z (over 2 years ago)
- Last Synced: 2025-04-13T17:18:04.570Z (about 1 year ago)
- Topics: deno, image, image-forwarder, javascript, typescript
- Language: TypeScript
- Homepage: https://image-forwarder.deno.dev/
- Size: 69.3 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README

---
## 🔩 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