Skip to content
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

is it support image width or height must be at least some pixes #1229

Closed
zuohd opened this issue Dec 24, 2015 · 5 comments
Closed

is it support image width or height must be at least some pixes #1229

zuohd opened this issue Dec 24, 2015 · 5 comments

Comments

@zuohd
Copy link

zuohd commented Dec 24, 2015

currently if I write as the follow ,that is limt the image both width and height are great than 600:
<input type="file" ngf-select ng-model="logotypefiles" name="file" accept="image/*" ngf-min-height="600" ngf-min-width="600" />,
any suggestions?

@acobster
Copy link

You want ngf-validate. Using the demo I was able to get the desired validation using ngf-validate="{height: {min: 600}, width: {min: 600}}".

@danialfarid
Copy link
Owner

Fixed at 11.0.0
Added ngf-dimensions to customize the validation ngf-dimensions="$width < 1000 || $height < 1000"

@acobster
Copy link

Did I misunderstand what OP was asking or does ngf-dimensions do the same thing?

@danialfarid
Copy link
Owner

He wanted an "or" condition for with OR height to be limited. With ngf-validate you can just "and" the conditions.

@zuohd
Copy link
Author

zuohd commented Dec 28, 2015

Great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants