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 Rik on 07/31/06 14:03

bizt wrote:
>> 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.
>

Mkae sure the directory is writable for the script. CHMOD 0777

Grtz,
--
Rik Wasmus

 

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

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