liverpoolrc
Mon 25 September 2006, 03:54 pm GMT +0200
I get NO errors when using the foto_upload script - it says i've uploaded an image even if the image doesn't upload cause it doesn't abey the criteria of being, for example too big?????? please help? - are there problems with this script?
olaf
Mon 25 September 2006, 04:10 pm GMT +0200
is this solved with the setting you changed according the other problem (imagemagick) ?
liverpoolrc
Mon 25 September 2006, 04:22 pm GMT +0200
Hi Olaf, ok, this is my progress - without using image_magick (which i might dwnld), GD is used but i find that when the images are re-sized, they can't be opened in Photoshop? - theres some error format??? - is this normal? - at least i found out that the script doesn't seem to work and gives no errors if the image_magick variable is set to true but you haven't got image_magick on your machine.. first step anyway..
Regarding the error messages, i'll experiment to see if i get further error messages but i think this might have sollved this problem..
But can you answer the first question regarding opening one of these GD processed images in Photoshop - get the error "File format Module cannot parse the file"
Thanks for your help Olaf and thanks for the script..
liverpoolrc
Mon 25 September 2006, 04:25 pm GMT +0200
Sorry Olaf, just a quick extra - i'm using a WINDOWS XP OS and php 5.. just had a look at that Image Magic and it seems very UNIX based?
olaf
Mon 25 September 2006, 04:35 pm GMT +0200
Sorry Olaf, just a quick extra - i'm using a WINDOWS XP OS and php 5.. just had a look at that Image Magic and it seems very UNIX based?
I use imagemagicks on windows (on my testing machine) you need to install something check google...
olaf
Mon 25 September 2006, 04:38 pm GMT +0200
But can you answer the first question regarding opening one of these GD processed images in Photoshop - get the error "File format Module cannot parse the file"
I have no idea ;D (don't use photoshop), maybe because of the GD lib on windows???
look all the php mods are written orig. for unix/linux...
liverpoolrc
Mon 25 September 2006, 04:40 pm GMT +0200
Olaf - by default with image magic set to false - the iamges are being resized (as you say by GD) but they're not opening anymore and when you do say a thumnail view in windows explorer - the files are just black images. My question is - why is GD doing this? and do you need a program like image magic installed on your machine?
liverpoolrc
Mon 25 September 2006, 05:12 pm GMT +0200
Olaf - i've installed Image Magic and its working btu when when i set this varibale to "true", the file i try and upload over the max x,y limit (600*500) (my file is 2000*123) is no longer loaded and there is NO error - in fact, i'm told the file has been succcessfully uplaoded?
olaf
Mon 25 September 2006, 10:18 pm GMT +0200
Olaf - i've installed Image Magic and its working btu when when i set this varibale to "true", the file i try and upload over the max x,y limit (600*500) (my file is 2000*123) is no longer loaded and there is NO error - in fact, i'm told the file has been succcessfully uplaoded?
URL?
liverpoolrc
Tue 26 September 2006, 10:45 am GMT +0200
Olaf - i was just thinking when i left yesterday, these iamges are being compressed right? - then is there a way that we need to de-compress them to few them? - thats probably the problem right? - is there a command with Image Magik or GD for decompressing the images when you need to call them - at the moment my site is on my localhost but its the exact foto_upload.php script (ImageMagick-6.2.9) - with the max x,y set to 500,600??? - thats it! - no changes whatsoever - i downloaded your script just to test it? any ideas? thanks Olaf
olaf
Tue 26 September 2006, 10:50 am GMT +0200
you can't de-compress images, once compressed its forever ;D
liverpoolrc
Tue 26 September 2006, 02:59 pm GMT +0200
Ok, but you compress these files in your foto_upload.php script..
$foto_upload->process_image(false, false, false, 80);
..and as i see it, i can't view these compressed images?
olaf
Tue 26 September 2006, 04:35 pm GMT +0200
Ok, but you compress these files in your foto_upload.php script..
$foto_upload->process_image(false, false, false, 80);
..and as i see it, i can't view these compressed images?
do you checked the pathes? what about you chmod settings? do you tried to upload a file with standard upload?
liverpoolrc
Tue 26 September 2006, 06:34 pm GMT +0200
Olaf - regular files are OK - your script is great - its JUST the images being resized, in another post above - i've figured out that if you don't use Image Magik - GD ONLY compresses JPEGS..
imagejpeg($dest, $file_name_dest, $quality);
Is that what the script is meant to do? Everything is great until you come accross an image that you need to compress? - it actually resizes them normally for JPEGS - though large images are ruined when you compress them? - can i ask you what is the case for GIFs and PNGs?
THanks for all your time...
olaf
Tue 26 September 2006, 07:31 pm GMT +0200
there is no support at the moment together with GD and gif or png files.
I wrote the example for uploading and resizing photo's from didgital camera's, That's why I called it "photo upload" ;D
That JPG's are distorted could be a an lack of memory (I use IM because resizing JPG's of 1 MB need almost 80MB on memory).
by the way compression is not resizing of images... ;)