Loading...
 
Features / Usability

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.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting