Live data from Hacker News

ImageMagick: CLI for Image Editing

imagemagick.org

61–70 of 101 posts

Re: ImageMagick: CLI for Image Editing

#61
post #30

Earlier quoted context omitted.

Image magick has been around for a pretty long time, and was doing image processing on linux before most had considered it.

ImageMagick was developed by John Cristy at DuPont in 1987 and release in 1990. Your statement is not only false, even it it wasn't, mentioning Linux in relation to ImageMagick is a non-sequitor. Maybe you should try other things.

Your point would have been much better if you had stopped after the first sentence.

Re: ImageMagick: CLI for Image Editing

#62
post #12

At my $OLDJOB, I used ImageMagick to compare snapshots during some automated front-end testing on our public Drupal site. It would compare the running test to previously accepted images, highlighting pixel diffs in red. It would also generate a 4 frame animated gif with of the original, highlit changes, the running test version, and back to the highlit changes (so it could loop for better comparison). Imagemagick sav…

Thanks for sharing this tip! Are there any guides you recommend? Edit: Here’s one guide for the legacy Imagemagick (may not work for the latest release), https://legacy.imagemagick.org/Usage/compare/ I’m trying to encourage my front end developers to use visual diffs to validate rendering rather than use Protractor to test HTML/CSS. I’ve known about BackstopJS, https://garris.github.io/BackstopJS/ and am on the looko…

I would recommend generating an animated .webp for the diff output, which ImageMagick supports. Animated GIFs have color resolution limits.

Re: ImageMagick: CLI for Image Editing

#63
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…

Is there an easy way to get that list for a package?

Re: ImageMagick: CLI for Image Editing

#64
post #52

Earlier quoted context omitted.

This looks like useful output, what distro and command did you use to list this?

Arch Linux. $ pacman -Ql imagemagick | grep bin imagemagick /usr/bin/ imagemagick /usr/bin/Magick++-config imagemagick /usr/bin/MagickCore-config imagemagick /usr/bin/MagickWand-config imagemagick /usr/bin/animate imagemagick /usr/bin/compare .... You may also enjoy: $ pacman -Qo /usr/bin/{display,convert} /usr/bin/display is owned by imagemagick 7.1.0.16-1 /usr/bin/convert is owned by imagemagick 7.1.0.16-1

For reference (mostly for me as I need this from time to time), you can do the same on dpkg-based distros with

     $ dpkg -L imagemagick-6.q16 | grep bin
     /usr/bin
     /usr/bin/animate-im6.q16
     /usr/bin/compare-im6.q16
     /usr/bin/composite-im6.q16
     /usr/bin/conjure-im6.q16
     /usr/bin/convert-im6.q16
     /usr/bin/display-im6.q16
     /usr/bin/identify-im6.q16
     /usr/bin/import-im6.q16
     /usr/bin/mogrify-im6.q16
     /usr/bin/montage-im6.q16
     /usr/bin/stream-im6.q16
Similarly, you get

     $ dpkg-query -S /usr/bin/convert-im6.q16 
     imagemagick-6.q16: /usr/bin/convert-im6.q16
This does not work for the canonical executables though as they are just symlinks to /etc/alternatives/foobar

Re: ImageMagick: CLI for Image Editing

#66

Earlier quoted context omitted.

They are pretty common verbs, but they give 0 context to the user on what they do. I don't think these names are in any demand -- there's always a better name than "import" for your command line utility.

Sounds like you want PowerShell style naming :)

With good autocomplete, I wouldn't mind it!

I was honestly thinking of stuff like `du` (disk usage), `cp`, `mv`, and the like. Like I sort of mnemonically remember them, compared to mentally mapping `convert` -> imagemagick.

Re: ImageMagick: CLI for Image Editing

#67
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…

Thankfully as of v7 these are all bundled under a single "magick" command (with symlinks for compatibility). Hopefully in the future these can be removed

tbf this sounds like a problem that doesn't need to be fixed... Ironically this would introduce problems where many scripts sort of assume the binaries have the names they have.

Re: ImageMagick: CLI for Image Editing

#68

Earlier quoted context omitted.

Sounds like you want PowerShell style naming :)

With good autocomplete, I wouldn't mind it! I was honestly thinking of stuff like `du` (disk usage), `cp`, `mv`, and the like. Like I sort of mnemonically remember them, compared to mentally mapping `convert` -> imagemagick.

This sentiment directly contradicts your post above...

Re: ImageMagick: CLI for Image Editing

#69
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`

Re: ImageMagick: CLI for Image Editing

#70
post #58

Earlier quoted context omitted.

No self-respecting Unix tool would use such long names, so that's why they were free. "compare" vs "cmp", etc.

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"

The reason the common commands were short was because typing on the keys for old terminals was a pain in general, and thus they are short for historical reasons. It is however an accident of history that them being shorter now makes it more convenient...if you have the names memorized.
Post reply on HN