Loading...
 
Skip to main content

Features / Usability


Server-side image resampling

posts: 54 France

I would like to use server side down-sampled images in the wiki with the following syntax (the image is actually 1024px wide) :

Image

The point is : the image is NOT resampled, it just uses a width attribute for img tag, which results is ugly browser rendering (except in Opera that resamples images on-the-fly).

The only workaround I cound find is to use the thumbed picture with the syntax :

Image

But then, the size is fixed to the thumb size, which is not convenient.

posts: 3665 United States

>
> The only workaround I cound find is to use the thumbed picture with the syntax :
> {img src=show_image.php?name=picture.png&thumb=1 width=600}
> But then, the size is fixed to the thumb size, which is not convenient.
>
>

In your image gallery, add the scaled size that you want (such as 600x600) — see the docs for details.

Then you can use that scale for your resized image:
{img src=show_image.php?id=XXXXXX&scalesize=600}

HTH,

-Rick
-My Tiki Blog: Help, Hints, and Hacks

posts: 54 France

> In your image gallery, add the scaled size that you want (such as 600x600) — see the docs for details.
>
> Then you can use that scale for your resized image:
> {img src=show_image.php?id=XXXXXX&scalesize=600}

Thanks a lot Rick, that happens to work perfectly !

One question though : Why do we have to choose scales a priori, instead of created them on-the-fly, as other wikis do (like ))MediaWiki(( for instance) ? It doesn't seem tougher to code from my perspective.