[horde] Can't add pics to Ansel - syntax error

Simon Wilson simon at simonandkate.net
Thu Oct 20 12:31:14 UTC 2011


----- Message from Michael J Rubinsky <mrubinsk at horde.org> ---------
    Date: Wed, 19 Oct 2011 23:54:05 -0400
    From: Michael J Rubinsky <mrubinsk at horde.org>
Subject: Re: [horde] Can't add pics to Ansel - syntax error
      To: horde at lists.horde.org


> Quoting Simon Wilson <simon at simonandkate.net>:
>
>> I have installed Ansel 2.0 RC1.
>>
>> I created a gallery, and tried to add a picture to the gallery. The  
>> upload to gallery UI says "SyntaxError (stop sign) Syntax error"  
>> when I click "^Upload". The Horde log says this... <snip>
>>
> Can you see what the ajax request looks like when you click upload?  
> You can use something like Firebug or webkit's developer tools to  
> see this.
>
>> I have no shares set on anything outside a couple of calendars.
>
> Every Ansel gallery is a share.
>
> -- 
> mike
>


OK, doing it on my home PC with Firefox instead of horrible IE8 at  
work, it appears to upload. However, then viewing the Gallery shows a  
partially uploaded JPG with about 3/4 grey.

Horde log reads:

2011-10-20T22:24:28+10:00 ERR: HORDE [ansel] Unknown error running  
exiftool command [pid 1599 on line 59 of  
"/usr/share/pear/Horde/Image/Exif/Exiftool.php"]
2011-10-20T22:24:32+10:00 ERR: HORDE [ansel] Error running command:  
/usr/bin/convert  "/tmp/imgIKsUvx"'[0]' -thumbnail 50x50^ -gravity  
center -extent 50x50 +profile "*" jpeg:"/tmp/imgmrokCP" 2>&1
convert: Premature end of JPEG file `/tmp/imgIKsUvx'.
convert: Corrupt JPEG data: premature end of data segment `/tmp/imgIKsUvx'.
convert: invalid argument for option `50x50^': -thumbnail. [pid 1595  
on line 441 of "/usr/share/pear/Horde/Image/Base.php"]
2011-10-20T22:24:32+10:00 EMERG: HORDE [ansel] Error running command:  
/usr/bin/convert  "/tmp/imgIKsUvx"'[0]' -thumbnail 50x50^ -gravity  
center -extent 50x50 +profile "*" jpeg:"/tmp/imgmrokCP" 2>&1
convert: Premature end of JPEG file `/tmp/imgIKsUvx'.
convert: Corrupt JPEG data: premature end of data segment `/tmp/imgIKsUvx'.
convert: invalid argument for option `50x50^': -thumbnail. [pid 1595  
on line 1160 of "/var/www/horde4/ansel/lib/Image.php"]

For each time I tried to upload the file there are two files in /tmp -  
e.g. imgmrokCP @ 0B, and imgIKsUvx @ 65kB. Downloading the 65kB one  
and adding .jpg reveals the partially uploaded mostly grey jpg.

I have tried with a couple of pics - can send them to you Mike if you  
need to see them.

Simon



More information about the horde mailing list