Warning Division by zero in classes/image.php line 152 &

dogfaceboy

Joined: 2002-09-17
Posts: 2
Posted: Tue, 2002-09-17 09:58

I received this warning and can not get around. I have followed the suggestions of deleting and resaving the image then uploading with no luck. I saw a recommendation to check image.php line to ensure that it does not divide by 0 but am not sure how to do this. Does anyone else have any recommendations on how to work around this issue?

Thanks in advance :eek:

http://24.79.103.106/php/gallery/

Debugging looks ok?
----------
Processing status...
- Adding brunette01.jpg
Executing:

c:netpbmbinjpegtopnm c:inetpubwwwrootphpgalleryalbumsalbum01brunette01.jpg | c:netpbmbinpnmfile --allimages

Results:
none

Error messages:

Status: 0 (expected 0)
Executing:

c:netpbmbinjpegtopnm c:inetpubwwwrootphpgalleryalbumsalbum01brunette01.jpg | c:netpbmbinpnmfile --allimages

Results:
none

Error messages:

Status: 0 (expected 0)
Executing:

c:netpbmbinjpegtopnm c:inetpubwwwrootphpgalleryalbumsalbum01brunette01.jpg | c:netpbmbinpnmscale -xysize 150 150 | c:netpbmbinpnmtojpeg --quality=95 > c:inetpubwwwrootphpgalleryalbumsalbum01brunette01.thumb.jpg

Results:
none

Error messages:

Status: 0 (expected 0)
Executing:

c:netpbmbinjpegtopnm c:inetpubwwwrootphpgalleryalbumsalbum01brunette01.thumb.jpg | c:netpbmbinpnmfile --allimages

Results:
none

Error messages:

Status: 0 (expected 0)
Executing:

c:netpbmbinjpegtopnm c:inetpubwwwrootphpgalleryalbumsalbum01brunette01.thumb.jpg | c:netpbmbinpnmfile --allimages

Results:
none

Error messages:

Status: 0 (expected 0)IN UTIL ITEMCAPTUREDATE = 2002
---------------------------

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-18 08:38

*ahem* you're using IIS, right? We don't support that platform. But, since I spent some time on this before I figured that out I'll let you know what I came up with.

I checked out your data files and it looks like Gallery has the width and height as 0. This implies that the "pnmfile" command is failing. Try running this command from a dos prompt:

Quote:
c:netpbmbinjpegtopnm c:inetpubwwwrootphpgalleryalbumsalbum01brunette01.jpg | c:netpbmbinpnmfile --allimages

Does that return the proper height and width? If not, that's your problem. If it does, then IIS may be your problem.

 
dogfaceboy

Joined: 2002-09-17
Posts: 2
Posted: Wed, 2002-09-18 20:52

I really appreciate you getting back to me on this. Yes I am on IIS :wink:

I read that someone got this working on IIS and I feel that by far it is the best system out there! Thanks I will try this and get back to you!

Regards,

Roger