Re: Intense CPU strain....suggestions



cbmeeks wrote:
I thought about that. The problem is, that I want to allow very high
res uploads. If the user uploaded 20 pictures, and they went to a
gallery page for the first time, it would take a while to resize.
That could leave a bad first impression.



On May 30, 7:41 pm, Geoff Berrow <blthe...@xxxxxxxxxxx> wrote:
Message-ID: <1180559482.648398.209620@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> from
cbmeeks contained the following:

Currently, the user can upload up to six pictures at once. When the
uploads are complete, I then have a script that will resize the pix to
different thumbnails for speed. However, imagine resizing 6 pictures
of 2300x2200 pixels in 6 different sizes (maintaining the best quality
I can) on a Pentium 3 450Mhz running Ubuntu and 384 megs of ram.
Seriously.
Why not just upload the pics and leave resizing til the pics are fetched
for the first time? After that fetch from the filesystem.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDshttp://www.ckdog.co.uk/rfdmaker/



Well, you could kick off a batch job to do your resizing, then return to the user. That way it can keep processing the images. The only thing you'll have to handle is when the user wants to display his gallery before it's ready.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: Intense CPU strain....suggestions
    ... gallery page for the first time, it would take a while to resize. ... uploads are complete, I then have a script that will resize the pix to ... However, imagine resizing 6 pictures ...
    (comp.lang.php)
  • Cron to email notification of ftp file upload?
    ... I have my /var/pub/incoming directory set to allow anon uploads with write ... script from Dmag Designs) to run a family photo album on my apache server. ... to dump a set of 50 pictures, I put a link to the ftp/incoming directory on ...
    (alt.os.linux)
  • Re: Website back up after wife replaced home page
    ... I always burn a backup onto dvd in ... > a listing along with pictures of the dresses. ... > make the listing created her page with the name index.html. ... She normally just uploads the pictures and ...
    (rec.games.pinball)
  • Re: Pinball Machines in front of garage doors
    ... convenient and uses natural lighting. ... He takes great pictures and ... uploads a lot of photos to IPDB. ...
    (rec.games.pinball)