for F in public/*/cover.jpg public/*/cover.png do echo Processing: $F B=$(echo $F | sed s/.jpg// | sed s/.png//) D=$(dirname $F) PORTRAIT=$(convert $F -format '%[fx:w