Re: [dev] Looking for simple, alpha supporting image format

From: Nick <suckless-dev_AT_njw.me.uk>
Date: Thu, 17 Jul 2014 13:09:09 -0400

Quoth FRIGN:
> Here's my version:
>
> content=`cat $1`
> if [ ${content:0:9} = "imageRGBA" ]; then
> w=${content:10:9}
> h=${content:20:9}
> echo ${content:30} | convert -size "$w"x"$h" -depth 8 rgba:- png:-

Isn't ${var:1:2} a bashism? I prefer cut :)
Received on Thu Jul 17 2014 - 19:09:09 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 17 2014 - 19:12:22 CEST