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

Added new options: resizeToWidth & resizeToHeight. #10

Closed
wants to merge 1 commit into from

Conversation

denismosolov
Copy link

Hello.

Nice tool. Thank you. I need an ability to re-size the cropped image, but I don't want to re-size the thumb box. i think adding 'resizeToWidth' and 'resizeToHeight' options is a good solution for this.

Also I noticed another similar feature request:
#8

This code snippet make an image 100x100 px

        var options =
        {
            imageBox: '.imageBox',
            thumbBox: '.thumbBox',
            spinner: '.spinner',
            imgSrc: 'avatar.png',
            resizeToWidth: 100,
            resizeToHeight: 100
        }
        var cropper = new cropbox(options);

@kendepelchin
Copy link

@denismosolov why is this closed?

@lizhi0123
Copy link

I tried ,bug it is no use for me. I can not find the usefull method。

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

Successfully merging this pull request may close these issues.

3 participants