Bandwidth..any tips on cutting it down when serving A LOT!?? Bandwidth..any tips on cutting it down when serving A LOT!??
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Bandwidth..any tips on cutting it down when serving A LOT!??

Started by jeeplaw, October 23, 2003, 01:16:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jeeplaw

Hey guys, here's my dillema, I recently put up a website dedicated to funny pics on the internet..the only thing is I am going through bandwidth like water! Now, I know it was to be expected, but in one day I did close toa gig of transfer. And this was with inviting 3 groups from 3 diff. boards to load test the server. I can only imagine once I start advertising the site how much bandwith I'm going to go through.

Now, my question is this: Is there a default way I can cut down on bandwith within coppermine? I mean, do I adjust the display pixel size lower? Do I not show as many pictures on one page (cut down on the rows and columns)? I appreciate the help.

//www.ownedforums.com is the site in question. Thanks.[/url]

DefenceTalk.com

I have done two things to keep a lid on this:

This:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Falbums%2FF-16%2Fnormal_F-16-DefenceTalk.com-015.jpg&hash=0ee924c45ffd9ccf9bf100fd63d81c52fb71ea5d)

  8)

And make people register to see full size pictures... thats the way it is. :) Other than that... well make your pictures smaller, don't upload hi-res pics, etc.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

jasendorf

Your best bet is to cut down the file size allowances and JPEG qualities in the Pictures and Thumbnails setting in config.

You can also use the "Resize Pictures" option (second to last item in admin CP) to reduce the sizes of your photos.  The Project vii theme you're using is very light, so I doubt that changing the theme will help you much.

Good luck.

John
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

Tarique Sani

No there is no real way to cut down bandwidth in coppermine BUT

Use an optimiser for compresssing your JPEGs - the ones I see on your site can be compressed much better and a lot
SANIsoft PHP applications for E Biz

jeeplaw

Quote from: "DefenceTalk.com"I have done two things to keep a lid on this:

This:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Falbums%2FF-16%2Fnormal_F-16-DefenceTalk.com-015.jpg&hash=0ee924c45ffd9ccf9bf100fd63d81c52fb71ea5d)

  8)

And make people register to see full size pictures... thats the way it is. :) Other than that... well make your pictures smaller, don't upload hi-res pics, etc.

Great looking site you've got there..very clean. So where in the config do you force users to go to an "error screen, please register or login" like you've done on your site?

Did you get around the hotlinking by modifying your .htaccess file? As it stands now, after looking over my logs, no ones hotlinking..and I went through 900 megs of bandwidth yesterday...

jeeplaw

Quote from: "tarique"No there is no real way to cut down bandwidth in coppermine BUT

Use an optimiser for compresssing your JPEGs - the ones I see on your site can be compressed much better and a lot

Is this something that can integrate with the photos I have online, or do i need to offload the ones online, optimize them through my desktop, and then put them back? Is this something that photoshop or fireworks can do en masse..aka batch mode?

DefenceTalk.com

Thanks.

Yea I am using .htaccess to stop people from hotlinking great hi-res pictures.

You can add this into your displayimage.php... just an example:



if (!USER_ID) cpg_die(ERROR, 'You need to <a href="http://www.defencetalk.com/forums/profile.php?mode=register"><i>REGISTER</a></i> to access this page - Its easy, quick and FREE!
<br>
<br>
PLEASE PROVIDE <i>VALID</i> E-MAIL ADDRESS!!!
<br>
<br>
Already registered? Please <a href="http://defencetalk.com/forums/login.php">LOGIN HERE</a>, Thank You!', __FILE__, __LINE__);
/**
 * Local functions definition
 */


IT depends on your site, whether u have phpbb, etc.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

rbl

Some tips:
 - Use smaller thumbnails like the ones in the albums table
 - Don't use random content (remove random pictures section, don't use random thumbnails in albums, etc)
 - Don't use intermediate pictures. Keep max size of your pictures between 400 and 500 pixels

jeeplaw

Quote from: "DefenceTalk.com"Thanks.

Yea I am using .htaccess to stop people from hotlinking great hi-res pictures.

You can add this into your displayimage.php... just an example:



if (!USER_ID) cpg_die(ERROR, 'You need to <a href="http://www.defencetalk.com/forums/profile.php?mode=register"><i>REGISTER</a></i> to access this page - Its easy, quick and FREE!
<br>
<br>
PLEASE PROVIDE <i>VALID</i> E-MAIL ADDRESS!!!
<br>
<br>
Already registered? Please <a href="http://defencetalk.com/forums/login.php">LOGIN HERE</a>, Thank You!', __FILE__, __LINE__);
/**
 * Local functions definition
 */


IT depends on your site, whether u have phpbb, etc.


Wow, that little bit of code proved to be a big help. Thanks again.

DefenceTalk.com

your welcome...

btw, your site has he funniest pics. juz too funny! :lol:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

jeeplaw

Thanks! We're working at putting new pics up everyday. In the meantime..

I'm finding out the strengths of coppermine and how well it handles traffic. I'm in the process now of trying to determine which haqs I should incorporate. I'm also trying to look into an online jpg/gif optimizer that allows ftp access so that I don't need to offline all my pics, optimize, then re-upload.

emrcia

I have done succesfully what you suggest as a mod. Is there a way to let googlebot and other search engine bot enter in those pages?
or even better,

Is there a way to make all work but the image (if you are not registered it appears the thumbnail in the displayimage with a title "you need to be registered to see the image larger") all the rest equal than normally.

I have a good position in search engines, and this can make me fall. google uses page title keyword density and others to pageRank a page. And avoiding displayimage.php to be read worsens the pageRank

athlonkmf

Quote from: "emrcia"I have done succesfully what you suggest as a mod. Is there a way to let googlebot and other search engine bot enter in those pages?
or even better,

Is there a way to make all work but the image (if you are not registered it appears the thumbnail in the displayimage with a title "you need to be registered to see the image larger") all the rest equal than normally.

I have a good position in search engines, and this can make me fall. google uses page title keyword density and others to pageRank a page. And avoiding displayimage.php to be read worsens the pageRank


LOL. the reason they use this mod is because they don't want that much traffic. So it's even better if google or another search engine can't find them.

But in your case I think you have 2 choices.

One is to edit the .htaccess file to prevent hotlinking.

And two is to integrate Invision Powerboard. In that BBS you can make set searchengines as members. They can go to pages where unregistered can't go then :P
My coppermine gallery with 35000 images: http://www.asianfanatics.net/
Another coppermine gallery with images over the 1MB http://dsample.kmfstudio.com

Joachim Müller

just as a side note: if you're afraid of too much traffic and you want your site to be spidered by google, but you don't want your pics to end up in google's "image search", just put these statements into your robots.txt:User-agent: Googlebot
Disallow: /*.gif$

User-agent: Googlebot
Disallow: /*.jpg$

User-Agent: Googlebot-Image
Disallow: /


GauGau

Triple-XL

Quote from: "gaugau"just as a side note: if you're afraid of too much traffic and you want your site to be spidered by google, but you don't want your pics to end up in google's "image search", just put these statements into your robots.txt:User-agent: Googlebot
Disallow: /*.gif$

User-agent: Googlebot
Disallow: /*.jpg$

User-Agent: Googlebot-Image
Disallow: /


GauGau

Where can I find that robots.txt then?
Triple x XL

Nibbler

If it doesnt exist just make one yourself, put it in the root of your site.