”Required:” * [http://www.graphicsmagick.org/ GraphicsMagick] ”Description:” Use [http://www.graphicsmagick.org/ GraphicsMagick] ({{gm identify ”filename”}}) to find out the image information string. You’ll get a string like “{{00000001.jpg JPEG 260×180+0+0 “DirectClass“ 8-bit 13.0k 0.000u 0:01}}”. Now, you can parse the width and height information with sed ({{sed -e ‘s/.* \([0-9]\{1,\}\)x\([0-9]\{1,\}\).*/\1/’}}). If you use {{\1}} you will get the width, [...]