Probelem about image size and dimensions

2006-03-23 Thread gongcheng_g
I got a piece of python script to upload file and it can upload it to different folders on server depend on the type of file is image or not. but I also want to restrict the size and dimensions of file if it is a image file.Could anyone help me out? Parameter List:id, file, title='',folder

Re: Probelem about image size and dimensions

2006-03-23 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: I got a piece of python script to upload file and it can upload it to different folders on server depend on the type of file is image or not. but I also want to restrict the size and dimensions of file if it is a image file.Could anyone help me out? Use PIL, the

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Thank you for your reply. I have been learning python only 2 weeks. According what u said. I tried to import Image but there 's an error on the server. here is the message Error Type: ImportError Error Value: import of Image is unauthorized -- http://mail.python.org/mailman/listinfo/python-list

Re: Probelem about image size and dimensions

2006-03-23 Thread Diez B. Roggisch
ChengGong wrote: Thank you for your reply. I have been learning python only 2 weeks. According what u said. I tried to import Image but there 's an error on the server. here is the message Error Type: ImportError Error Value: import of Image is unauthorized Are you by chance running under

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Diez, I asked the administrator that they won't allow me to import Image and PIL in Zope. I am wondering that how can I get the height and width and the size of the image in this situation? Can I just use dtmlto get Image's addtributs? Cheng --

Re: Probelem about image size and dimensions

2006-03-23 Thread Diez B. Roggisch
ChengGong wrote: Diez, I asked the administrator that they won't allow me to import Image and PIL in Zope. I am wondering that how can I get the height and width and the size of the image in this situation? Can I just use dtmlto get Image's addtributs? No. At least not easily. You'd have

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Hi Diez, They do not allow me to do what u said above. so I do not have any idea what is supposed to do. however i am think that if I can get the id of the image, i have chance to modify it. This is what i programed but it is an empty page, I but it in images folder dtml-var standard_html_header

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Is that because I can not import PIL ? then i can not use codes above to show all image id? -- http://mail.python.org/mailman/listinfo/python-list

Re: Probelem about image size and dimensions

2006-03-23 Thread dwelch
[EMAIL PROTECTED] wrote: I got a piece of python script to upload file and it can upload it to different folders on server depend on the type of file is image or not. but I also want to restrict the size and dimensions of file if it is a image file.Could anyone help me out? Parameter