Live data from Hacker News

ImageMagick: CLI for Image Editing

imagemagick.org

81–90 of 101 posts

Re: ImageMagick: CLI for Image Editing

#81

seeing ImageMagick, of all hoary tools, trending on HN reminds me that I'm so old that the kids are relishing as classics the tools I regard as outdated. This is expectable in music, but in tooling? And with Image -frigging- Magick ? Damn. Looking forward to the front-page HN-trended article on `sendmail`

The next ones will be mplayer, XFig, XPDF, nmh, TKGate for electronic boards, Links and Bochs. Back to 2002 again.

Re: ImageMagick: CLI for Image Editing

#82

See also vips and libvips, presenting a much cleaner library interface and faster processing: https://www.libvips.org/

I also echo this, I would go for VIPS first unless there are certain things that imagemagic can do that VIPS can't. You'll cut down on your memory usage significantly (like 500mb down to 20mb) and also use much less CPU.

Re: ImageMagick: CLI for Image Editing

#83

I did a project where I scanned a bunch of old media. The scans where so high quality that it was impractical to make a PDF for people to use. The Imagemagick community helped out with the right incantation to make everything just kinda work. One of the rare cases where a project's maintainers will just help you use it. I was wowed.

Was this on a public forum you can link?

Re: ImageMagick: CLI for Image Editing

#84
post #11

I always found it fascinating the grade-A executable names which imagemagick was able to claim in the global namespace: imagemagick /usr/bin/animate imagemagick /usr/bin/compare imagemagick /usr/bin/composite imagemagick /usr/bin/conjure imagemagick /usr/bin/convert imagemagick /usr/bin/display imagemagick /usr/bin/identify imagemagick /usr/bin/import imagemagick /usr/bin/mogrify imagemagick /usr/bin/montage imagemag…

I totally agree and also had found it fascinating, except for...mogrify? I don't think I've ever heard that word before, and I don't even know what it could mean based on the only related word I can think of, "transmogrify".

Re: ImageMagick: CLI for Image Editing

#85
post #75

Earlier quoted context omitted.

Image magick isn't something you use frequently and quickly like changing directories or moving a file. A longer more descriptive name is better here. Also easier to speak. Telling someone to write "compare" is easier than "C-M-P"

I was trying to make a joke about the infamous naming practices of Unix, an operating system with a call named “creat”.

My favorite is "ioctl", which is especially delightful when pronounced phoenetically

Re: ImageMagick: CLI for Image Editing

#86
post #14
post #11

I always found it fascinating the grade-A executable names which imagemagick was able to claim in the global namespace: imagemagick /usr/bin/animate imagemagick /usr/bin/compare imagemagick /usr/bin/composite imagemagick /usr/bin/conjure imagemagick /usr/bin/convert imagemagick /usr/bin/display imagemagick /usr/bin/identify imagemagick /usr/bin/import imagemagick /usr/bin/mogrify imagemagick /usr/bin/montage imagemag…

This is something I always preferred about the graphicsmagick fork, was the `gm` base command.

I came here to say the same thing

Re: ImageMagick: CLI for Image Editing

#87
post #9

I don't know about using a CLI to edit images, but one of the best thing of having imagemagick installed on my workstation (it's an absolute essential) is the 'mogrify' CLI tool to batch resize, manipulate or change formats of a whole directory full of images. https://imagemagick.org/script/mogrify.php

It's very handy for stuff like manipulating image uploads.

Re: ImageMagick: CLI for Image Editing

#88
If you wanna convert images for web, I use tools like:

  svgo (SVG Optimization)
  colorist / avifenc (AVIF)
  cwebp (webp)
  convert (ImageMagick, everything else)
because ImageMagick is able to convert MOST of thse, but not every format.

https://github.com/svg/svgo

https://github.com/joedrago/colorist

https://developers.google.com/speed/webp/docs/cwebp

https://imagemagick.org/

Re: ImageMagick: CLI for Image Editing

#89
post #18

There are 634 CVE Records that match your search. https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=imagemagick There have been a number of zero days. My entire interaction with Imagemagick has been removing it. Often with great difficulty because there is some odd dependency.

Imagemagick is one of the few bits of software where the functionality is worth the risk. Simply find a way to remove any network access and use it. I used to run it in a docker container with (almost) all capabilities dropped but with a directory mapped into it to run.

One way to make it safer is to run inside webassembly. I needed an easy way to modify photoshop files and allow give those commands to other users. So you may want to check out https://knicknic.github.io/imagemagick/ it’s Imagemagick in a progressive web app that allows you to share commands.

Re: ImageMagick: CLI for Image Editing

#90
post #11

I always found it fascinating the grade-A executable names which imagemagick was able to claim in the global namespace: imagemagick /usr/bin/animate imagemagick /usr/bin/compare imagemagick /usr/bin/composite imagemagick /usr/bin/conjure imagemagick /usr/bin/convert imagemagick /usr/bin/display imagemagick /usr/bin/identify imagemagick /usr/bin/import imagemagick /usr/bin/mogrify imagemagick /usr/bin/montage imagemag…

That's exactly my same thought every time I need to use one of those!
Post reply on HN