Skip to content

[Validator] Add min/max amount of pixels to Image constraint #23431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2017
Merged

[Validator] Add min/max amount of pixels to Image constraint #23431

merged 1 commit into from
Jul 6, 2017

Conversation

akeeman
Copy link
Contributor

@akeeman akeeman commented Jul 6, 2017

Q A
Branch? 3.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR symfony/symfony-docs#7756

Useful for asserting image sizes/areas in pixels, for instance to estimate processing work load.

This PR continues #22288. I cleaned up my associated branch a while ago and found no way of restoring or re-linking.

@fabpot: "Could you rename to TOO_FEW_PIXEL_ERROR? Same for the other constant?"
This is done.
@fabpot "Can you change the base to 3.4 instead of master and rebase on current 3.4? Thanks."
This is done too.

@akeeman akeeman changed the title add minimum and maximum amount of pixels to Image validator [Validator] Add min/max amount of pixels to Image constraint Jul 6, 2017
@fabpot
Copy link
Member

fabpot commented Jul 6, 2017

Thank you @akeeman.

@fabpot fabpot merged commit 9ab5263 into symfony:3.4 Jul 6, 2017
fabpot added a commit that referenced this pull request Jul 6, 2017
…traint (akeeman)

This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Add min/max amount of pixels to Image constraint

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | symfony/symfony-docs#7756

Useful for asserting image sizes/areas in pixels, for instance to estimate processing work load.

**This PR continues #22288**. I cleaned up my associated branch a while ago and found no way of restoring or re-linking.

@fabpot: "Could you rename to [TOO_FEW_PIXEL_ERROR](https://github.com/akeeman/symfony/blob/9ab5263d712881f8aa24920631685d14acd3a19b/src/Symfony/Component/Validator/Constraints/Image.php#L28)? Same for the other constant?"
This is done.
@fabpot "Can you change the base to 3.4 instead of master and rebase on current 3.4? Thanks."
This is done too.

Commits
-------

9ab5263 add minimum and maximum amount of pixels to Image validator
@akeeman akeeman deleted the patch-2 branch July 6, 2017 09:45
This was referenced Oct 18, 2017
@Guite Guite mentioned this pull request Dec 13, 2017
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants