GithubHelp home page GithubHelp logo

disable max zoom? about jquery-crop HOT 6 CLOSED

adriengibrat avatar adriengibrat commented on June 27, 2024
disable max zoom?

from jquery-crop.

Comments (6)

adriengibrat avatar adriengibrat commented on June 27, 2024

I've made a few commit to add a new option, and to document it.

Now there is a stretch option, default value is 1, but you can put what float you want greater than 1 (2 allow to zoom up to 2x ...).

In the code, it wasn't minPercent the pb, but the "1" right next to it ;)

And about the click controls only zoom 1px per click... since the commit i couldn't reproduce the bug!

Hope this help. I'm waiting your response to close the issue.

from jquery-crop.

daniel-hopkins avatar daniel-hopkins commented on June 27, 2024

Hi Adrien,
wow, thanks for the quick turnaround.
I think this is a step in the right direction, but the behavior is still not always as expected.
when loading an image larger than the window, it zooms as before
when loading an image the same size as the window, it doesn't zoom at all
when loading an image that is smaller than the window, the minus button zooms in, and the plus button zooms out

I made a fiddle to show you what I mean.
http://jsfiddle.net/szZGe/

btw, there is a typo *stretch

Daniel

from jquery-crop.

adriengibrat avatar adriengibrat commented on June 27, 2024

Hi,

Oops, That's what happend when I code after 2 am when my son wakes me up!

The latest commit should fix this, thanks for the fiddle and typo ;)

Adrien

2013/10/13 niestudio [email protected]

Hi Adrien,
wow, thanks for the quick turnaround.
I think this is a step in the right direction, but the behavior is still
not always as expected.
when loading an image larger than the window, it zooms as before
when loading an image the same size as the window, it doesn't zoom at all
when loading an image that is smaller than the window, the minus button
zooms in, and the plus button zooms out

I made a fiddle to show you what I mean.
http://jsfiddle.net/szZGe/

btw, there is a typo *stretch

Daniel


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-26209533
.

from jquery-crop.

adriengibrat avatar adriengibrat commented on June 27, 2024

you can test it, i've updated the js fiddle: http://jsfiddle.net/szZGe/3/

from jquery-crop.

daniel-hopkins avatar daniel-hopkins commented on June 27, 2024

brilliant!
You may want to update the version number too.
Merci

from jquery-crop.

adriengibrat avatar adriengibrat commented on June 27, 2024

merci,
et dire qu'on aurai pu parler en français depuis le début ;)

Adrien

2013/10/13 niestudio [email protected]

brilliant!
You may want to update the version number too.
Merci


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-26219232
.

from jquery-crop.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.