hongkhanh / cropbox

A lightweight and simple JavaScript, Jquery, YUI plugin to crop your avatar
http://hongkhanh.github.io/cropbox/
MIT License
266 stars 99 forks source link

Added new options: resizeToWidth & resizeToHeight. #10

Closed denismosolov closed 9 years ago

denismosolov commented 9 years ago

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: https://github.com/hongkhanh/cropbox/issues/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 commented 8 years ago

@denismosolov why is this closed?

lizhi0123 commented 7 years ago

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