2017 © Pedro Peláez
 

library image-resizer

Image Resizing micro service.

image

fuzz/image-resizer

Image Resizing micro service.

  • Monday, June 4, 2018
  • by Fuzzpro
  • Repository
  • 19 Watchers
  • 19 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Fuzz Image Resizer Slack Status

A lightweight PHP image resizer, (*1)

Out of the box usage

  1. Run composer install
  2. Set up environment variables
  3. Resize your images

Setup

The image resizer is intended to live as a standalone microservice behind a CDN. The first request for a query combination http://resizer-url.com/resize/?source=http://image-source.com/images/image.jpg&height=300&width=400 will fall through to the resizer instance but any subsequent requests should be cached by the CDN., (*2)

Environment Variables

The resizer depends on a few configurable environment variables (can be loaded from a dotenv file): * ALLOWED_HOSTS - a comma separated string of whitelisted domains * CACHE_EXPIRATION_HOURS - length (in hours) to set Cache-Control with the max-age directive and Expires headers. Any CDN should obey your cache rules and cache objects appropriately. * APP_ENV - app environment, (*3)

Best Practices

In light of exploits like https://imagetragick.com/, we recommend that your implementation:, (*4)

  1. Uses the latest version of ImageMagick
  2. Follows mitigation procedures listed on https://imagetragick.com/
  3. Has severely restricted access to any other resources (on the same network or otherwise)
  4. Only processes images from sources you whitelist

Healthcheck

healthcheck.php will return a 200 for Load Balancer health pings., (*5)

Tests

Run phpunit, (*6)

The Versions

04/06 2018

dev-master

9999999-dev https://fuzzproductions.com/

Image Resizing micro service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fuzz Productions

17/08 2016

dev-feature_compression_quality

dev-feature_compression_quality https://fuzzproductions.com/

Image Resizing micro service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fuzz Productions

30/07 2016

dev-better-healthcheck

dev-better-healthcheck https://fuzzproductions.com/

Image Resizing micro service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fuzz Productions

03/05 2016

1.0

1.0.0.0 https://fuzzproductions.com/

Image Resizing micro service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fuzz Productions

03/05 2016

1.1

1.1.0.0 https://fuzzproductions.com/

Image Resizing micro service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fuzz Productions