 |
|
|
| View previous topic :: View next topic |
| About this question... |
| Phew... thats a hard one, your on your own form here |
|
0% |
[ 0 ] |
| Come on!! Even a kid could do that! |
|
100% |
[ 1 ] |
|
| Total Votes : 1 |
|
| Author |
Message |
Daniël

Joined: 31 Mar 2005 Posts: 9
|
Posted: Thu Dec 01, 2005 4:15 am Image rescaling for large images only |
|
|
|
Hi,
I think I want the impossible, but do you think it is possible to only resize large images, eg. the ones which are to big for the screen (or CSS-box), and at the same time leave the smaller images untouched?
In our wiki people can add pictures, and it would be nice if they would be rescaled when they are too large, but pictures which are relatively small will get extremely strange when resized.
Compare for example http://wikimaas.org/cgi-bin/wiki.pl/2005-12-01_Gonzo and http://wikimaas.org/cgi-bin/wiki.pl/2005-11-30_workshop_acrobatics
I think I need some javascript-css merger which decides on the image classe according to the specs of the image? Would that be possible?
Daniel
Wikimaas |
|
Corey Bryant

Joined: 15 May 2004 Posts: 8154 Location: Castle Rock CO USA
|
Posted: Thu Dec 01, 2005 9:19 am |
|
|
|
|
ASP has components caled csImage and ASPJPG which can re-size image(s) on the server according to the code. I am sure there are PHP codes as well to accomplish this. |
|
supak0ma
Joined: 17 Dec 2005 Posts: 3
|
Posted: Sat Dec 17, 2005 9:08 am |
|
|
|
| yep, it can be easily done in PHP, check out PHP image functions. |
|
Daniël

Joined: 31 Mar 2005 Posts: 9
|
Posted: Tue Jan 03, 2006 8:30 am |
|
|
|
OK, the solution is:
Works flawless, except ofcourse in IE, but that doesnt stop us, right? |
|
Corey Bryant

Joined: 15 May 2004 Posts: 8154 Location: Castle Rock CO USA
|
Posted: Tue Jan 03, 2006 8:44 am |
|
|
|
| Keep in mind that is not reducing the size though, only dimensions |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|