Re: Creating ZMSGraphic Objects

Sebastian Tänzer <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
Hello Mr. Greitzke,

We are currently developing a so called "mediamanager" plugin for ZMS  
(similiar to NextGen gallery in Wordpress) for a client that allows to  
do these things:

- Add new images and files (we created a special type "lightboximage"  
for this that allows more customization than the normal ZMSGraphic,  
for example thumbnailsize, use lightbox etc.)
- Add galleries (from ZIP files, too and you can set the thumbnail- 
size - images in galleries are instances from type "lightboximage")
- Browse images and media files through own new browser and insert  
them into textareas using fckeditor (created a plugin for this, too) -  
this is going to replace ZMS's default link-browser, too.

The parts till here are done already, but not ready for distribution  
yet.
Currently in development are these functions:

- Edit images (resize, crop)
- Manage galleries (order, set titles etc.)

Most of this is done using JS with jquery.
My plan is to finish this within the next 7 days.

I could send you the special objects of lightboximage and  
lightboxgallery that contain the functions like creating thumbnails  
automatically etc.
But: These do not use the default ZMSGraphics but rely on our  
lightboximage-object.

I have to talk to the client but I think it will be no problem to  
release the
complete package as a product or perhaps for free at all.

If you are interested please contact me at [email protected]

Mit freundlichen Grüßen / Yours sincerely
Sebastian Tänzer

amcm web Tänzer e.K.
Beratung, Design & Entwicklung für Internetlösungen
Consulting, design & development for the Web.

c/o amcm GmbH
Kekuléstr. 39
53115 Bonn
Germany

Tel +49-228-33646-23
Fax +49-228-33646-13

[email protected]
http://www.amcm.de




Am 24.06.2008 um 11:46 schrieb Tobias Greitzke:

> Dear ZMS-Developers,
>
> I'm facing some difficulties generating a ZMSGraphic by dtml or python
> script. First thing is that I would like to crate a ZMSGraphic by  
> using
> a Zope-Photo Object, second to zip-upload images and auto-create  
> thumbnails.
>
> 1) So fare I managed to read the image information from the photo  
> object
> but I can't figure out how to load it into the ZMSGraphic.
>
> I tried to add the graphic with the following function while "ob"
> contains the photo-image file:
>
> manage_addZMSGraphic({'id_prefix':'id','active': 
> 1,'img':ob},context.REQUEST)
>
> I could find out that img needs something like a dictionary but I  
> can't
> find out how it should look like and what the ZMSGraphic is doing  
> with it.
>
> 2) right now zip-uploading images into the mediafolder creates only  
> one
> image size. I tried to rewrite the onChangeObjEvt method of the
> ZMS-MediaFolder but I can't figure out how to enable the
> generate_preview_imghires or generate_preview_imgsuperres.
> This is what I tried:
>
> <dtml-call "REQUEST.set('img',manage_addZMSGraphic(
>  {'id_prefix':'files'
>  ,'active':1
>  ,'generate_preview_imghires:int':1
>  ,'generate_preview_imgsuperres:int':1
>  ,'imgsuperres':ob
>  },REQUEST))">
>
>
> ZMS-Version: 2.10.5-23
>
>
>
> Thanks
> Tobias Greitzke
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.