13, May 2008

Get NO error messages? - 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: Get NO error messages?
« previous next »
Pages: [1] Print

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


« on: Sep 25, 2006, 04: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: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 25, 2006, 05:10:47 PM »

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


Last blog : Database Management with phpMyAdmin
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #2 on: Sep 25, 2006, 05: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, 05: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: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Sep 25, 2006, 05: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 : Database Management with phpMyAdmin
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Sep 25, 2006, 05: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 : Database Management with phpMyAdmin
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #6 on: Sep 25, 2006, 05: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, 06: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: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Sep 25, 2006, 11: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 : Database Management with phpMyAdmin
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #9 on: Sep 26, 2006, 11: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: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


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

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


Last blog : Database Management with phpMyAdmin
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #11 on: Sep 26, 2006, 03: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: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #12 on: Sep 26, 2006, 05: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 : Database Management with phpMyAdmin
I love Pokemon
*
Posts: 13
90 credits
Members referred : 0


« Reply #13 on: Sep 26, 2006, 07: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: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #14 on: Sep 26, 2006, 08: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 : Database Management with phpMyAdmin
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....

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: Get NO error messages?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 13, 2008, 01:26:44 AM





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: 34.929
Total Topics: 7.262
Total Members: 3.479
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: mileymo1

27 Guests, 3 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.