faqts : Computers : Programming : Languages : PHP : Common Problems : Images

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 3 people (0%) answered Yes
Recently 0 of 3 people (0%) answered Yes

Entry

Using ImageCreateFromJpeg($file) : Except from being a jpeg, how should $file be (filesize, ppi...)?

Feb 27th, 2005 02:51
Philip Olson, Jaad Jorio,


It should be the filename, including the path. Both relative paths and
URLS work as well. So, here are some example file definitions:
  $file = 'image.jpg';
  $file = './image.jpg';
  $file = '/path/to/image.jpg';
  $file = 'http://www.example.com/images/image.jpg';
See the following manual page for details:
  http://php.net/function.imagecreatefromjpeg