HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
819 stars 123 forks source link

Refactor the image filters #60

Closed birkett closed 5 years ago

birkett commented 6 years ago

Split up and re-factor the image filters. Each filter is it's own class, inheriting from an AbstractFilter, and FilterInterface. Filters are created using a new FilterFactory.

This PR also introduces the namespace auto loader.

Breaking changes: PHP 7.0 required (type hints, strict types) Functionality changes: none

Recommend a full test of all filters before merging.

(This PR is branched from the PSR2 work - merge that one first).

Linking #57