Re: Dynamic image resizing?
Matthias Dieke <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Simon Rönnqvist wrote:
> Hi!
>
> I noticed "Dynamic image resizing" in the list of features at http://
> www.flux-cms.org/Features
> I'm wondering what exactly this includes, is there anything beside the
> image editing feature when uploading images?
Yes there is anything beside the image editing feature, the dynamic
resizing feature ;)
Thats means if you upload an image a image the image will displayed in a
other size as the original.
For example you upload a image into your gallery with the size of
800x600 Pixel and you have a look to your gallery you thumbs. The thumbs
are resized images of your original image. When you now click to an
image the images opens with, e.g 450x... Pixel. Thats also a resized
image of your orginal image.
To prevent "image-resizing-attacks" you have to define all posible
dyn-image-sizes in your admin-area.
How to do that?
- login ;)
- use bookmars in the right upper corner and select "site-options"
- in the bottom of the opened page you will find "image_allowed_sizes"-field
- there you can define your preferred images sizes
You also can use the dynamic-image-size-feature outside of the gallery
in every xsl-file.
For example use this in a xsl-file:
<img
href="http://your-url.com/dynimages/100/files/path-to-your-image/your-image.jpg"
/>
100 = the preferred image size for the above example.
>
> One thing that occured to me is that it'd be really nice if there would
> be a way to limit how wide an image in a certain column could be. This
> could prevent images from overlapping other columns.
You mean in your gallery???
Edit your gallery.xsl file
there you will find the to Parameterdefinitions:
<xsl:param name="thumbWidth" select="100"/>
<xsl:param name="largeWidth" select="480"/>
the first one is for the thumbnail size and the second one for the
"large" image.
If you edit this parameter don't forget to enable your new size in the
admin area.
I'm not sure if this was your question. If not just ask again or someone
else will give you the rigth answer ;)
Matthias
>
> -Simon
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms