0

我们试图让用户从选定的照片中选择一个人的确切面孔,我们希望通过提供一个椭圆形来实现这一点,用户必须通过调整照片或椭圆形本身的大小来适应面部。

有没有我可以使用的插件,或者这需要从头开始吗?

4

1 回答 1

0

Don't know of a plugin (and google is a better place for this) but it's not hard to develop one. Just create a overlay div with some opacity over the image the user sent. Then use jQuery UI draggrable and resizable for a smaller div with transparent background.

Send the div's position, width and height to the server and perform the cropping there.

于 2011-09-30T12:16:27.907 回答