用于裁剪、调整大小、缩略图、转换图像的开源脚本

发布于 2024-09-26 17:49:43 字数 106 浏览 2 评论 0原文

我想要一个部分,人们在上传个人资料信息后可以在他们想要从图片中作为缩略图的部分画一个正方形等等。我想知道他们的客户端(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

南…巷孤猫 2024-10-03 17:49:43

如果您希望能够缩放图像(重新采样),请参阅 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

眸中客 2024-10-03 17:49:43

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文