[Zope] img src="resized image"
marc lindahl
marc@bowery.com
Sat, 20 Oct 2001 12:14:05 -0400
This sounds like what my ImageTag_hotfix product is doing...?
> From: "Paul Zwarts" <paz@oratrix.com>
> Organization: Oratrix Development
> Date: Sat, 20 Oct 2001 10:56:26 +0200
> To: "'Paul Zwarts'" <paz@oratrix.com>, <zope@zope.org>
> Subject: RE: [Zope] img src="resized image"
>
> Another note and simplified question....
>
> Is there a way I can get around the image objects function to return an
> html tag. I basically want to create a temporary raw image object that
> can be cached by the client that does NOT have the <img output, but DOES
> have to image.tag capabilities of resizing the image. This way I can
> call it as:
>
> <td width="20" height="20"
> background="/imageGenedByZopeWith20by20dims"> </td>
>
> Gonna have to write python to do this, no?
>
> P
>
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Paul
> Zwarts
> Sent: Saturday, October 20, 2001 10:37 AM
> To: zope@zope.org
> Subject: [Zope] img src="resized image"
>
> Greetings zopers,
>
> What is the difference between these constructions:
>
> <img src="someImage">
> <dtml-var someImage>
>
> The reason being is that I want to use the <dtml-var
> "ImageObject.tag(width=var1, height=var2)"> construction to put custom
> sized images into the background attribute of a table.
>
> Of course it doesn't work, and I can make some guesses as to why, but I
> just wanted to know what the fundamental differences between calling an
> image object by specifying the url and specifying an image by having
> zope render it into the document with a <dtml-var >.
>
> Is there a way that I can access a resized image object from zope in the
> src=".../" method? Can I get this from the request or must I create temp
> objects from zope somewhere to access?
>
> The reason why I want to do this is to be able to resize a web interface
> by a session variable, and I can do it except for those pesky background
> images which are important to repeat, but needs to be resized to view
> correctly.
>
> Thanks in advance.
> Paul Zwarts
>
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )