Giter VIP home page Giter VIP logo

proxy-resizer's Introduction

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

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

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

 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

 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

docker-compose up -d

*Service will be launched by default on port 8080

proxy-resizer's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

cc08

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.