Batch resizing files and stripping meta data on the command line
the ‘convert’ tool¶
Low level UNIX command line utility which is part of the ImageMagick graphics suite for messing around with images. It can do all kinds of fancy stuff , but the most useful one for Indymedia is probably batch resizing of images and reducing their disk size.
e.g. to resize the file ‘46890.jpg’ so that its largest dimension is 650 px at 80% compression/quality and output to ‘46890_new.jpg’ invoke
Command line utility written in Perl (so theoretically cross platform) which can be used to strip meta data from most AV files. To strip all meta-data from a file invoke
To strip all previous meta data and add the comment “Produced by Indymedia Birmingham collective” to ‘protest.avi’ invoke
A script for resizing files and stripping meta data in a folder¶
The following (quite hacky) bash script will find all image files with .png,.jpg,and .gif extensions and resize them to the second argument passed to the script and place them in a folder given by the first argument of the script.