[Zope-CMF] TIFFS and CMFOptions

David Stockwell davids@sdsc.edu
Mon, 03 Feb 2003 14:20:30 -0800


I am still trying to find a way to get TIFF files stored externally 
under CMF.
Currently installed a combo of Photo, CMFPhoto and PIL.  I install
CMFPhoto with the external method, and get the skins and types created.

Then when I try to create a Photo under CMF I get the following message.

Cannot locate object at: 

Seems to be having reouble finding things.

Thanks for assistance.

CMF 1.3

David Stockwell wrote:

> Yes I have PIL.  As I want to stay within the CMF framework,
> and can't expect others to download TIFF plugins for their browsers,
> so my best bet is probably to modify CMFOptions to convert the format
> of the TIFF files to JPEG on upload, and save as JPEG.  I would
> prefer to keep an original format, and the Photo/IPTD/Exif products
> seem very good, but I would have to integrate them into CMF.
> Thumbnails would be nice though.
> Raphael Ritz wrote:
>> You might want to consider using Python's imaging library PIL
>> for that purpose. The Zope Book contains an explicit example
>> of how to include this.
>> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx 
>> (look for PIL or imaging on that page)
>> Raphael
>> David Stockwell wrote:
>>> Hi,
>>> I haven't made progress with and would appreciate help.
>>> I have people with TIFF files would do not want to convert them
>>> but want to upload them and see them none-the-less.
>>> I am using CMFOptions to provide an external image type to store them.
>>> Seems like I can only use png, jpeg and gif though.
>>> Either I could (1) convert them to one of jpeg, png or gif on 
>>> upload, or
>>> (2) change Zope to be able to display TIFFs as a native format. I 
>>> would like to do it within the CMFOptions. If the
>>> answer is to "write an external method" or some such thing
>>> I'll need some actual code to do it as my zopertise mediocre.
>>> Thanks
>> _______________________________________________
>> Zope-CMF maillist  -  Zope-CMF@zope.org
>> http://mail.zope.org/mailman/listinfo/zope-cmf
>> See http://collector.zope.org/CMF for bug reports and feature requests

David Stockwell, Ph.D.
Assistant Research Scientist
San Diego Supercomputer Center
tel. 858 8220942

Biodiversity Insight Systems - http://biodi.sdsc.edu