4 ms·
Great if this is working for you and helps you to recall basic usage when using IM once in a blue moon. For any serious work this is inadequate (see † below),
by ZoomZoomZoom 1y ago
Great if this is working for you and helps you to recall basic usage when using IM once in a blue moon.
For any serious work this is inadequate (see † below), as the defaults, which are relied on here pretty extensively, are inevitably giving fair to middling results on specific tasks.
Moreover, imagemagick has an extensive documentation that's open to contribution and could possibly benefit from more usage examples for beginners: https://imagemagick.org/script/magick.php https://imagemagick.org/script/magick.php
†: For example, when you don't have strict control over input formats, you start adding things like
-define tiff:ignore-layers=true "INPUT[0]"
to guarantee you're working on the whole composite image.
Another thing you're bound to bump into pretty soon is transparency so you need to decide how you're going to deal with it. Color profiles is a minefield and it's a blessing when you can just ignore them completely but a pain when you can't.
Then, exporting to web mostly means downscaling, and here you need to decide whether you're prioritizing image detail preservation or size optimization. In any case, resampling in a linear colorspace is strongly recommended:
-colorspace RGB -filter X -resize N> -colorspace sRGB
But check if it works with the chosen filter first! I spent an hour hunting the source of randomly appearing hot pixels on the downscaled images from noisy sources when using LUV for processing.
The point is, basic one-liners hide the complexity. For any workflow that requires robustness and fidelity a deep dive into the documentation is a requirement.
- codazoda 1y agoI don't really have that problem. I mostly use either png's (screenshots) or jpeg's (photos). You could certainly run into that problem if you're dealing with lots of formats or with other peoples files. My intent is for this to give you solid starting points to work from in some situations. Individually these commands were first written for myself and published online. Those pages became somewhat popular, like people were looking for some specific examples. So, I thought I'd try combining them and see if people found it useful enough to encourage me to spend the time to expand the list into something more.