Coder Social home page Coder Social logo

Comments (8)

Ice32 avatar Ice32 commented on May 3, 2024 1

I'm looking for the same feature, @fengyuanchen could you let us know what are the attributes needed to accomplish it (drag only the image, while having fixed crop box)?

from cropper.

fengyuanchen avatar fengyuanchen commented on May 3, 2024

This is a special feature, it is useful for you, but may be not so useful for other, so I can't support it now.

from cropper.

cilf avatar cilf commented on May 3, 2024

Hey is it still no go? I would also appreciate this feature and I think I'm not the only one since facebook is using similar approach for selecting the cover photo so more people might be tempted to imitate it.

I found http://www.croppic.net/ but it's lacking support for older browsers.
2014-11-14_190246

from cropper.

fengyuanchen avatar fengyuanchen commented on May 3, 2024

Hi, @ext & @cilf , I have provided a basic support for the feature what you want now, see here.

from cropper.

cilf avatar cilf commented on May 3, 2024

Cool but I'd need to be able to move the picture around and zoom in / out. This is not possible with the example you provided. Is there some setup needed? Thanks for looking into it!

from cropper.

fengyuanchen avatar fengyuanchen commented on May 3, 2024

@cilf Zoom in by your mouse wheel, and then move it.

from cropper.

cilf avatar cilf commented on May 3, 2024

oh yeah, cheers!

from cropper.

boblikesoup avatar boblikesoup commented on May 3, 2024

This feature is broken for me. I'm using all the same attributes as the demo and the crop box isn't fixed:

$('.cropper-example-1 > img').cropper({
aspectRatio: 16 / 9,
autoCropArea: 0.65,
strict: false,
guides: false,
highlight: false,
dragCrop: false,
cropBoxMovable: false,
cropBoxResizable: false
});

from cropper.

Related Issues (20)

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.