3
Well I found a library, which is great for image manipulation, and it works perfectly, in case the Graphicsmagick for Node.js, but there is a problem, because there are dependencies of other software installed on the machine where Node will be executed, in case the Graphicsmagick, without it installed does not roll, because I believe that "the Node library is just an interface for calling the methods of the software installed, which may be developed in C or C++ (I think)".
This is my 1° project with Node.js, so I’m not really sure if he’s able to do that and where to start. And whenever I try to search for something like "Create thumbnail picture with Node.js", the results always refer to the previously mentioned libraries.
- So I would like to know first, if it is possible to create image thumbnails only using Node.js?
- "Secondarily", if possible, if there is any library that assists in this task?
- And "mentally", the path of stones, or some idea of how to implement this?
Obs¹: My problem in using the cited library (Graphicsmagick for Node.js), is the need to install a software in hosting, which can be a problem for me depending on the company’s security policy.
Obs²: The only resource I need from this library is the
resize
.
Although it should be possible, it is much simpler to use a library. Your server does not let you run
npm
?– bfavaretto
@bfavaretto, by
npm
i install the Node library, but it is also necessary to have the software installed on the machine (and that’s what I can’t). I’ve done the tests on my machine and it doesn’t work without installing the software.– Fernando Leal
What about Imagemagick, your server supports? It’s quite common, and the module gm lets you choose to use it instead of Graphicsmagick.
– bfavaretto
@bfavaretto, the problem is that some clients use windows normal as server, and this is not common in windows, even if it is server.
– Fernando Leal
@bfavaretto, just one question, for example a hosting like the Heroku or openshift, you already have that available?
– Fernando Leal
I don’t know, Fernando, but on their website you should say.
– bfavaretto
I use Openshift and they allow you ssh access and there you install these things with yum package manager. But be careful, using the same server for HTTP and image compression is not performative. It is better to use something like Resque (Ruby) or Celery (Python)
– jefersondaniel
I found this article. Maybe at least part of it is useful to you: http://tonyspiro.com/uploading-resizing-images-fly-node-js-express/
– Pedro Vinícius
@Pedrovinícius, falls into the same problem, look at the end of the article
brew install imagemagick
, it is necessary to install Imagemagick, but still thank you for the help.– Fernando Leal