NodeBB imagemagick requirement

General Discussion
  • I noticed imagemagick as a requirement for NodeBB. Can someone elaborate on its use in NodeBB?

  • Think one of the uses is to convert user avatars to .png. (Setting in the ACP) not sure if it's also used to resize avatars.

  • Gotcha. Thanks @a_5mith

  • Is not there any alternative to imagemagick that doesn't require us to install 76 MB of dependencies?

    # apt-get install imagemagick
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
      dbus fontconfig fonts-droid ghostscript gsfonts hicolor-icon-theme
      imagemagick-common libavahi-client3 libavahi-common-data libavahi-common3
      libcairo2 libcups2 libcupsimage2 libdatrie1 libdbus-1-3 libdjvulibre-text
      libdjvulibre21 libexiv2-12 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgs9
      libgs9-common libice6 libijs-0.35 libilmbase6 libjasper1 libjbig2dec0
      liblcms1 liblcms2-2 liblensfun-data liblensfun0 liblqr-1-0 libmagickcore5
      libmagickcore5-extra libmagickwand5 libnetpbm10 libopenexr6 libpango1.0-0
      libpaper-utils libpaper1 libpixman-1-0 librsvg2-2 librsvg2-common libsm6
      libsystemd-login0 libthai-data libthai0 libtiff4 libwmf0.2-7 libxcb-render0
      libxcb-shm0 libxft2 libxrender1 libxt6 netpbm poppler-data ufraw-batch
      x11-common
    Suggested packages:
      dbus-x11 ghostscript-cups ghostscript-x hpijs imagemagick-doc autotrace
      cups-bsd lpr lprng enscript ffmpeg gimp gnuplot grads hp2xx html2ps
      libwmf-bin mplayer povray radiance sane-utils texlive-base-bin transfig
      xdg-utils cups-common exiv2 libjasper-runtime liblcms-utils liblcms2-utils
      ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
      ttf-arphic-bkai00mp librsvg2-bin poppler-utils fonts-japanese-mincho
      fonts-ipafont-mincho fonts-japanese-gothic fonts-ipafont-gothic
      fonts-arphic-ukai fonts-arphic-uming fonts-unfonts-core ufraw
    The following NEW packages will be installed:
      dbus fontconfig fonts-droid ghostscript gsfonts hicolor-icon-theme
      imagemagick imagemagick-common libavahi-client3 libavahi-common-data
      libavahi-common3 libcairo2 libcups2 libcupsimage2 libdatrie1 libdbus-1-3
      libdjvulibre-text libdjvulibre21 libexiv2-12 libgdk-pixbuf2.0-0
      libgdk-pixbuf2.0-common libgs9 libgs9-common libice6 libijs-0.35 libilmbase6
      libjasper1 libjbig2dec0 liblcms1 liblcms2-2 liblensfun-data liblensfun0
      liblqr-1-0 libmagickcore5 libmagickcore5-extra libmagickwand5 libnetpbm10
      libopenexr6 libpango1.0-0 libpaper-utils libpaper1 libpixman-1-0 librsvg2-2
      librsvg2-common libsm6 libsystemd-login0 libthai-data libthai0 libtiff4
      libwmf0.2-7 libxcb-render0 libxcb-shm0 libxft2 libxrender1 libxt6 netpbm
      poppler-data ufraw-batch x11-common
    0 upgraded, 59 newly installed, 0 to remove and 34 not upgraded.
    Need to get 26.3 MB of archives.
    After this operation, 76.0 MB of additional disk space will be used.
    Do you want to continue [Y/n]? 
    
  • I'm not using Debian based distributions any more, but could you eventually try

    sudo apt-get install imagemagick --no-recommends
    

    to install imagemagick without "recommended" packages? You could also add those two lines to /etc/apt/apt.conf (create if nonexistant) to never install recommended packages:

    APT::Install-Suggests "0";
    APT::Install-Recommends "0";
    
  • Cool! I will try going that route... To be honest, I didn't mind in the "required, recommended and suggested" thing... My fault! :$

    Thank you very much and have a nice day!

  • Good tip @Netto-Hikari! Thanks for that, learned something new tonight 🙂

    Edit: How did you respond so fast 😐 Pushbullet? haha

  • You're welcome, guys! 🙂

    Edit: Aways lurking in the dark, @julian ... 🙂


Suggested Topics


| | | |