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

result-image-size array which includes 'max' #90

Open
joshuatantonflynn opened this issue Mar 1, 2019 · 0 comments
Open

result-image-size array which includes 'max' #90

joshuatantonflynn opened this issue Mar 1, 2019 · 0 comments

Comments

@joshuatantonflynn
Copy link

My uiCropper is being used to produce a fullsized image and a thumbnail. currently using result-image-size='[{w: 1500,h: 1500}, {w: 300,h: 300}]' works. but if I try to go result-image-size='[max, {w: 300,h: 300}]' or any combination of quotes around max it fails to produce the first image. Is there currently a way to do this?

I was also trying to generate the value for this property in javascript so that once the ng-model is loaded I can just paste in the original width and height. However, the only way I could get angular to load in my string was with result-image-size="'{{test}}'" where test is a scope variable string. However this broke the object and produced no images.

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

1 participant