Yes, I also discovered this as I continued reading. The results however,
were not good as I continue to see the "Can't determine image size from
output of.." error message. Is there a prefered version of ImageMagick I
should have installed? 

A.

Dave O'Neill wrote:
> 
> 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_/_

-- 
+------------------------------------------------+
| _\^/_              FilmCan                     |
| >_ _<  The One-Stop Source for Movie Showtimes |
|  '|`         http://www.film-can.com           |
| Phone: 599-5041                  Fax: 599-4013 |
+------------------------------------------------+

Reply via email to