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

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

On Thu, 17 Jul 2014 11:48:13 -0400
Charlie Murphy <cmsmurp00_AT_gmail.com> wrote:

> Here's a script for turning one back into PNG.

This doesn't work for me. After modifying it for quite a bit, I get the
error:

convert: unexpected end-of-file `-': No such file or directory _AT_
error/rgb.c/ReadRGBImage/231.

As so often, this error is undocumented.

Cheers

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:-
else
        echo "bad image signature" >/dev/stderr
        exit 1
fi

-- 
FRIGN <dev_AT_frign.de>
Received on Thu Jul 17 2014 - 19:07:53 CEST

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