用于裁剪、调整大小、缩略图、转换图像的开源脚本
我想要一个部分,人们在上传个人资料信息后可以在他们想要从图片中作为缩略图的部分画一个正方形等等。我想知道他们的客户端(javascript)和服务器端(php)是否有什么东西,这样我就不必从头开始!
I want to have a section where people after uploading their profile information can draw a square around the part that they want from the picture to be the thumbnail and all that. I'm wondering if there is anything out their with the client side (javascript) and server-side (php) so that I don't have to start from scratch!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您希望能够缩放图像(重新采样),请参阅 kroppr。成本为 29 欧元/子域,但您没有获得源代码(无法修改)。
开源许可:请参阅以下内容。它们的功能较少,但可以满足您的需求。例如,用户可以选择照片区域,然后您可以将其缩小到服务器上的正确尺寸。
Ajax 图像编辑器 -- 包含缩放/缩小。但可能需要与您的网站集成。 GPL 许可证
YUI 2: ImageCropper -- BSD 许可证
If you want ability to zoom the image (resample), then see kroppr. Cost is 29 Euros/subdomain but you do not get source (can't modify).
Open Source licensed: see the following. They have less functionality but may meet your needs. Eg user could select area of photo, then you'd shrink it down to the right size on your server.
Ajax Image Editor -- Does include zoom/shrink. But may need work to integrate with your site. GPL license
YUI 2: ImageCropper -- BSD license
JCrop 看起来是一个不错的选择
--http://www.webappers.com/2008/09/12/jcrop-poweerful-image-cropping-engine-for-jquery/
---http://deepliquid.com/content/Jcrop.html
没有个人经验。
JCrop looks like a good bet
--http://www.webappers.com/2008/09/12/jcrop-poweerful-image-cropping-engine-for-jquery/
---http://deepliquid.com/content/Jcrop.html
No personal experience with it.