Canon Digital Photography Forums  

P.O.T.N. SUPPORT SHOP IS OPEN, check it out now!

Go Back   Canon Digital Photography Forums > 'Forum Feedback' section > Forum Talk
Register Rules FAQ Members List Search Today's Posts Mark Forums Read



View Poll Results: Is this solution ok?
Excellent, well done! 42 67.74%
It's ok, I can live with it 7 11.29%
I have no opinion, do as you please 5 8.06%
I hate it, give me full freedom to post any size I want 8 12.90%
Voters: 62. You may not vote on this poll

Reply
 
Thread Tools Display Modes
Old 8th of January 2004 (Thu)   #1
Pekka
El General Moderator
 
Pekka's Avatar
 
Join Date: Mar 2001
Location: Hellsinki, Finland
Posts: 14,078
Default New image size code in place

I did some serious hacking into phpbb (which is btw programmed in very unopen 70's manner )

Ok, now the image thing goes like this:
  • If your image goes wider or higher than 800 pixels, it is reduced to 800 high or wide. Link to original is provided.
  • If your image is smaller than 800, or exactly 800, it is untouched. Mouseover shows image URL.
  • If image size of your post can not be retrieved, size is fixed to 500 wide. Link to original is provided.

This police change applies immediately to all images posted on this forum.

THIS WILL SLOW DOWN POSTS CONTAINING IMAGES. How much depends solely on servers the images are coming from.

Under each image there small info text what was done by the forum. I also changed some table code that excessive wide posts do not widen the whole page.

Image sizing means image DISPLAY is forced to certain size, it does NOT mean image is resampled.

DISCLAIMER: IF THIS FEATURE PROVES TO BE EXCESSIVE STRESS TO THIS SERVER IT WILL BE REMOVED.
__________________
This signature signifies my significance significantly
Photo Gallery

----------------------------
Pekka is online now   Reply With Quote
This ad block will go away when you log in as member
Old 8th of January 2004 (Thu)   #2
timmyquest
User is banned from forums
 
Join Date: Dec 2003
Location: Outside of Chicago
Posts: 4,178
Default

Perfect, i think that a picture does not need to be much bigger then 800 pixles anyways
timmyquest is offline   Reply With Quote
Old 8th of January 2004 (Thu)   #3
msvadi
Goldmember
 
Join Date: Jul 2003
Posts: 1,974
Default

Excellent!
msvadi is offline   Reply With Quote
This ad block will go away when you log in as member
Old 8th of January 2004 (Thu)   #4
CyberDyneSystems
Wait, all that time and all I get is "Cream of the Damn Crop" ?!!!!!!!!!!!!!!!!
 
CyberDyneSystems's Avatar
 
Join Date: Apr 2003
Location: Providence RI
Posts: 37,424
Default

That sounds like a brilliant plan! 8)
CyberDyneSystems is online now   Reply With Quote
Old 9th of January 2004 (Fri)   #5
Ikinaa
Senior Member
 
Ikinaa's Avatar
 
Join Date: Jul 2003
Location: Luxembourg
Posts: 1,518
Default

Hi Pekka,

let's see if I get it right...
Your server retrieves info about the picture from the server where it's located but not the picture itself.
So you see if the picture is bigger than allowed and then the picture is resized (by the browser, style attribute 'small' if i'm correct)
The picture isn't resampled, because you don't retrieve it.
The client retrieves the whole picture (even if it's 3 MB in size), resizes it for viewing with a link to view it in a whole.

If it's so, I don't see the sense of it...
The loading time won't reduce but increase because of the processing you do, the user will have to click twice to see the picture in original
So what's the gain?

PS : correct me if I'm wrong...
Ikinaa is offline   Reply With Quote
Old 9th of January 2004 (Fri)   #6
slejhamer
Senior Member
 
slejhamer's Avatar
 
Join Date: Jun 2002
Posts: 1,758
Default

Don't care much about the image size.

Hate the side effect.

But I guess if people want to display more than one pic in a thread, they can do it in multiple posts rather than all at once. A minor inconvenience.
slejhamer is offline   Reply With Quote
Old 9th of January 2004 (Fri)   #7
Pekka
El General Moderator
 
Pekka's Avatar
 
Join Date: Mar 2001
Location: Hellsinki, Finland
Posts: 14,078
Default

Quote:
Originally Posted by Ikinaa
Hi Pekka,

let's see if I get it right...
Your server retrieves info about the picture from the server where it's located but not the picture itself.
So you see if the picture is bigger than allowed and then the picture is resized (by the browser, style attribute 'small' if i'm correct)
The picture isn't resampled, because you don't retrieve it.
The client retrieves the whole picture (even if it's 3 MB in size), resizes it for viewing with a link to view it in a whole.

If it's so, I don't see the sense of it...
The loading time won't reduce but increase because of the processing you do, the user will have to click twice to see the picture in original
So what's the gain?

PS : correct me if I'm wrong...
To download it to my server and actually resize it is also quite possible to do, but the point is not to limit image size in kilobytes. The point is that it is nearly impossible to read messages and actually view (on most common monitor sizes) images when you get six 3000 pixels wide images on one message - even if browsers claim to do image scaling they do not do it when image is inside a table.

Posters should take care that images are sensible in download size.
__________________
This signature signifies my significance significantly
Photo Gallery

----------------------------
Pekka is online now   Reply With Quote
Old 9th of January 2004 (Fri)   #8
Pekka
El General Moderator
 
Pekka's Avatar
 
Join Date: Mar 2001
Location: Hellsinki, Finland
Posts: 14,078
Default

Quote:
Originally Posted by slejhamer
Don't care much about the image size.

Hate the side effect.

But I guess if people want to display more than one pic in a thread, they can do it in multiple posts rather than all at once. A minor inconvenience.
Side effect is now fixed. All images are displayed.
__________________
This signature signifies my significance significantly
Photo Gallery

----------------------------
Pekka is online now   Reply With Quote
Old 9th of January 2004 (Fri)   #9
sdommin
Senior Member
 
sdommin's Avatar
 
Join Date: Dec 2002
Location: New Hampshire
Posts: 1,206
Default Perfect!!

Excellent job, Pekka. Thanks for your hard work.
__________________
Scott

http://www.pbase.com/sdommin/favorites
sdommin is offline   Reply With Quote
Old 9th of January 2004 (Fri)   #10
slejhamer
Senior Member
 
slejhamer's Avatar
 
Join Date: Jun 2002
Posts: 1,758
Default

Quote:
Originally Posted by Pekka

Side effect is now fixed. All images are displayed.
Excellent, thanks Pekka! Good work!
slejhamer is offline   Reply With Quote
Old 9th of January 2004 (Fri)   #11
Anonymous
Member
 
Join Date: Jan 2004
Posts: 63
Default



JUST SAYING THANK YOU PEKKA




MARIE

Anonymous is offline   Reply With Quote
Old 16th of February 2004 (Mon)   #12
Vegas Poboy
Member
 
Vegas Poboy's Avatar
 
Join Date: Aug 2003
Location: Las Vegas, NV
Posts: 950
Default

Thanks for your dedication & hard work.
__________________
$$$ in Canon Gear & Lighting Equipment
Vegas Poboy is offline   Reply With Quote
Old 8th of March 2004 (Mon)   #13
manncer
Member
 
Join Date: Feb 2004
Posts: 109
Default



Wow! Fantastic...

manncer
manncer is offline   Reply With Quote
Old 9th of March 2004 (Tue)   #14
timmyquest
User is banned from forums
 
Join Date: Dec 2003
Location: Outside of Chicago
Posts: 4,178
Default

Quote:
Originally Posted by Pekka
Quote:
Originally Posted by Ikinaa
Hi Pekka,

let's see if I get it right...
Your server retrieves info about the picture from the server where it's located but not the picture itself.
So you see if the picture is bigger than allowed and then the picture is resized (by the browser, style attribute 'small' if i'm correct)
The picture isn't resampled, because you don't retrieve it.
The client retrieves the whole picture (even if it's 3 MB in size), resizes it for viewing with a link to view it in a whole.

If it's so, I don't see the sense of it...
The loading time won't reduce but increase because of the processing you do, the user will have to click twice to see the picture in original
So what's the gain?

PS : correct me if I'm wrong...
To download it to my server and actually resize it is also quite possible to do, but the point is not to limit image size in kilobytes. The point is that it is nearly impossible to read messages and actually view (on most common monitor sizes) images when you get six 3000 pixels wide images on one message - even if browsers claim to do image scaling they do not do it when image is inside a table.

Posters should take care that images are sensible in download size.
I didnt read this thread since my original post. With what you say here in mind. There is a hack out there for phpbb forums that fixes this problem. Let me get you an example.

http://www.sttr2.com/bbs/viewtopic.php?p=77978#77978

If you want i'll ask my friend (who runs that board) where she got it.
timmyquest is offline   Reply With Quote
Old 6th of May 2004 (Thu)   #15
angst911
Junior Member
 
Join Date: May 2004
Posts: 22
Default

now just publish the code........
angst911 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Size vs File Size vs Pixel Dimensions vs Saved Size Banbert Weddings and Other Family Events 5 3rd of August 2007 (Fri) 08:23
BB code size value is too big. Huh? FotOz Forum Talk 9 16th of May 2007 (Wed) 20:21
Vewfinder image size vs actual pic size? muscleflex Canon EOS Digital Cameras 10 20th of June 2005 (Mon) 05:34


All times are GMT -5. The time now is 12:03.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This forum is not affiliated with Canon in any way and is run as a free user helpsite by Pekka Saarinen, Helsinki Finland. You will need to register in order to be able to post messages. Cookies are required for registering and posting. HTML in messages is not allowed, plain website addresses are automatically made active by the board.