22, November 2008

problems with the image resizing feature - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: problems with the image resizing feature
« previous next »
Pages: [1] Print

Author Topic: problems with the image resizing feature  (Read 882 times)
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« on: Sep 25, 2006, 04:33:11 PM »

Hi, i'm having the exact same problem as one of your notice board users Olaf but the issue was never answered -

I am having some problems with the image resizing feature (foto_upload.php). Evevry time i upload a file it says that uploaded and processed. But i dont see the file(s) in my directory. Interesting thing is when i upload really small images like 150x100 it uploads. But as soon as i use bigger images nothing happens. I've increased the the 1Mb limit on the script upload file and the above issue seems to be resolved but i never get any errors!!!! - lke i thought too that with the foto script, that the images are resized for you aswell?


PLEASEEEEEEEEEEEEEEEE Can you please help me?
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #1 on: Sep 25, 2006, 04:51:17 PM »

Hi - i've just noticed that when ($use_image_magick = true;) the script totally ignores the image size specs ( - i set the max width and height to be say 100*100 and upload an image say 500*600 and the script still uploads the image?Huh? - i have noticed though that if i set var ($use_image_magick = false; ) from true to false, the resizing feature feature works? - can you tell me what exactly this variable is used for? - is it this program that is used to process the image? - and if its set to false, why does the iamge resize? aand what program resizes it?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 25, 2006, 05:05:33 PM »

If this variable is set to "true", the script is using imagemagick in place of GD to resize the thumbs (IM is much faster and more powerfull)
check http://www.imagemagick.org/script/convert.php Visit through proxy


Last blog : Just a better Internet portal provided by Google
Google dot what?
*
Posts: 2
12 credits
Members referred : 0


« Reply #3 on: Oct 10, 2006, 05:25:12 PM »

I also have problem with resize. I cant use image_magick on my host. So I put "false" in the use_image_magick.

And this works great until I use a bit larger files, not larger in bytes but larger in pixels (more than 2000px x 2000px). Because when I do that the file just uploads it doesnt resize it. And I dont get any error message, in fact I only get a blank screen.

It seams very strange since it works fine with smaller file, both the upload and the resizing.

And also I wonder whats the difference between this size-variables?

Code:
var $x_max_size = 300;
var $y_max_size = 200;
var $x_max_thumb_size = 110;
var $y_max_thumb_size = 88;

and this

Code:
$foto_upload->x_max_size = 300;
$foto_upload->y_max_size = 200;
$foto_upload->x_max_thumb_size = 120;
$foto_upload->y_max_thumb_size = 150;
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Oct 10, 2006, 10:58:36 PM »

you need with GD about 100MB of memory to resize a ~2MB foto, Cool?


Last blog : Just a better Internet portal provided by Google
Google dot what?
*
Posts: 2
12 credits
Members referred : 0


« Reply #5 on: Oct 11, 2006, 01:18:45 PM »

Thank you for quick answer.

The strange thing is that it doesn´t seem to depend on the file size but in the amount of pixels.

I´ve tried with large files (2mb) with few pixels and it works. And I´ve tried with small files (500 kb) with many pixels (2000px x 2000px) and then it won´t work.

Anyway, I´m new in PHP (only asp before this) so I don´t now what your talking about when you say GD. Sorry :s
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« Reply #6 on: Oct 11, 2006, 01:23:39 PM »

Quote
Anyway, I'm new in PHP (only asp before this) so I don´t now what your talking about when you say GD. Sorry [/url]

He is talking about the GD graphics library Visit through proxy Wink

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Oct 11, 2006, 04:54:23 PM »

this number of picxel thing is interesting, will check that, but its al about memory...


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4241
Tags : php asp graphics Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: problems with the image resizing feature
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 01:32:06 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.396
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: thomas09

33 Guests, 5 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.