mraiur Posted October 14, 2008 Share Posted October 14, 2008 Hi. I have made a resize and upload class. And the file thumb.php has a strange problem i upload a picture witch is above 2 mb filesize ( 4.8MB to be exact). Okey i am testing it on my laptop witch is running on windows with base php.ini and the thumb.php resizes the picture with no problem. But after i upload the the converting and resizing scripts they work . The images are uploaded with no problem but the resize works only if the image file is less then 1.0MB - 1.2MB. So has enyone have an idea what is the problem ? Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/ Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 Well, since you didn't post any code we can only guess... But I would check these settings in your php.ini post_max_size upload_max_filesize Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665498 Share on other sites More sharing options...
mraiur Posted October 14, 2008 Author Share Posted October 14, 2008 the problem is not in the upload at all the problem is that if the picture file size is more then 1.0mb the resize script doest nothing . and the script i took from php.net ... Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665511 Share on other sites More sharing options...
DarkWater Posted October 14, 2008 Share Posted October 14, 2008 Link me to the image and I'll test it with my personal Image class that I wrote a while back and tell you if there's actually a problem with it. I remember someone posting a similar problem (they had an incredibly high resolution picture) and they couldn't resize it, but I could with my class, so let's see what happens. Link to it please. Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665516 Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 And again...it's very difficult to troubleshoot someones code when they don't post it... Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665527 Share on other sites More sharing options...
mraiur Posted October 14, 2008 Author Share Posted October 14, 2008 ok and again to explain that the code works on my dev mashine and i has problems on the "live" server ... where i missed to explain that ... maiby on the topic it self ? Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665558 Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 Nevermind... good luck Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665567 Share on other sites More sharing options...
mraiur Posted October 14, 2008 Author Share Posted October 14, 2008 хах добре че помогна .... с толко мнооо "дай кода"..... Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665574 Share on other sites More sharing options...
PFMaBiSmAd Posted October 14, 2008 Share Posted October 14, 2008 Add the following two lines after your first opening <?php tag - ini_set ("display_errors", "1"); error_reporting(E_ALL); When learning php, developing php code, or debugging php code, use php error reporting to get php to help you. Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665582 Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 хах добре че помогна .... с толко мнооо "дай кода"..... cute Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665583 Share on other sites More sharing options...
DarkWater Posted October 14, 2008 Share Posted October 14, 2008 хах добре че помогна .... с толко мнооо "дай кода"..... What language is that? The only language that I can think of with letters like that (other than Greek, which it's clearly not; I speak Greek. =P) is Russian. >_> Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665592 Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 Yeah, according to google it means 'hah good human pomogna .... somebody mnooo "Give code"' Just poor taste to post foreign languages on an English board... Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665603 Share on other sites More sharing options...
mraiur Posted October 14, 2008 Author Share Posted October 14, 2008 it means "huh thanks for the help.... whit this "give the code" stuff" And i know that i have to set the error reportiong to see the errors but there are no errors just nothing is resized and i wonder how to put the question up like: 1. Do you know if there is a limit of the the imagecreatefromjpeg for example. or 2. Do you have any idea why on my local mashine i can resize the image and the same image i cant on the "live server" ? Is there any php.ini specs that has to be changed.... Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665646 Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 I don't know of any specific php settings other than the ones I mentioned above. Maybe you can run a phpinfo() on your localhost and another on the server and start comparing values. I assume that you have the gd/imagemagick/whatever extensions installed on the remote server or you would have gotten error messages since you say they are turned on. Have you searched php.net for the extension you are using to see if there is anything useful there regarding your problem? Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665669 Share on other sites More sharing options...
PFMaBiSmAd Posted October 14, 2008 Share Posted October 14, 2008 What are the actual values that a phpinfo(); statement shows for error_reporting and display_errors? Quote Link to comment https://forums.phpfreaks.com/topic/128427-image-resize-problem/#findComment-665676 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.