You are here: Re: Resize an image stored in a DB prior to diplaying it on page « PHP Programming Language « IT news, forums, messages
Re: Resize an image stored in a DB prior to diplaying it on page

Posted by Bugz on 11/23/77 11:27

A) You probably wouldn't want to store the image in th DB in the first
place
B) Since you've done that, save the image in the /tmp/ forlder after
reading it from the DB, resize that image and display it on the page.
C) If you plan on having lots of visualizations of the thumbnail,
you'll most probably want to save the image for future use... do this
by either :
1 - updating the DB with a pointer to the resized image
2 - Check if the file name of the thumbnail exists in a give Directory
before processing the image.

Preferably, you'd want to store a pointer in the DB of both the Thumb
and the main image.This way, you transfer less data between PHP and
MySQL, hence making your code quicker to execute.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация