Re: [PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Fredrik Enestad
The image I'm trying is 2848x2144 @ 2,13MB so its pretty big.. An other user in this mail-group asked me if ImageMagick existed on the server, but I'm pretty new to all this, and I don't actually know how to check if it does? Thanks for taking the time Fredrik 2006/3/28, Richard Davey <[EMAIL P

Re: [PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Richard Davey
On 28 Mar 2006, at 14:21, Fredrik Enestad wrote: I'm making a function for uploading and resizing images to my web hotel. Problem is, memory_limit is set to 16M so when uploading larger images the script crashes. So, I tried to override the memory_limit setting, but as it turns out, my w

[PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Fredrik Enestad
Hi! I'm making a function for uploading and resizing images to my web hotel. Problem is, memory_limit is set to 16M so when uploading larger images the script crashes. So, I tried to override the memory_limit setting, but as it turns out, my web host has set some safe mode setting, so that no set

Re: [PHP] imagecreatefromjpeg

2005-01-11 Thread Jason Wong
On Wednesday 12 January 2005 05:55, Juergen Rehberger wrote: > I have checked my memory limit in the php.ini file and it is 8mb as well on > my offline server. Are you sure that your local server was compiled with --enable-memory-limit? The memory limit set in php.ini will only be enforced if y

Re: [PHP] imagecreatefromjpeg

2005-01-11 Thread Rasmus Lerdorf
Juergen Rehberger wrote: Hi Thanx for the fast response to my problem I have checked my memory limit in the php.ini file and it is 8mb as well on my offline server. i further noticed that on my online server it doesnt realy depend on the filesize in mb but rather the size in pixel. once i try to

[PHP] imagecreatefromjpeg

2005-01-11 Thread Juergen Rehberger
Hi Thanx for the fast response to my problem I have checked my memory limit in the php.ini file and it is 8mb as well on my offline server. i further noticed that on my online server it doesnt realy depend on the filesize in mb but rather the size in pixel. once i try to upload images larger t

Re: [PHP] imagecreatefromjpeg

2005-01-09 Thread Alex Greg
On Sun, 9 Jan 2005 21:37:33 +1100, Juergen Rehberger <[EMAIL PROTECTED]> wrote: > i have a problem with my resizing image script. > > It all works fine on my localhost server, but once i upload the whole thing > on my webhost, the script allows resizing of images not bigger than 600kb or > somet

[PHP] imagecreatefromjpeg

2005-01-09 Thread Juergen Rehberger
i have a problem with my resizing image script. It all works fine on my localhost server, but once i upload the whole thing on my webhost, the script allows resizing of images not bigger than 600kb or something aournd that size. so my question. does that problem depend on settings from my webho

Re: [PHP] imagecreatefromjpeg fails on large files

2004-07-20 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: Thanks for the good suggestion. It turns out that the call to imagecreatefromjpeg succeeds when run from the command line and fails when invoked via the web server. I guess it is a memory limit issue of some sort. I tried upping the memory_limit via ini_set and while my

Re: [PHP] imagecreatefromjpeg fails on large files

2004-07-19 Thread tmp1000
[Sorry if there's multiple posts...] Raditha, Thanks for the good suggestion. It turns out that the call to imagecreatefromjpeg succeeds when run from the command line and fails when invoked via the web server. I guess it is a memory limit issue of some sort. I tried upping the memory_limit via

Re: [PHP] imagecreatefromjpeg fails on large files

2004-07-16 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: I'm running into a problem where imagecreatefromjpeg fails and gives me a warning like this: Warning: imagecreatefromjpeg(): 'albums/userpics/10001/dave_sharath.jpg' is not a valid JPEG file in /homepages/32/d91926016/htdocs/photos/include/picmgmt.inc.php on line 202 Hav

[PHP] imagecreatefromjpeg fails on large files

2004-07-16 Thread tmp1000
I'm running into a problem where imagecreatefromjpeg fails and gives me a warning like this: Warning: imagecreatefromjpeg(): 'albums/userpics/10001/dave_sharath.jpg' is not a valid JPEG file in /homepages/32/d91926016/htdocs/photos/include/picmgmt.inc.php on line 202 The file in question is a val

[PHP] imagecreatefromjpeg

2004-03-30 Thread Bruno Santos
Hello all. Im developing a page, and need to create a thumb of some images. i've compiled PHP 4.3.5 with the built-in support of GD, even having installed the GD library. the problem is that i call the imagecreatefromjpeg function, and PHP returns a fatal error when in run time i've even

Re: [PHP] imagecreatefromjpeg() problems

2003-08-17 Thread J-K
Hi Jaap! Thanks for your answer, but I checked phpinfo() and it says: JPG Support Enabled Any ideas? The images are photo-like so png would make them too big. Best regards Jan-Kristian Markiewicz "Jaap Van Ganswijk" <[EMAIL PROTECTED]> skrev i melding news:[EMAIL PROTECTED] > At 2003-08-16 14:

Re: [PHP] imagecreatefromjpeg() problems

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-16 14:35 +0200, J-K wrote: >I've made a little script to make thumbnails which worked before the >summer, but now I get this errormessage: > >Fatal error: Call to undefined function: >imagecreatefromjpeg() in >/usr/local/others/www.stud.users/mark/gfx/create_tn.php on line >15 > >First

[PHP] imagecreatefromjpeg() problems

2003-08-16 Thread J-K
Hi! I've made a little script to make thumbnails which worked before the summer, but now I get this errormessage: Fatal error: Call to undefined function: imagecreatefromjpeg() in /usr/local/others/www.stud.users/mark/gfx/create_tn.php on line 15 First I thought they had

RE: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 02:42 PM, Edward Peloke wrote: > Nevermind, I got it working with a few ini changes... All rightee. Glad I could help. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax)

RE: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Edward Peloke
Nevermind, I got it working with a few ini changes... Thanks, Eddie -Original Message- From: Steve Keller [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:24 PM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] imagecreatefromjpeg() At 5/29/2003 01:55 PM, Edward

RE: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Edward Peloke
Message- From: Steve Keller [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:24 PM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] imagecreatefromjpeg() At 5/29/2003 01:55 PM, Edward Peloke wrote: > I now have php 4.3.2 I'm sorry, I read the version wrong. F

Re: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 01:55 PM, Edward Peloke wrote: > I now have php 4.3.2 I'm sorry, I read the version wrong. Feel free to ignore me. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Emai

Re: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 01:55 PM, Edward Peloke wrote: > Isn't php4.3.2 compiled with the gd library Not necessarily. Run a phpinfo() and look in the configuration for --with-gd. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 90

[PHP] imagecreatefromjpeg()

2003-05-30 Thread Edward Peloke
ok, I am having an off day, I admit...I got this script off codewalkers this morning (cheating, I know) I now have php 4.3.2 and I get the error "call to undefined function imagecreatefromjpeg()". Isn't php4.3.2 compiled with the gd library or do I have to do something explicitely to use it? T

RE: [PHP] Imagecreatefromjpeg()

2003-01-16 Thread Matt Schroebel
> > Header("Content-type: image/jpeg"); > $im = ImageCreateFromJpeg('1234_1.jpg'); > ImageJpeg($im);?> > > The file is in the folder, it has execute and write > permissions set, and the error given is "The image > cannot be displayed, because it contains errors.", > which is not very useful.

[PHP] Imagecreatefromjpeg()

2003-01-16 Thread Sara Keesler
Hi, I've seen this bounced around on the archives a bit, but none of the advice on there is working for me. I'm trying to do something very simple: The file is in the folder, it has execute and write permissions set, and the error given is "The image cannot be displayed, because it contains

[PHP] imagecreatefromjpeg crash

2003-01-15 Thread Hitek
Greetings, I am having a very peculiar problem trying to use imagecreatefromjpeg (indeed, ANY of the imagecreatefrom... functions) under both Windows and FreeBSD. First off, here are my server specs: Win: apache 1.3.23, php 4.2.1, GD 2.0 or better BSD: apache 1.3.26, php 4.2.3, GD 2.0 or better

Re: [PHP] ImageCreateFromJpeg error

2002-11-21 Thread Scott Nagel
Thanks for the help. Didn't know about the ini_set() function. The error was 'No JPEG support in this PHP build'. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Friday 22 November 2002 03:21, Scott Nagel wrote: > > I am trying to use the following piece of co

Re: [PHP] ImageCreateFromJpeg error

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 03:21, Scott Nagel wrote: > I am trying to use the following piece of code: > > $img_resized = imagecreate($img_new_width, $img_new_height); > $img_source = > ImageCreateFromJpeg($pa_strDocroot.$pa_strReadFold."/".$this->Name); > imagecopyresized($img_resized, $img_source

[PHP] ImageCreateFromJpeg error

2002-11-21 Thread Scott Nagel
I am trying to use the following piece of code: $img_resized = imagecreate($img_new_width, $img_new_height); $img_source = ImageCreateFromJpeg($pa_strDocroot.$pa_strReadFold."/".$this->Name); imagecopyresized($img_resized, $img_source, 0 , 0 , 0 , 0, $img_new_width, $img_new_height, $this->Width,