Jump to content

Image resize problem


mraiur

Recommended Posts

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  ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.