Titan Network

Archive => Titan Projects => CoH Faces => Topic started by: Swissy on October 30, 2008, 12:42:30 PM

Title: Png's produces php error
Post by: Swissy on October 30, 2008, 12:42:30 PM
Reproduction
---------------
1. Go to [My Account] and select [Upload Photos]
2. Click [Browse] and select a .png image
3. Upload

Bug
-----

The following error message appears at the top of the page:

QuoteA PHP Error was encountered

Severity: Warning

Message: imagecopyresampled(): supplied argument is not a valid Image resource

Filename: controllers/manage.php

Line Number: 183

Selecting [Manage Photos] will show the .png image as a black square.

Solution
---------

Please ensure .png images can be uploaded.


Notes
-------

I finally managed to upload photos and artwork by converting all the files from .png to .jpeg and it all worked like a charm.
Using Firefox 3.0.3 (build 2008092417)/win xp.


cheers,
Swissy

Title: Re: Png's produces php error
Post by: SuckerPunch on October 30, 2008, 04:05:15 PM
Sorry about that - stupid typo in the upload script    :-X

Should be fixed now!
Title: Re: Png's produces php error
Post by: Swissy on October 30, 2008, 04:44:07 PM
Fix verified!

Close bug.



Thanks :D

Title: Re: Png's produces php error
Post by: Maverick X on October 31, 2008, 03:10:45 AM
Quote from: SuckerPunch on October 30, 2008, 04:05:15 PM
Sorry about that - stupid typo in the upload script    :-X

Should be fixed now!

Yeah, I just thought he was trying to break out with a new image type, though I'm not sure what an ong would be.... :P
Title: Re: Png's produces php error
Post by: Tazhyngarth on October 31, 2008, 03:13:52 PM
LOL!