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?? - 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:
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
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;
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:
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]