Repository navigation
fix: align the thumbnail drivers on the port and guard a 0 px original (#58) - #60
Merged
Merged
Conversation
added 2 commits
November 23, 2026 17:54
…ero-pixel original (#58)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #58.
Aligns the thumbnail drivers on the port (
tests/Contract/Datasets/ThumbnailDrivers.php;THUMBNAIL_KNOWN_DEVIATIONSis now empty):PolloraThumbnailDrivertrims it before signing;?and#in a key:BunnyThumbnailDriverencodes them (%3F,%23); a literal%is left as is, as encoding it would change URLs already issued;sizeOf()of the Pollora and imgproxy drivers only recognises declared sizes, imgproxy also excluding the ones it refuses;SizeGeometry: a 0 px original no longer divides by zero (scale and contain return the dimensions as they are;coverRegion()keeps the whole original).BREAKING:
PolloraThumbnailDriverandImgproxyThumbnailDrivertakeImageSizesas a required constructor argument (imgproxy: third, before the base URL). Only the package builds them (ThumbnailDrivers; checked by search in the other repositories); they are not inapi-surface.json.Checked: full suite (626) on five seeds, contract tests, Pint, PHPStan, Rector dry-run on src; the new tests fail without the fix. WordPress integration suite and coverage not run locally.