mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[PR #130] [MERGED] Image Processor geometry refactor. #295
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#295
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/flyimg/flyimg/pull/130
Author: @baamenabar
Created: 9/10/2017
Status: ✅ Merged
Merged: 9/18/2017
Merged by: @baamenabar
Base:
master← Head:im-geometry-refactor📝 Commits (9)
e18722eAdded test cases to ImageMetaInfo class unit test suite.f669a97[WIP] First steps into refactoring the geometry calculations. Adding tests.e8547f6Merge branch 'master' into im-geometry-refactor9e7bd58Separated method for very basic, most common resizing operations.14270c9Preventing resized images from being expanded if preserve-natural-size is active4b6348eAdded behaviour to resize with crop option. Most test passing now.725947cUpdated and added tests cases for expanding images without stretching. Added cases for partial croping to the sides or top and bottom.a82836fInitial cleanup after refactor, moved ImageMetaInfo one level up9e4c19fCleanup of the tests code. Code climate finds it too repetitive.📊 Changes
6 files changed (+356 additions, -46 deletions)
View changed files
📝
src/Core/Entity/Image/InputImage.php(+6 -1)📝
src/Core/Entity/ImageMetaInfo.php(+1 -1)📝
src/Core/Entity/OptionsBag.php(+34 -0)📝
src/Core/Processor/ImageProcessor.php(+161 -35)📝
tests/Core/Entity/ImageMetaInfoTest.php(+2 -3)📝
tests/Core/Processor/ImageProcessorTest.php(+152 -6)📄 Description
this is just the first steps, the failing tests, I'll start the actual refactor after this.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.