What is the best way to use Images in an ezpublish site ???

Author Message

Patrice DUCLAUD

Tuesday 03 January 2006 8:09:03 am

I've an image, image.png which is about 11 ko (612*486).
if i use <img src={"image.png|ezimage"} /> there is no problem, image.png appear in my page and is still 11 ko .

when i import this image in the media library (object_id = 88), i have 5 images in var/cache/siteaccess/storage/
large.png 77 ko (360*288)
small.png 14 ko (110*87)
reference.png 136 ko (600*476)
listitem.png 16 ko (110*87)
image.png 11 ko (612*486)

and when i use <object id="88" /> in one page of my site,
it's large.png which is choosen (77 ko) and i consider it's not the best choice for me.

What is the best way to manage image in an ezpublish site ?
Is it possible to indicate the image i want to be downloaded in my page, not an image bigger than the original by example.

Thanks

Patrice.

bisk

Tuesday 03 January 2006 12:13:48 pm

Use the size parameter to specify the image size. Use size="original" to get the original image file. Or use any of the other sizes you've listed.

Example:

<object id="88" size="original" /> 

or

<object id="88" size="small" />

The sizes are defined (and can be altered) in your image.ini and in the image.ini overrides.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Patrice DUCLAUD

Wednesday 04 January 2006 8:22:37 am

Thanks Bisk,

"size="original" works fine for me.

Patrice

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.