Topic: Photo Resize issue need help! (Read 4103 times)
Community Supporter?
What a dork
Gender:
Posts: 16
100 credits Members referred : 0
www.darrene.com - bloated flash site!
« on: Apr 04, 2007, 07:54:15 pm »
Hi Olaf,
Do you have to use an application such as GD Library or ImageMajik to resize your photos?
I'm having trouble with this- I can upload a photo but I can't make it resize. If there is anywhere that has a tutorial for using these apps or a thread I might have overlooked- please help!
I'm trying to get any image uploaded to resize to 360 x 270 pixels in landscape format.
Thanks in advance!
Darren E
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Apr 04, 2007, 07:55:56 pm »
Quote
Do you have to use an application such as GD Library or ImageMajik to resize your photos?
yes one of them
Community Supporter?
What a dork
Gender:
Posts: 16
100 credits Members referred : 0
www.darrene.com - bloated flash site!
« Reply #2 on: Apr 04, 2007, 07:56:57 pm »
Which one is easier? (I'm not an expert in PHP or coding)
Actually, I think GD Library is what I need to use for my server. Where can I find information on setting this up to work with Easy Upload??
I'm currently searching for this information but if you know of a good link that has documentation on setting this up for use with Easy Upload, PLEASE let me know!
« Last Edit: Apr 04, 2007, 08:05:48 pm by Darren_E »
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #3 on: Apr 04, 2007, 08:40:19 pm »
GD should be easier, but also have in mind that imagemajik is much better.
Anyway for GD you can use a class like this :
Code:
<?php class image{ var $image = ""; var $newimage = ""; var $image_quality = 80; var $addborder = 0; var $max_height = 200; var $max_width = 300;
// Main code function resize(){ $src_img = ImageCreateFromJpeg($this->image); $orig_x = ImageSX($src_img); $orig_y = ImageSY($src_img);
Which one is easier? (I'm not an expert in PHP or coding)
Actually, I think GD Library is what I need to use for my server. Where can I find information on setting this up to work with Easy Upload??
I'm currently searching for this information but if you know of a good link that has documentation on setting this up for use with Easy Upload, PLEASE let me know!
do you tried the photo upload extension? there is a resize function included
Community Supporter?
What a dork
Gender:
Posts: 16
100 credits Members referred : 0
www.darrene.com - bloated flash site!
« Reply #5 on: Apr 04, 2007, 09:09:05 pm »
I'm going to try that right now...
If this works, where do I donate!!!!!!
Community Supporter?
What a dork
Gender:
Posts: 16
100 credits Members referred : 0
www.darrene.com - bloated flash site!
« Reply #6 on: Apr 04, 2007, 09:16:35 pm »
Ok something is NOT getting processed...And it's not giving me any error codes.
Community Supporter?
What a dork
Gender:
Posts: 16
100 credits Members referred : 0
www.darrene.com - bloated flash site!
« Reply #8 on: Apr 04, 2007, 09:26:37 pm »
GREAT!! Ok ok....last question,
I'm using foto_upload.php and of course the upload_class.php files to get this going... How can I make this write and over-write using the name "image1" ??
In other words, I want whatever image that gets uploaded to be renamed to "image1" and resized to 370 x 260. (I'm currently getting CHMOD errors but that's not a big deal, I can fix that....)
« Last Edit: Apr 04, 2007, 09:31:14 pm by Darren_E »
Community Supporter?
What a dork
Gender:
Posts: 16
100 credits Members referred : 0
www.darrene.com - bloated flash site!
« Reply #9 on: Apr 04, 2007, 09:42:50 pm »
Code:
Warning: move_uploaded_file(/home/finchers/public_html/dynamic/1175716232.jpg): failed to open stream: Permission denied in /home/finchers/public_html/admin/upload_class.php on line 130
Warning: move_uploaded_file(): Unable to move '/var/tmp/php82jAgY' to '/home/finchers/public_html/dynamic/1175716232.jpg' in /home/finchers/public_html/admin/upload_class.php on line 130
Warning: getimagesize(/home/finchers/public_html/dynamic/1175716232.jpg): failed to open stream: No such file or directory in /home/finchers/public_html/admin/foto_upload.php on line 54
Warning: copy(/home/finchers/public_html/dynamic/1175716232.jpg): failed to open stream: No such file or directory in /home/finchers/public_html/admin/foto_upload.php on line 42
Warning: copy(/home/finchers/public_html/dynamic/1175716232.jpg): failed to open stream: No such file or directory in /home/finchers/public_html/admin/foto_upload.php on line 48
Frustration...you just have to love it! This is killing me.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #10 on: Apr 04, 2007, 09:46:52 pm »
This is not a problem of the script, but of the php configuration. Contact your host and send them the first line of the error
This is not a problem of the script, but of the php configuration. Contact your host and send them the first line of the error
Ok...So I'm assuming the GD Library isn't on the server? (I'm using Ipower.com for my hosting). Tech support said GD Library is installed. But then again, I'm not 100% confident in THEIR tech support.
(talking to them now)
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #12 on: Apr 04, 2007, 10:03:38 pm »
No this is not about GD. It looks like a permission problem. For some reason apache is not capable of read/write in the tmp folder.