Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 514
Crashalot Avatar asked Mar 17 '11 19:03

Crashalot


People also ask

How do I resize an image in Imagemagick?

To resize an image to specific dimensions, use the convert command with an input file, the -resize parameter, your preferred dimensions, and an output filename: convert original. png -resize 100x100 new. png.

How do I resize a JPEG in Linux?

Quickly resize images with right click in Linux Now if you right click on an image, you'll see two new options of resizing and rotating in the context menu. You can choose the resize option to resize the image right from the right-click menu quickly. It will present you with a few options for resizing the image.


1 Answers

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

like image 129
sebilasse Avatar answered Oct 27 '22 18:10

sebilasse