"T F" on  wrote...
| > PHP script that does some fancy image magick stuff for a web gallery.
| 
| i could be wrong but it seems like the approach you are using is to
| recreate the im-processed images each time a vistor points their
| browser at your site.  if so, you might consider changes that lead in
| the opposite direction to your present desire to combine as many steps
| as possible.
| 
| instead of postprocessing the images upon each url request, batch
| processes them once, at the time you upload them to your website.
| this makes processing-time a non-issue, which means code-readability
| (for future maintanence) can be the top priority.  In this scenario,
| you might consider refactoring the current steps into more, smaller
| steps and creating _more_ temporary files.  to keep hard-disk
| read-writes to minimum (for wear and tear and for speed), you might
| consider using a memory-based filesystem (i.e. a RAM disk) using tmpfs
| 

Doing it all in one command will reduce harddisk writes.

Also if you are really good, you can generate the thumbnail on the first
request, and cache it appropraitely for the next request.

It is just another level of indirection!

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
     Any problem in computer science can be solved
     with one more level of indirection.        --- Morven's Metatheorum
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to