This commit is contained in:
Luke Smith
2019-11-24 07:48:33 -05:00
parent 7698abb0f9
commit 938af8f7eb
3 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash
#!/usr/bin/env bash
#get image resolution
resolution=$(identify $1 | awk '{print $3}')
IFS='x' # x is set as delimiter
read -ra ADDR <<< "$resolution"
read -ra ADDR <<< "$resolution"
width=${ADDR[0]}
height=${ADDR[1]}