When uploading .png files, using Safari 3.1.2, the last or several images uploaded will throw the following error:
Division by zero in [sitedata snipped...]/sites/all/modules/image_fupload/image_fupload_image/image_fupload_image.module on line 223.

The image node is added, but without the image content. The file can be uploaded normally (not using Image FUpload) thereafter when the node is edited.

Uploading jpegs seems to work fine, this seems to be an image format related problem.

.png file this first occurred with, attached.

CommentFileSizeAuthor
hand-strikes.png742.4 KBaegidian

Comments

grandcat’s picture

This problem often appears if your php filelimit is too low, try to raise it, but of course, I will analyse this case the next days =)

P.S.: I'm back from vacation

grandcat’s picture

Status: Active » Postponed (maintainer needs more info)

I now tested your case with the provided image (image fupload 3.x devel version, but probably the same behaviour for rc1) but no problem appeared. The image (node) was created successfully.
I think that your php version does not support PNG Image files, you should reinstall (recompile) your php binaries with gd library support, but before, you also have to install some png related packages.
With not knowing anything about your server / operating system, I can't answer more precisely.

UPDATE

Have a look at phpinfo | section "gd" | "png" should be enabled there. If not, some additional, needed packages are needed to make it run.

grandcat’s picture

Category: bug » support

I forgot to set that it should be a support request ;)

grandcat’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No infos back - close support request