Gelbooru

Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #241


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0000241Bug Reportingnormalsometimes09/07/09 07:14AMth8827
Reporterth8827
Assigned to:geltas
Resolution:Resolved
View StatusPublic
Version:0.2.0
Target Version:0.2.0
Summary:Occasional error message while uploading .bmp images.
Description:Letely, while uploading images, I have gotten the following error message.

"Warning: imagepng() expects parameter 1 to be resource, boolean given in D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 384 Warning: imagedestroy() expects parameter 1 to be resource, boolean given in D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 385 Warning: fopen(./tmp/a159799034e9efd8a108705c0bd882611e2826ca.png): failed to open stream: No such file or directory in "

After that, the following kept being printed in an infinite loop (until I pressed stop or back)

"D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 387 Warning: feof() expects parameter 1 to be resource, boolean given in D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 388 Warning: fread() expects parameter 1 to be resource, boolean given in D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 390 Warning: feof() expects parameter 1 to be resource, boolean given in D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 388 Warning: fread() expects parameter 1 to be resource, boolean given in D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 390 Warning: feof() expects parameter 1 to be resource, boolean given in D:\www\LocalUser\gelbooru.com\classes\image.class.php on line 388 Warning: fread() expects parameter 1 to be resource, boolean given in "

It only seems to happen when I upload .bmp images, and it does not happen with every image. I have already cleared my cookies earlier today, but it still keeps happening...
Additional Info:
lozertuser replied at 2009-09-07 21:04:33
Could you upload the image that gives this error to Sadpanda.us? I will then look at it to see why the image is having a hard time being converted to png. Thanks.

th8827 replied at 2009-09-07 21:33:07
It is not just one image. About four or five have done it in the last few days... I resaved them as .jpgs and uploaded them that way...

Here's one of them:
The one I uploaded (as a jpeg): http://gelbooru.com/index.php?page=post&s=view&id=581493
Original: http://img06.pixiv.net/img/ddn/5100064.png

Here's another one of them:
Jpeg upload: http://gelbooru.com/index.php?page=post&s=view&id=578834
Original: http://img.f.hatena.ne.jp/images/fotolife/a/awatake/20090830/20090830011246_original.png

I don't remember what the earlier ones were, because I did not think of converting them yet, and just deleted them... (I only saved them because I thought that other people would find them interesting) ...although this has only been happening to me recently.