This topic is locked, no replies allowed. Inaccurate or out-of-date info may be present.

  • Print

Topic: New Colors for The Earnings banner  (Read 3759 times)

Administrator

    US flag
    View Profile
  • FusionCash Staff
  • Gold Member
  • *****
  • Posts: 2587 (since 2007)
  • Thanked: 1183x
Re: New Colors for The Earnings banner
« Reply #15 on: April 15, 2010, 04:38:28 pm »
The banner images we already have use up several gigabytes of storage... adding more colors, designs or options would make that number grow substantially, so for now we'll have to stick to the 8 options that we have.

There are a lot more efficient ways to create these banners.  You could create 1 background banner for each color and those would only take up a couple MB each.  Then just overlay text onto it from the DB u guys have setup here.
That's exactly what we have.  But the output of the script which overlays the text on the background is a banner -  a PNG file - which the server caches for performance reasons.  It takes a lot of server resources to generate a dynamic image -- if every request was generated on the fly, it would use too much CPU.  So it's generated fresh if the cached version is more than 30 minutes old.  It may be "inefficient" in terms of storage space, but it is very efficient in terms of CPU usage.

That only happens if you use a server-side scripting language.  You can save space and CPU usage by using a client-side language, such as javascript, to overlay the info onto the background on the spot.  This will greatly reduce the amount of space it needs, since you only need 1 png for each color, and CPU usage since all the effects are being rendered by the client, not the server.

You also wouldn't face the problem of having to re-render the image every 30 minutes.  The only real stress that would put on the server would be getting the information about the Money they received and the offers completed, but that is a very low amount that can be handled by low end servers.
The banner is designed to be simple and flexible.  You can place it on a webpage, and also in a comment or in a forum post.  You can't say the same for a javascript-powered overlay.  I also feel that a javascript version would lend itself to being modified more easily and thus could be faked.  Finally, although most clients can handle javascript, there is a small proportion that cannot - why lose out on those potential customers?

dgourd

    US flag
    View Profile
  • Newbie
  • *
  • Posts: 45 (since 2010)
  • Thanked: 0x
Re: New Colors for The Earnings banner
« Reply #16 on: April 15, 2010, 07:32:30 pm »
The banner is designed to be simple and flexible.  You can place it on a webpage, and also in a comment or in a forum post.  You can't say the same for a javascript-powered overlay.  I also feel that a javascript version would lend itself to being modified more easily and thus could be faked.  Finally, although most clients can handle javascript, there is a small proportion that cannot - why lose out on those potential customers?

Firstly, it is easier to fake a simple png file than javascript. Also, pretty much all major browsers support javascript since nearly every site uses it.  The only problem I see is the fact that it can't be placed in a forum post so you are right in that you guys might not have a better option.

clint08

    US flag
    View Profile
  • Silver Member
  • *******
  • Posts: 1360 (since 2008)
  • Thanked: 1x
Re: New Colors for The Earnings banner
« Reply #17 on: April 26, 2010, 01:45:27 pm »
I like this one better. I understand that you cant use animated banners


  • Print
 

Related Topics

  Subject / Started by Replies Last post
48 Replies
11451 Views
Last post May 01, 2008, 12:16:14 pm
by clint08
12 Replies
2979 Views
Last post October 07, 2011, 12:04:58 pm
by blackish0t
6 Replies
1190 Views
Last post July 18, 2015, 06:48:11 pm
by UGetPaid
3 Replies
979 Views
Last post September 21, 2015, 02:05:08 pm
by ladavia89
4 Replies
1029 Views
Last post September 10, 2017, 10:27:21 am
by tuffys_daughtr