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

From: FRIGN <dev_AT_frign.de>
Date: Thu, 17 Jul 2014 19:15:40 +0200

On Thu, 17 Jul 2014 13:09:09 -0400
Nick <suckless-dev_AT_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 <dev_AT_frign.de>
Received on Thu Jul 17 2014 - 19:15:40 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 17 2014 - 19:24:27 CEST