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

Specify ideal cropping region #41

Open
jcdsr opened this issue Jan 22, 2015 · 4 comments
Open

Specify ideal cropping region #41

jcdsr opened this issue Jan 22, 2015 · 4 comments

Comments

@jcdsr
Copy link

jcdsr commented Jan 22, 2015

Hi,

I'm wondering if is possible to create a close up image.

Imaging on the kangaroo demo, on the small frame to zoom in the kangaroo to create like a close up.
Meaning the natural size of that image wont change, what change is the position on the picture on a small size.

On those demos you have, the with of the image resize as well as the frame. I would like to keep the image as big possible and then select the focuspoint.

A css option will be amazing.

Please find image attached for a better understanding.

kangaroo

@jonom
Copy link
Owner

jonom commented Jan 27, 2015

Hi @carlosdv4, I don't think this would be possible with only CSS but could be added to the script with a downscale=true|false config setting. It will require editing the layout algorithm quite a bit which I don't have time to do right now but you're welcome to submit a PR if you solve the problem. Otherwise I'll explore this option down the road and look at adding it in a future update.

@jonom jonom changed the title closeup on image Specify ideal cropping region Mar 1, 2016
@jonom
Copy link
Owner

jonom commented Mar 1, 2016

I wrote a brief for a feature that could solve this problem. The idea is that you specify how you would ideally like your image to be cropped, and the space around it is only shown when necessary. I would like to develop this feature but can't justify it at the moment, will keep it here in case anyone wants to sponsor development.

ideal crop

@jcdsr
Copy link
Author

jcdsr commented Mar 11, 2016

That's was exactly what I was looking for that time. I hope someone sponsor this great feature.

@jonom
Copy link
Owner

jonom commented Dec 14, 2018

For anyone looking for this functionality - this has been available in the v-2-dev branch for a couple of years. https://github.com/jonom/jquery-focuspoint/tree/v-2-dev#minimum-cropping-region

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

2 participants