Tag Archives: convert

HOWTO batch resize pictures

Resize and apply prefix: $ for file in *.jpg; do convert $file -resize 25% re_$file; done Add suffix _re, place the files in parent folder $ convert *.jpg -resize 80% -set filename:f ‘%t’ ../’%[filename:f]_re.jpg’ Will place converted files in the folder above. The option -set filename:f ‘%t’ sets the property filename:f to the current filename …

Continue reading

Convert IMG image to ISO on Linux

Unfortunately, IMG images cannot be burnt directly, so we convert them to ISO. There is a nice tool called ccd2iso to accomplish this task. $ ccd2iso <IMG input file> <ISO output file> Sometimes the above attempt results in an error message, such as Unrecognized sector mode (0) at sector 0! When viewing the img file …

Continue reading