Advanced search  

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

Pages: [1]   Go Down

Author Topic: Bandwidth..any tips on cutting it down when serving A LOT!??  (Read 11509 times)

0 Members and 1 Guest are viewing this topic.

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Bandwidth..any tips on cutting it down when serving A LOT!??
« on: October 23, 2003, 01:16:07 pm »

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.

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

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #1 on: October 23, 2003, 03:31:08 pm »

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

This:

(http://www.defencetalk.com/pictures/albums/F-16/normal_F-16-DefenceTalk.com-015.jpg)

  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.
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #2 on: October 23, 2003, 03:45:15 pm »

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
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #3 on: October 23, 2003, 03:47:42 pm »

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
Logged
SANIsoft PHP applications for E Biz

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #4 on: October 23, 2003, 04:10:17 pm »

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

This:

(http://www.defencetalk.com/pictures/albums/F-16/normal_F-16-DefenceTalk.com-015.jpg)

  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

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #5 on: October 23, 2003, 04:11:45 pm »

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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #6 on: October 23, 2003, 06:14:04 pm »

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:


Code: [Select]

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.
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Some tips
« Reply #7 on: October 23, 2003, 06:58:39 pm »

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
Logged

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #8 on: October 23, 2003, 07:08:54 pm »

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:


Code: [Select]

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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #9 on: October 23, 2003, 10:02:13 pm »

your welcome...

btw, your site has he funniest pics. juz too funny! :lol:
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #10 on: October 24, 2003, 02:29:53 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #11 on: November 07, 2003, 11:24:34 am »

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
Logged

athlonkmf

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.asianfanatics.net/
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #12 on: January 13, 2004, 04:01:16 pm »

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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #13 on: January 13, 2004, 11:39:22 pm »

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:
Code: [Select]
User-agent: Googlebot
Disallow: /*.gif$

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

User-Agent: Googlebot-Image
Disallow: /


GauGau
Logged

Triple-XL

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://thats-life.kmfstudio.com/~xxxl
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #14 on: January 24, 2004, 02:38:05 pm »

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:
Code: [Select]
User-agent: Googlebot
Disallow: /*.gif$

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

User-Agent: Googlebot-Image
Disallow: /


GauGau


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

Nibbler

  • Guest
Bandwidth..any tips on cutting it down when serving A LOT!??
« Reply #15 on: January 24, 2004, 02:45:49 pm »

If it doesnt exist just make one yourself, put it in the root of your site.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.