问题描述
我们想模拟Imagemagick功能,但仅限于Javascript。是否存在任何库?
具体来说,目标是显示图像的缩略图而不会将缩略图扭曲到几乎与原始图像不相似的程度。这通常通过CSS进行简单的大小调整。
一种方法是使用Imagemagick调整服务器上的图像大小。
问题是,如果我们不想存储缩略图(因为原件是从不提供缩略图的第三方加载的),我们可以使用Javascript库模拟Imagemagick的自然和高保真调整大小功能吗? / p>
谢谢!
你可以试试库。另一方面,您可以将ImageMagick调整大小功能移植到HTML5 / Canvas + Javascript技术。
祝你好运!
We would like to simulate Imagemagick functionality, but only in Javascript. Do any libraries exist?
Specifically, the goal is to display thumbnails of images without distorting the thumbnail to the point where it is hardly resembles the original. This often happens with simple resizing via CSS.
One approach is to resize images on the server with Imagemagick.
The question is, if we don't want to store the thumbnails (because the originals are loaded from a third party which doesn't supply thumbnails), can we simulate Imagemagick's natural and high-fidelity resizing functionality with a Javascript library?
Thanks!
You can try Processing.js library. On the other hand you can port ImageMagick resize functionality to HTML5/Canvas + Javascript technology.
good luck !
这篇关于类似于Imagemagick的JavaScript库(即,在最大化图片保真度的同时调整图像和图片的大小)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!