https://github.com/lemax10/proxy-resizer
Simple proxy converter and resizer
https://github.com/lemax10/proxy-resizer
converter image-converter optimization resizer resizer-image slim-framework webp
Last synced: 3 months ago
JSON representation
Simple proxy converter and resizer
- Host: GitHub
- URL: https://github.com/lemax10/proxy-resizer
- Owner: LeMaX10
- Created: 2020-02-12T17:30:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T19:27:15.000Z (over 2 years ago)
- Last Synced: 2025-01-21T05:07:12.036Z (9 months ago)
- Topics: converter, image-converter, optimization, resizer, resizer-image, slim-framework, webp
- Language: PHP
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image service
This is a simple service for proxying external images for the purpose of subsequent optimization or conversion.## Resize image
The service allows you to change the aspect ratio of the image by transferring the mode and size
```curl
http://example.com/?image={imageURL}&mode=resize&width=150&height=150
```Parameters width or height optional.
## Crop image
The service allows you to crop the image indicating the aspect ratio of the image
```curl
http://example.com/?image={imageURL}&mode=crop&width=150&height=150
```
Parameters width or height optional.
## Optimization image
Thanks to the package spatie/image-optimizer the service optimizes the image size with minimal loss of quality
```curl
http://example.com/?image={imageURL}&optimize
```## Convert image to webp
Thanks to the package rosell-dk/webp-convert, the service has the ability to convert the image to webp format
```curl
http://example.com/?image={imageURL}&webp
```## Using
All query parameters can be used both together and optionally.The service performs actions on the image sequentially, the strategy for working with the image is determined by a set of specified parameters and request add-ons.
## Security
The service provides simple protection against unauthorized use.To be able to download images from a remote server, you must register the domain in the list of allowed in the file security.php
## Fast Start
The service has a simple configuration for quick deployment. To work you need a docker, docker-compose
```bash
docker-compose up -d
```
*Service will be launched by default on port 8080