GithubHelp home page GithubHelp logo

Comments (4)

styoe avatar styoe commented on July 23, 2024

It should work. Can you please provide more details or a link to your problem?

from croppic.

uydev avatar uydev commented on July 23, 2024

Thanks for your response.

In the croppic.css stylesheet I have changed width and height to 200px making it a square. However, the cropping is not cropping the selected area now shown in the preview, and seems to be cropping differently than expected. I guess I need to change some other values to 200px and not just width and height in the croppic.css (#croppic).

So if we are changing the crop container from 400pxX208x, to some custom value (such as 200pxX200px), what is the complete list of changes that need to be made?

Kind regards

from croppic.

iamrahul avatar iamrahul commented on July 23, 2024

@styoe Please reply. I want to know the same. How can we change the size of the cropper?

from croppic.

Noaber avatar Noaber commented on July 23, 2024

I solved it this way. (The cropper #croppic div changed height on the fly)
In 'initCropper: function () {'

add the following

initCropper: function () {
var o = this;
o.img = o.obj.find("img"),

    //REINIT OBJECT WIDTH / HEIGHT -> ADDED
    o.objW = o.obj.width(), o.objH = o.obj.height();

from croppic.

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.