Thanks for the help. I just did it and it mantains aspect ratio.
On Tue, Jun 22, 2010 at 12:38 AM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
On 06/22/2010 07:19 AM, Caleb James DeLisle wrote:
If think if you specify the image width and not
the height, it will scale
maintaining ratio.
It is scaling in the browser not on the server.
[[image:myImg.png||width=800px]]
You can also use the 'class' or 'style' attributes to apply CSS
properties like max-height or max-width:
[[image:myImg.png||class="limitedWidth"]]
[[image:myImg.png||style="max-width:500px"]]
Marius
Caleb
Abel Solórzano Astorga wrote:
> Hi,
>
> I am currently working with big images on my xwiki site. Is there a way
to
> make the images auto-scale to the width of
the xWiki page content if the
> image is too big? In order to avoid the horizontal scroll bar that
appears
> on the page and adjust the images to the
width of the xWiki page
content. I
> am using the colibri skin.
>
> To make my question more general, What is the best way to dynamically
resize
images on
xwiki? or set a max size for the images maintaining the aspect
ratio.
Thanks,
Abel
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users