JAVA实现裁剪图片
http://blog.csdn.net/renfyjava/article/details/9942743
我的例子:
我的是同时显示4个尺寸的头像,部分代码如下: ">

Home  >  Article  >  Web Front-end  >  jquery image cropping ideas and implementation_jquery

jquery image cropping ideas and implementation_jquery

WBOY
WBOYOriginal
2016-05-16 17:25:331067browse

Idea: JS, jquery cannot realize image cropping, it just shows an illusion

My implementation method is roughly as follows:
1. Upload the image selected by the user to the server
2. Select the image The coordinates of the rectangular frame of the avatar on the picture are sent to the server, including the width and height of the rectangular frame, the x, y coordinates of the upper left corner, the height and width of the picture, etc.
3. Use the obtained coordinate values ​​on the server , and the original image, cropped using JAVA.
----------------------------------
jquery cropping effect display, using imgAreaSelect
http://odyniec.net/projects/imgareaselect/
http://www.cnblogs.com/mizzle/archive/2011/10/13/2209891.html
The effect is as follows:
jquery image cropping ideas and implementation_jquery
JAVA realizes cropping images
http://blog.csdn.net/renfyjava/article/details/9942743
My example:
I display 4 sizes of avatars at the same time, partially The code is as follows:

Copy code The code is as follows:



Display effect:
jquery image cropping ideas and implementation_jquery
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn