You are here: Re: Locate an image file on the server, extract data, resize and then output new image - can this be done? « PHP Programming Language « IT news, forums, messages
Re: Locate an image file on the server, extract data, resize and then output new image - can this be done?

Posted by bizt on 07/31/06 12:40

> ImageJPEG($thumb, $new_name);

How does this work? Will this create the new thumbnail even if the file
doesnt already exist? Its just Im getting the following error:

Warning: imagejpeg(): Unable to open 'thumbs/image12.jpg' for writing
in /home/martyn69/public_html/photos/photos/thumb.php on line 55


Note: I have changed the $new_name to tie up with my 'id' field of the
table that the image filenames are stored.

However, when I do the following:


header ("Content-type: image/jpeg");
ImageJPEG ($thumb);


... it does output the resized image but ofcourse does not create the
file. I would like the option of creating the file as this will surely
reduce server processing (and faster pages). Does something need
configured on the server (to allow write/read etc - the 'thumb' folder
permissions are set to 777) or is my understanding of this incorrect?
Thanks

Burnsy

 

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

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