Hi William,
Am 08.01.2012 um 19:46 schrieb William B Hudspeth:
> The Traceback:
>
> /usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py
> in get_response
>
> response = callback(request,
> *callback_args, **callback_kwargs)
>
> Local vars
> /home/wilbur/IOM/iom_catalog/views.py in buildQueryCatalog
>
> metpics='/home/wilbur/IOM/site_media/images/metpic_combined2.jpg'
> iom_logo='/home/wilbur/IOM/site_media/images/
> institute_horizontal.jpg'
> unm_logo='/home/wilbur/IOM/site_media/images/UNM Logo Sp Vert
> Color.jpg'
>
> iom = PIL.Image.open(iom_logo)
> metpic = PIL.Image.open(metpics)
> unm = PIL.Image.open(unm_logo)
>
> nx, ny = iom.size
> mx, my = metpic.size
> ux, uy = unm.size
>
> bm_iom = bitmap.bitmap(36, 765, iom,
> width=nx*unit.x_pt,height=ny*unit.x_pt)
>
> bm_metpic = bitmap.bitmap(144, 280, metpic,
> width=mx*unit.x_pt,height=my*unit.x_pt)
>
> Local vars
> /usr/lib/pymodules/python2.6/pyx/bitmap.py in __init__
>
> raise ValueError("implementation
> limited to 8 bit per component only")
> Local vars
>
> -------------------------------------------------------------------Sorry, I still don't understand what's going on here. It would be great if you could try to reproduce the problem outside of django. The traceback from a console app would be very helpful! (The problem is, that non of the shown code creates a jpegimage instance which could be responsible for the ValueError raised. To my mind we're looking at the wrong code.) > There are three images I am trying to insert...running identify for > each gives: > > metpic_combined2.jpg JPEG 324x324 324x324+0+0 8-bit DirectClass 40.7KiB > 0.000u 0:00.000 > > institute_horizontal.jpg JPEG 540x18 540x18+0+0 8-bit DirectClass > 3.22KiB 0.000u 0:00.000 > > UNM Logo Sp Vert Color.jpg JPEG 4000x2100 4000x2100+0+0 8-bit > DirectClass 1.57MiB 0.000u 0:00.000 Hmmm, this does not show any hint for some special format of one of the files. Please try to reproduce the problem in a more minimalistic example as suggested above. Best, André -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) [email protected], http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
