Iron Edge

Archive => Site Support => Topic started by: Devlin on May 09, 2010, 05:01:35 pm

Title: Auto resize images
Post by: Devlin on May 09, 2010, 05:01:35 pm
I was wondering if it's possible to add a function that automatically resizes images that are bigger than x (width) pixels? I've seen it on a lot of different forums. Here for example:
http://elitistjerks.com/f78/t51063-rogue_ui_your_silent_partner/p20/#post1568200

At the moment I am resizing them manually ([ img width=500] and adding a [ url] tag), but this function would save some trouble, and make the site smoother overall.

I've been looking for that function in particular, but haven't been able to find it.

No more sidescrolling pictures (http://xoops.iron-edge.co.uk/forum-new/index.php?topic=2273.msg68824#msg68824) please!
Title: Re: Auto resize images
Post by: Skymunken on May 09, 2010, 06:13:21 pm
We need a wider forum!
Title: Re: Auto resize images
Post by: Kawe / Dave on May 09, 2010, 07:25:45 pm
I just right click and 'View Picture'
Title: Re: Auto resize images
Post by: Daekesh on May 09, 2010, 08:55:58 pm
The css property max-width should do.
Title: Re: Auto resize images
Post by: delling on May 09, 2010, 09:43:45 pm
Yar, you want thumbnails generated on the server... and click for full-size...

I hate side-scrolling shit too.

Will investigate.
Title: Re: Auto resize images
Post by: delling on May 09, 2010, 09:58:45 pm
This is an oversized screenshot.

(http://217.112.90.200/~mrseb/WoWScrnShot_122309_182307.jpg)
Title: Re: Auto resize images
Post by: delling on May 09, 2010, 10:05:00 pm
And another.

(http://217.112.90.200/~mrseb/WoWScrnShot_122309_182307.jpg)
Title: Re: Auto resize images
Post by: delling on May 09, 2010, 10:07:44 pm
One more.

(http://217.112.90.200/~mrseb/WoWScrnShot_122309_182307.jpg)
Title: Re: Auto resize images
Post by: delling on May 09, 2010, 10:08:24 pm
Hm... it's working. But the bar above -- 'click to show full-size' -- isn't appearing. Not sure why.

You can right click image -> view/copy source tho'.
Title: Re: Auto resize images
Post by: Palmar on May 10, 2010, 12:21:48 am
The author could always make the image a direct link to the image location if he's bothered about people seeing it in high res. I vote for this change.
Title: Re: Auto resize images
Post by: Aleandro on May 10, 2010, 01:34:24 am
Beautiful, and picture and idea !
Title: Re: Auto resize images
Post by: Devlin on May 10, 2010, 01:44:51 pm
Testing Earthquake's pic (http://xoops.iron-edge.co.uk/forum-new/index.php?topic=2273.msg68824#msg68824)

(http://i.imgur.com/vfDaA.jpg)

SWEET! But would be nice to have option to show fullsize without having to open it in a new tab/window. Surely that "click here for full size"-bar is a well-known script/function, as I see it pretty much everywhere. I think dunemaul.org had it as well.

Edit: Another one

(http://www.darklegacycomics.com/237.jpg)


Edit 2: Is it possible that, if we find and implement that "click here for full size"-bar, that the forum's own width is increased to compensate for the increased image width? So that sidescrolling won't be needed inside the particular post, but rather the whole browser window instead? Hope you understand what I mean.
Title: Re: Auto resize images
Post by: delling on May 10, 2010, 02:17:02 pm
CBA
Title: Re: Auto resize images
Post by: Daekesh on May 10, 2010, 03:10:47 pm
Any chance u can make that happen with picture attachments, too? :)
Title: Re: Auto resize images
Post by: delling on May 10, 2010, 04:01:20 pm
Better if you just click the text link in that case -- think it opens in a new tab.
Title: Re: Auto resize images
Post by: Daekesh on May 10, 2010, 11:15:03 pm
Firefox always tries to download it instead...
Title: Re: Auto resize images
Post by: delling on May 11, 2010, 12:35:05 pm
One of the links is download, and one of them enlarges the image...!
Title: Re: Auto resize images
Post by: Daekesh on May 11, 2010, 04:47:48 pm
I get 2 things.  One is a small thumbnail, which when clicked enlarged the image IN PLACE (ie most of it disappears out the side), the other is download!