Welcome to WebmasterWorld Guest from 54.145.39.186

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP image resizing

Having problems uploading and resizing images

     

Red_Eye

9:57 am on Jan 7, 2003 (gmt 0)

10+ Year Member



I have been developing my own content management system with php and mysql for a particular Website. I have set up a form for adding a new data into my db, and to upload a new image to the web server. When the image uploads I resize it to the correct size. I want to do this so that the person uploading it (who would have taken the picture with a digital camera) doesn't have to worry about what size it is.

I have managed to get this working on my development server. However when I try it on the live web server I get the error message 'Could not open 'image' for processing'. I think that this is a problem with permissions on my PC. I am however not sure where to start looking.

Thanks in advance for your help.

Acecool

1:41 pm on Jan 7, 2003 (gmt 0)

10+ Year Member



Im no professional or anything, but have you tried chmodding differently? maybe allow script to be executed read, but not written to as its doing the writing?

Red_Eye

2:15 pm on Jan 7, 2003 (gmt 0)

10+ Year Member



Thanks for the info. Thats sounds like it might fix the problem. Do you have any Idea how I would go about doing this. Is this something I need to setup on the server or in the script

jatar_k

6:45 pm on Jan 7, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



you could do it in the script with
[php.net...]

Red_Eye

9:08 am on Jan 8, 2003 (gmt 0)

10+ Year Member



Thanks again for the information. I will try that.

Could anyone recommend a script that resizes images on the fly and uploads them to the server. I have been trying to write one myself but as you can see I am having problems.

jatar_k

5:48 pm on Jan 8, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I assume you have looked through here
[php.net...]

there is also gd and their list of functions
[boutell.com...]

it is now included in php 4.3.0 so the functions may be listed already in the image functions

 

Featured Threads

Hot Threads This Week

Hot Threads This Month