8000 [Validator] Add min/max amount of pixels to Image constraint by akeeman · Pull Request #7756 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

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

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

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

Conversation

akeeman
Copy link
Contributor
@akeeman akeeman commented Apr 5, 2017

Documentation for symfony/symfony#22288

@javiereguiluz javiereguiluz changed the title [Validator] Add min/max amount of pixels to Image constraint [WCM][Validator] Add min/max amount of pixels to Image constraint Apr 7, 2017
fabpot added a commit to symfony/symfony 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
@HeahDude HeahDude removed the On hold label Jul 29, 2017
@HeahDude HeahDude added this to the 3.4 milestone Jul 29, 2017
@HeahDude
Copy link
Contributor

symfony/symfony#23431 has been merged now.

@wouterj wouterj changed the title [WCM][Validator] Add min/max amount of pixels to Image constraint [Validator] Add min/max amount of pixels to Image constraint Sep 3, 2017
wouterj added a commit that referenced this pull request Sep 3, 2017
…raint (akeeman)

This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #7756).

Discussion
----------

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

Documentation for symfony/symfony#22288

Commits
-------

32f90ee Add minPixels and maxPixels constraints
wouterj added a commit that referenced this pull request Sep 3, 2017
@wouterj
Copy link
Member
wouterj commented Sep 3, 2017

Thank you for submitting & documenting these new constraint options! I've merged it in the 3.4 branch and added a version directive, indicating that this is new in Symfony 3.4.

@wouterj wouterj closed this Sep 3, 2017
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.

5 participants
0