Coder Social home page Coder Social logo

Comments (8)

bigtiger avatar bigtiger commented on September 27, 2024 1

FWIW @ihadeed, GraphicsMagick should not be required. Imagemagick is however required. I've added a note to the README in #85.

from avatars-api-middleware.

rylnd avatar rylnd commented on September 27, 2024

@tehkaiyu thanks for the report! I'm able to reproduce this locally but I don't yet have a cause or solution. The current theory is that some dependency's behavior changed somehow (as this package hasn't changed since 0.2.1); we'll keep you posted.

from avatars-api-middleware.

kyh avatar kyh commented on September 27, 2024

Thank you! Happy to take a look this weekend as well

from avatars-api-middleware.

ihadeed avatar ihadeed commented on September 27, 2024

I had the same issue on my Ubuntu 18 server. It was missing GraphicsMagick and ImageMagick.

I fixed the issue by running these commands:

sudo add-apt-repository ppa:dhor/myway
sudo apt update
sudo apt install -y graphicsmagick build-essential && apt build-dep  -y imagemagick
wget -qO- http://www.imagemagick.org/download/ImageMagick.tar.gz | tar xzv
cd ImageMagick-*
./configure
make -j`nproc`
checkinstall
ldconfig /usr/local/lib

from avatars-api-middleware.

rylnd avatar rylnd commented on September 27, 2024

@tehkaiyu, installing imagemagick should address your issue; please reopen this PR if you continue to experience issues.

from avatars-api-middleware.

jrocha-dev avatar jrocha-dev commented on September 27, 2024

Same problem using the same code as @tehkaiyu . I'm using Node.js 10.11.0 (x64) and ImageMagick 7.0.8-12 (x64) in a machine with Windows 10.

from avatars-api-middleware.

jrocha-dev avatar jrocha-dev commented on September 27, 2024

Solved! Guys, I tried various versions of ImageMagic: Q8, Q16, static, dynamic as well different versions of Node.js. The solution was use GraphicsMagick (I'm using version 1.3.30 Q8 x64) 😃

from avatars-api-middleware.

rylnd avatar rylnd commented on September 27, 2024

@josecprocha @tehkaiyu @ihadeed these seem to be issues with the gm package that we're using; it looks like behaviors are different for each OS. aheckmann/gm#684 may be relevant for windows users; there are plenty of open issues to peruse :).

I've historically only used this library on OSX, and we've only needed a brew install imagemagick to get things working, but if you all wouldn't mind documenting what it takes to get things running on e.g. ubuntu and windows 10, that would be greatly appreciated. FWIW, the test suite npm test includes some integration tests that should be indicative of a good/bad setup of imagemagick/graphicsmagic.

from avatars-api-middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.