On Thu, 17 Jul 2014 11:48:13 -0400
Charlie Murphy <cmsmur...@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 @
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 <d...@frign.de>

Reply via email to