close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Incorrect display after image processing

Thread begun 5/11/2010 1:07 am by jlg764294682 | Last modified 5/11/2010 9:51 am by Justin Nemeth | 1034 views | 1 replies |

jlg764294682

Incorrect display after image processing

Hi,

First, just a few words about my configuration. My host provider is 1and1 and, despite php_info() reports 40M for memory_limit, it is set to 32M and cannot be changed (cf 16.html and 1.html).

So I have to deal with these limitations and in order to prevent any memory overflow with single large image upload I successfully added a file size and dimensions test into the *single file upload* section of addimages.php file. Therefore big images are not processed and a specific error message is displayed. No change has been made to the server upload section code.

Well, when I try to process a directory which contains only such big images with the *server upload* method, I get this successful message :

"0 images were successfully uploaded! Manage your images........."

instead of the expected "ERROR: x images failed to upload. Tou may be able to fix this by reducing the dimensions............".

Let's see now what happens when the upload directory contains two kinds of files, let's say x "normal" files and y "huge" files:

1) if the huge files are the last processed, I only get a successful message indicating that x files have been processed.

2) if there is at least one "normal" file processed after the "huge" ones, I get the following two messages :
- x images were successfully uploaded!.....
- ERROR: y files failed to upload........
hugefile_1
...
hugefile_y

Puzzling, isn't it? How could this problem be fixed?

Sign in to reply to this post

Justin Nemeth

Really the only fix is to reduce the dimensions of the larger images that are failing. Images direct from a digital camera can sometimes be huge and in some cases that causes issues with the GD image library that PHP uses.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...