mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 06:55:56 +03:00
[PR #61] [CLOSED] Introduce Storage Providers #149
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HaschekSolutions/pictshare/pull/61
Author: @birkett
Created: 6/23/2018
Status: ❌ Closed
Base:
master← Head:refactoring2📝 Commits (9)
7ea14ceCS fixer, PSR2.46c1bccRefactor the filters.81b43d9Update README for PHP7 requirement.b713e9eFilter fixes.d4a950aClean up the Backblaze class.3649ebeIntroduced StorageProviders. Start cleaning up tools.78198feLocalStorageProvider.1e706e3Added RotateFilter, removed old /classes/.9fe664aAdded Autoloader and FileSizeFormatter. Cleanup.📊 Changes
53 files changed (+4329 additions, -2838 deletions)
View changed files
➕
Classes/Autoloader.php(+82 -0)➕
Classes/FileSizeFormatter.php(+39 -0)➕
Classes/FilterFactory.php(+69 -0)➕
Classes/Filters/AbstractFilter.php(+110 -0)➕
Classes/Filters/AquaFilter.php(+48 -0)➕
Classes/Filters/BlurFilter.php(+115 -0)➕
Classes/Filters/BoostFilter.php(+45 -0)➕
Classes/Filters/BrightnessFilter.php(+36 -0)➕
Classes/Filters/BubblesFilter.php(+81 -0)➕
Classes/Filters/ColorizeFilter.php(+72 -0)➕
Classes/Filters/ContrastFilter.php(+36 -0)➕
Classes/Filters/CoolFilter.php(+41 -0)➕
Classes/Filters/EdgeDetectFilter.php(+26 -0)➕
Classes/Filters/EmbossFilter.php(+46 -0)➕
Classes/Filters/FilterInterface.php(+54 -0)➕
Classes/Filters/FuzzyFilter.php(+46 -0)➕
Classes/Filters/GrayFilter.php(+41 -0)➕
Classes/Filters/GrayscaleFilter.php(+26 -0)➕
Classes/Filters/LightFilter.php(+57 -0)➕
Classes/Filters/NegativeFilter.php(+26 -0)...and 33 more files
📄 Description
This started out as a refactor of the Backblaze support - but turned into a storage structure concept.
StorageProviders are ways to store and retrieve files.
Currently, we have:
The application is not fully utilising LocalStorageProvider yet. There are still some calls to GD functions, which are directly saving images locally.
Eventually, we should be able to have multiple StorageProviders enabled, configured via config / env vars.
This also paves the way to Amazon S3 support - linking to #49
Breaking changes: PHP 7.0 required (type hints, strict types)
Functionality changes: Rotating images is now treated as a filter (backwards compatible).
This PR is branched off #60. I recommend a full test before merging.
Linking to #57
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.