14, February 2012

Get NO error messages? - webmaster forum

 
Webdigity webmaster forums
[ 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: Get NO error messages?
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Get NO error messages?  (Read 3044 times)
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« on: Sep 25, 2006, 03:54:34 pm »

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?Huh?? please help? - are there problems with this script?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 25, 2006, 04:10:47 pm »

is this solved with the setting you changed according the other problem (imagemagick) ?


Last blog : A new Wordpress theme for our blog
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #2 on: Sep 25, 2006, 04:22:25 pm »

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..
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #3 on: Sep 25, 2006, 04:25:56 pm »

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?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Sep 25, 2006, 04:35:58 pm »

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...


Last blog : A new Wordpress theme for our blog
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Sep 25, 2006, 04:38:41 pm »



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 Grin (don't use photoshop), maybe because of the GD lib on windows???

look all the php mods are written orig. for unix/linux...


Last blog : A new Wordpress theme for our blog
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #6 on: Sep 25, 2006, 04:40:24 pm »

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?
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #7 on: Sep 25, 2006, 05:12:51 pm »

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?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Sep 25, 2006, 10:18:32 pm »

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?


Last blog : A new Wordpress theme for our blog
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #9 on: Sep 26, 2006, 10:45:03 am »

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
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Sep 26, 2006, 10:50:46 am »

you can't de-compress images, once compressed its forever Grin


Last blog : A new Wordpress theme for our blog
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #11 on: Sep 26, 2006, 02:59:58 pm »

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?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #12 on: Sep 26, 2006, 04:35:34 pm »

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?


Last blog : A new Wordpress theme for our blog
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #13 on: Sep 26, 2006, 06:34:39 pm »

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...
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #14 on: Sep 26, 2006, 07:31:53 pm »

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" Grin

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... Wink


Last blog : A new Wordpress theme for our blog
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4242
Tags : php google photoshop Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: Get NO error messages?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 14, 2012, 07:00:34 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!






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