最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

JavaScript library similar to Imagemagick (i.e., resize images and pictures while maximizing picture fidelity)? - Stack Overflow

programmeradmin1浏览0评论

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!

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!

Share Improve this question edited Jul 11, 2012 at 21:17 Crashalot asked Mar 17, 2011 at 19:02 CrashalotCrashalot 34.5k62 gold badges282 silver badges460 bronze badges 1
  • 1 N. B. There is an Emscripten port of Imagemagick here: manuels.github.io/unix-toolbox.js, but please don't use it if you dont really need it. – Ale Commented Nov 5, 2013 at 10:00
Add a comment  | 

2 Answers 2

Reset to default 18

3 years later I stumbled upon this question ;)

The fun fact is that imagemagick itself exists in javascript. But google (page1) and github somehow do not find it. Github fails because the main project (useful emscripten ports)

UNIX toolbox.js

just consists of the modules ...

Here is the main project with readme: github : manuels/unix-toolbox.js

git clone ... --recursive

and the particular module : github : manuels/unix-toolbox.js-imagemagick

You can try Processing.js library. On the other hand you can port ImageMagick resize functionality to HTML5/Canvas + Javascript technology.

good luck !

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论