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
[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
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
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
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
--
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
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
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
[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