On Wed, Feb 20, 2002 at 11:25:39PM -0500, FilmCan Web Support wrote:
> The attempt to parse the dimensions of the image fail, I suspect due to
> the presence of the '+0+0' string. A quick tweak in ImageParse and I'm
> no longer seeing the "Can't determine image size from output of.."
> error. In my generated file, however, all I'm seeing are [img]
> representations. 
> 
> Did I miss something obvious when I changed:
>       match = re.search(r"\s([0-9]+)x([0-9]+)\s", info)
> to
>       match = re.search(r"\s([0-9]+)x([0-9]+)+0+0\s", info)

In regular expression matching, the + character is special -- it means
'match one or more of the previous thing'.  To make it work, you need to
escape the + characters with a backslash, like so:
        match = re.search(r"\s([0-9]+)x([0-9]+)\+0\+0\s", info)

I haven't tested this, but it should work.

-dave0
-- 
    ('>
    //\  dmo at acm dot org
    v_/_  

Reply via email to