diff --git a/index.html b/index.html index fd7891a..1989cf5 100644 --- a/index.html +++ b/index.html @@ -37,6 +37,8 @@
Use OCR
Compare similarity of videos
Something else
+
Similar tools: tips & tricks
+
ImageMagick
@@ -2309,6 +2311,86 @@
+ +
+

Similar tools: tips & tricks 🎩🐰

+
+

This section introduces and explains the usage of some additional command line tools similar to FFmpeg for use in digital preservation workflows (and beyond!).

+
+
+ +
+

ImageMagick

+ + + + +
+

About ImageMagick

+

ImageMagick is a free and open-source software suite for displaying, converting, and editing raster image and vector image files.

+

It's official website can be found here.

+

Another great resource with lots of supplemental explanations of filters is available at Fred's ImageMagick Scripts.

+

Unlike many other command line tools, ImageMagick isn't summoned by calling its name. Rather, ImageMagick installs links to several more specific commands: convert, montage, and mogrify, to name a few.

+ +
+ + + + + +
+

Resize to width

+

convert input_file.ext -resize 750 output_file.ext

+

This script will also convert the file format, if the output has a different file extension than the input.

+
+
convert
starts the command
+
-i input_file.ext
path and name of the input file
+
-resize 750
resizes the image to 750 pixels wide, retaining aspect ratio
+
output_file.ext
path and name of the output file
+
+ +
+ + + + + +
+

Create thumbnails

+

Creates thumbnails for all files in a folder and saves them in that folder.

+

mogrify -resize 80x80 -format jpg -quality 75 -path thumbs *.jpg

+
+
montage
starts the command
+
-resize 80x80
resizes copies of original images to 80x80 pixels
+
-format jpg
reformats original images to jpg
+
-quality 75
sets quality to 75 (out of 100), adding light compression to smaller files
+
-path thumbs
specifies where to save the thumbnails -- this goes to a folder within the active folder called "thumbs".
+ Note: You will have to make this folder if it doesn't already exist.
+
*.jpg
The astericks acts as a "wildcard" to be applied to every file in the directory.
+
+ +
+ + + + + +
+

Create grid of images

+

montage @list.txt -tile 6x12 -geometry +0+0 output_grid.jpg

+
+
montage
starts the command
+
@list.txt
path and name of a text file containing a list of filenames, one per each line
+
-tile 6x12
specifies the dimensions of the proposed grid (6 images wide, 12 images long)
+
-geometry +0+0
specifies to include no spacing around any of the tiles; they will be flush against each other
+
output_grid.jpg
path and name of the output file
+
+ +
+ + + +