Topic: problems with the image resizing feature (Read 1645 times)
I love Pokemon
Posts: 13
90 credits Members referred : 0
« on: Sep 25, 2006, 03: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, 03: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: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #2 on: Sep 25, 2006, 04: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
Guest
« Reply #3 on: Oct 10, 2006, 04: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;
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #4 on: Oct 10, 2006, 09:58:36 pm »
you need with GD about 100MB of memory to resize a ~2MB foto, Cool?
Guest
« Reply #5 on: Oct 11, 2006, 12: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: 5799
46391 credits Members referred : 3
« Reply #6 on: Oct 11, 2006, 12: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]