Uploading Images

Uploading Images

โดย John Ben Ghetti -
Number of replies: 5
Everything works fine on Mac OS X so far.

The only problem is that when I try to upload an image to a profile I get the following error:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /Library/WebServer/Documents/science/user/lib.php on line 65

Please help,

Thanks.
การประเมินโดยเฉลี่ย: -
In reply to John Ben Ghetti

Re: Uploading Images

โดย Martin Dougiamas -
รูปภาพของCore developers รูปภาพของDocumentation writers รูปภาพของMoodle HQ รูปภาพของParticularly helpful Moodlers รูปภาพของPlugin developers รูปภาพของTesters
When you go the Configure Variables page, what does it say for the GD setting?

Also see http://moodle.com/mod/forum/discuss.php?d=138
การประเมินโดยเฉลี่ย: -
In reply to Martin Dougiamas

Re: Uploading Images

โดย John Ben Ghetti -
It says GD is not installed.

Ok, so I guess I need GD. The problem is I don't know how to install it on Mac OS X. Any suggestions?

Thanks
การประเมินโดยเฉลี่ย: -
In reply to John Ben Ghetti

Re: Uploading Images

โดย Tom Murdock -

Here is a suggestion using Fink to get GD on 10.1: http://www.bugzilla.org/docs/html/osx.html

This page says that GD needs Jaguar: http://www.entropy.ch/software/macosx/php/

Here is how to use it: http://www.php.net/manual/en/ref.image.php

Of course, after I visit places like this to learn information, I have to ask Martin anyway. wink.gif

(if you don't have Jaguar and teach k-12, call Apple quickly because their "free Jaguar for teachers" plan is about to run out...or call a friend who teaches k-12).

การประเมินโดยเฉลี่ย: -
In reply to John Ben Ghetti

Re: Uploading Images

โดย Jim Feld -
I'm currently running php 4.2.2 and this url was a life saver: http://www.entropy.ch/software/macosx/php/

It gives a step by step process of installing and getting php started on the OSX. I downloaded and installed the 4.2.2 following these instructions and it works great. I'm running it on OSX Server v 10.1.4. I also bought a couple of books on the subject, but found web sources more to the point.
การประเมินโดยเฉลี่ย: -
In reply to Jim Feld

Re: Uploading Images

โดย John Ben Ghetti -
Thanks for your replies, they helped a lot. I finally got GD installed and everything works great now! I downloaded and installed PHP 4.2.2. I also installed FINK, which I used to get GD and the JPEG and PNG libraries.

Thanks again.
การประเมินโดยเฉลี่ย: -