Re: [Zope] image processing site quidance...

2006-02-24 Thread Chris Withers

Nicolas Georgakopoulos wrote:


That's the point , I think it will be easier (for me) if I write a 
python program that is called by Zope external method to make the image 
processing in the local file system.
So the image files should be uploaded in the local files system to be 
processed and then able to be read it from Zope to be displayed and 
downloaded 


Sounds fine, LocalFS or Infrae's Railroad or Tramlines are ways you 
might want to look at server the generated images out once you've made 
them and saved them on the local file system...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] image processing site quidance...

2006-02-23 Thread Nicolas Georgakopoulos



Chris Withers wrote:

Nicolas Georgakopoulos wrote:


I don't have any experience writing external products... should be 
easy if I finish the python programming part as a simple traditional 
python release and then to implement it as a Zope product ?


Yeah, sure be easy enough... and we're to help if you run into 
problems :-)

Thanks (again) Chris :-)


For what part of my needs should I read about ZODB ? Can't 
understand  the not to read whole image objects at once


Where are you storing your image data?
That's the point , I think it will be easier (for me) if I write a 
python program that is called by Zope external method to make the image 
processing in the local file system.
So the image files should be uploaded in the local files system to be 
processed and then able to be read it from Zope to be displayed and 
downloaded 

Is there a strong reason to do it otherwise  (ZODB) ?
begin:vcard
fn:Nicolas Georgakopoulos
n:Georgakopoulos;Nicolas
email;internet:[EMAIL PROTECTED]
tel;work:2810 391945
tel;fax:2810 391937
tel;cell:6945 714 578
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] image processing site quidance...

2006-02-22 Thread Chris Withers

Nicolas Georgakopoulos wrote:


I don't have any experience writing external products... should be easy 
if I finish the python programming part as a simple traditional python 
release and then to implement it as a Zope product ?


Yeah, sure be easy enough... and we're to help if you run into problems :-)

For what part of my needs should I read about ZODB ? Can't understand  
the not to read whole image objects at once


Where are you storing your image data?

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] image processing site quidance...

2006-02-21 Thread Nicolas Georgakopoulos



Tino Wildenhain wrote:

Nicolas Georgakopoulos schrieb:
  

Hello Zopistas,

I need a little guidance for a site that must make image processing on
the fly.
Users should be able to upload image files and after some pixels
manipulation they should see the image preview after the changes and
download it.



You should be much more precise about what some pixels manipulation
actually means :-) Writing a drawing program is not so easy I think.
Maybe with more client side intelligence...
  
It will not be some kind of drawing program , just some simple changes 
in the pixels values.

I have installed PIL successfully for that reason (thanks to smiley
Chris) so I can use it as an external method.



For more then just a single convert (even then) I'd write a complete
external product. Its much easier to test and install and can do more.
  
I don't have any experience writing external products... should be easy 
if I finish the python programming part as a simple traditional python 
release and then to implement it as a Zope product ?

I have thought to do this implementation uploading the file to the
ZopeDB and change it there or should the file be uploaded in the local
file system ?



Actually depends on what you want to do and what you want to do
after the changes. E.g. do you want to save a complete history
of the manipulation? Then I'd go ZODB completely. If you dont
want to save the image, I'd go tempfiles and pass the handles
to them around the SESSION. (see tempfile module)

Maybe a combination is apropriate.
  

Saving the history of the image process  actions it is not required.
Saving the images ... maybe. I will check this tempfile module.

either way , what should I know so I can do that ?



You should experiment with PIL - maybe outside zope.
  
Im am already experimenting with PIL in a python shell and learning PIL 
it is not my purpose of this mail ;-)



You should learn how to write a simple python based
product. 

Will check the Zope book  for that..

You should read about ZODB programming so
not to read whole image objects at once.
  
For what part of my needs should I read about ZODB ? Can't understand  
the not to read whole image objects at once


cheers..
begin:vcard
fn:Nicolas Georgakopoulos
n:Georgakopoulos;Nicolas
email;internet:[EMAIL PROTECTED]
tel;work:2810 391945
tel;fax:2810 391937
tel;cell:6945 714 578
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] image processing site quidance...

2006-02-20 Thread Tino Wildenhain
Nicolas Georgakopoulos schrieb:
 Hello Zopistas,
 
 I need a little guidance for a site that must make image processing on
 the fly.
 Users should be able to upload image files and after some pixels
 manipulation they should see the image preview after the changes and
 download it.

You should be much more precise about what some pixels manipulation
actually means :-) Writing a drawing program is not so easy I think.
Maybe with more client side intelligence...

 I have installed PIL successfully for that reason (thanks to smiley
 Chris) so I can use it as an external method.

For more then just a single convert (even then) I'd write a complete
external product. Its much easier to test and install and can do more.

 I have thought to do this implementation uploading the file to the
 ZopeDB and change it there or should the file be uploaded in the local
 file system ?

Actually depends on what you want to do and what you want to do
after the changes. E.g. do you want to save a complete history
of the manipulation? Then I'd go ZODB completely. If you dont
want to save the image, I'd go tempfiles and pass the handles
to them around the SESSION. (see tempfile module)

Maybe a combination is apropriate.

 either way , what should I know so I can do that ?

You should experiment with PIL - maybe outside zope.
You should learn how to write a simple python based
product. You should read about ZODB programming so
not to read whole image objects at once.
For the history part, if you want that, look at the implementation
of OFS.History.

 thanks in advance.

Good luck :-)

--Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )