Author Topic: Server resize pictures on the fly?  (Read 2237 times)

0 Members and 1 Guest are viewing this topic.

Offline webdog

  • album.pl User
  • *
  • Posts: 15
  • Karma: +0/-0
  • Not quite the smartest guy on the block....
Server resize pictures on the fly?
« on: October 18, 2002, 10:48:38 »
Not sure if this is the case or not...

I beleive that selecting a certain size for showing i.e. medium, the picture will be sent to the browser in full size and just shown smaller in the browser.

How about letting imagemagick resize the picture when serving the page and thus reduce the download time for the viewer?

/Lasse
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Server resize pictures on the fly?
« Reply #1 on: October 18, 2002, 10:54:05 »
Hi webdog,

I've done a lot of thinking about that, and it has it's share of problems. For one, the load of resizing photos each time their viewed would be pretty high. Plus, once they're made "small" they can't be re-enlarged without quality loss.

I guess the question you need to ask is "what does this give me?"

Could be I just don't understand the benefit. ;)

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline webdog

  • album.pl User
  • *
  • Posts: 15
  • Karma: +0/-0
  • Not quite the smartest guy on the block....
Re: Server resize pictures on the fly?
« Reply #2 on: October 18, 2002, 11:26:28 »
Mike,
I am stunned.... didn't expect such a fast response  :D

Knowing not all is at the end of 10Mb fiber (got it yesterday 8) ) they would have to wait a long long time if the "true" size of the photo is say 1600x1200.

Yes I can see that once the picture is fetched and in the browser cache it sure would faster than rendering the picture once again, but in a different size, but then I suspect most people tends to look at them at a smaller size and only look at few with the full size.

Hmm as you say, there are benfits and drawback no matter what...

Cheers
/Lasse
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Server resize pictures on the fly?
« Reply #3 on: October 18, 2002, 11:52:22 »
There's also the issue of storage... Keeping 3-4 copies of each picture around is pretty intense. And if you don't keep them around, then you're back to the performace issue.

It's a hard life. :)
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »