Welcome to WebmasterWorld Guest from 54.211.0.142

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP image resizing

Having problems uploading and resizing images

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

Full Member

10+ Year Member

joined:Sept 24, 2002
posts:214
votes: 0


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.

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

New User

10+ Year Member

joined:Dec 10, 2002
posts:24
votes: 0


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?
2:15 pm on Jan 7, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Sept 24, 2002
posts:214
votes: 0


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
6:45 pm on Jan 7, 2003 (gmt 0)

Administrator

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

joined:July 24, 2001
posts:15756
votes: 0


you could do it in the script with
[php.net...]
9:08 am on Jan 8, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Sept 24, 2002
posts:214
votes: 0


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.

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

Administrator

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

joined:July 24, 2001
posts:15756
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members