On Thu, 17 Jul 2014 13:09:09 -0400
Nick <suckless-...@njw.me.uk> wrote:

> 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 :)

Can't somebody just write this damn thing in C already? :P

I don't have the time atm, else I would've done it myself.

Cheers

FRIGN

-- 
FRIGN <d...@frign.de>

Reply via email to