peterver / vanilla-image-cropper

A lightweight vanilla js image cropper, with zero dependency requirements
MIT License
55 stars 10 forks source link

Allow circular preview #4

Closed peterver closed 8 years ago

peterver commented 9 years ago

Add an extra handle cb and option to provide developers with the possibility to provide a circular preview.

This is much used to preview avatar images ( as they are shown in a circular form most of the time.

CanRau commented 8 years ago

Nice script thank you @peterver! Are there any news on the circular preview?

peterver commented 8 years ago

going to look into it somewhere this week :]

CanRau commented 8 years ago

don't wanna hurry you, but would love to use your extremely small cropper :)

btw, with some croppers it's possible to make the image circular just by adding css border-radius didn't worked for me because of the svg(?) I guess...

peterver commented 8 years ago

damn, i completely forgot about this issue, my bad. I've got some time on my hand this weekend. will look into it !

CanRau commented 8 years ago

great :)

peterver commented 8 years ago

started working on it, not yet finished though

will release asap ^.^

CanRau commented 8 years ago

Sounds good :D Just let me know by commenting here ;-)

peterver commented 8 years ago

closing this issue as added in 1.1, tell me what you think about it :] ?

CanRau commented 8 years ago

yeah think that does the job :) thank you! now I just need to switch from croppie to your nice work, which is about a quarter of the size (spoiler^^) unfortunately it's a closed community so I won't be able to show you in action :/

EDIT works like a charm..thank you very much! like the simplicity..think it's more straightforward..with croppie I needed more time to get it runnin'..

peterver commented 8 years ago

i know what you're talking about, i built this component for the webapp that we're developping at Skedify. We were originally using ngImgCrop, but it just didn't do the job well enough, and its about 5x the size of this one. Oh well :').

Should you have any more feature requests or issues that you encounter, be sure to create an issue for them :], always happy to improve this little package