Hi. I'm trying to use the signatures but they do not work when I am online and running Glycerine. It says the image cannot be displayed because of errors:
http://avatars.cohtitan.com/signatures/cgt/u13957.png
The avatar probably has the same issue but I haven't tried it yet.
Thanks.
Quote from: Dihan on February 24, 2010, 11:09:47 PM
Hi. I'm trying to use the signatures but they do not work when I am online and running Glycerine. It says the image cannot be displayed because of errors:
http://avatars.cohtitan.com/signatures/cgt/u13957.png
The avatar probably has the same issue but I haven't tried it yet.
Thanks.
Does it fail for all characters, or just certain ones?
I haven't checked them all but it doesn't work for the vast majority of them. It did work when I first started but now they don't.
I'll have more time to look into tonight. Sorry for the delay.
Quote from: Dihan on February 25, 2010, 09:43:05 AM
I haven't checked them all but it doesn't work for the vast majority of them. It did work when I first started but now they don't.
Ok, I think I have it working again. I forced one of your characters to appear as online in our servers so that I could test out what was going wrong. Can you give it another try?
Sorry for the delay but I've been having Updater troubles. I'm online now though and it's working.
Thanks! :D
Running into some issues with my signature image tonight, myself.
The image should be here:
http://avatars.cohtitan.com/signatures/cgt/u4307.png
QuoteThe image "http://avatars.cohtitan.com/signatures/cgt/u4307.png" cannot be displayed, because it contains errors.
Ok, we'll see. Any specific characters?
Quote from: eabrace on March 04, 2010, 02:28:28 AM
Running into some issues with my signature image tonight, myself.
The image should be here:
http://avatars.cohtitan.com/signatures/cgt/u4307.png
Ok, that's better than nothing. Not sure why your custom image isn't showing up, though. Have you changed it recently?
Nope. Haven't changed those images in ages.
Actually, I just noticed something else that's out of whack.
My SG on the profile (http://cit.cohtitan.com/character/440) of the character I'm currently logged in on is a little funky. It's showing with a few extra characters on the front end.
".:3OSI Research..."
Quote from: eabrace on March 04, 2010, 04:23:43 AM
Nope. Haven't changed those images in ages.
Actually, I just noticed something else that's out of whack.
My SG on the profile (http://cit.cohtitan.com/character/440) of the character I'm currently logged in on is a little funky. It's showing with a few extra characters on the front end.
".:3OSI Research..."
aw crap ;.; Looks like the last patch broke the herostats scanner. I'm going to disable SG tracking in the webservices until Skip can get a chance to fix them.
I just noticed something that looks odd to me - and my gut tells me that it might be related to custom images not showing up in signature bars.
When I look at this profile (http://cit.cohtitan.com/character/389), I can view the custom image by right clicking and viewing the background image. That brings up this image (http://avatars.cohtitan.com/custom/characters/389_200.png?1445158051). Now here's the strange part I'm noticing. The extension on this image appears to be .PNG. And yet, when I view the image properties, it's registering as a JPEG Image. I know when I took the screenshots for all of my custom images that they were JPEG images, so that should be correct.
Is there a chance that the signature generator is tripping on a type mismatch because it thinks it should be decoding a PNG when it should actually be decoding a JPEG?
The PHP GD2 is using createjpeg() from a upload resource of any image type.
So filename might be a png (as it was when it was uploaded) however every image uploaded is converted to jpeg by MIME type and GD2 definition.
Actually, there are explict calls to createfromjpeg and createfrompng.
It was using createfrompng(), and producing the black box. I just switched it to createfromjpeg(), and it appears to work.
*boggles*
Look at the bottom of the page. and the php header... it doesn't matter what you create from, it will output the same thing. lol
Quote from: Steiner on June 17, 2010, 08:52:39 PM
Look at the bottom of the page. and the php header... it doesn't matter what you create from, it will output the same thing. lol
"Content-type: image/png"
and imagepng() for the full image, I know.
I'm talking about it reading in the custom avatar (http://avatars.cohtitan.com/custom/characters/389_60.png) from the file (not a dynamically generated file, btw), and overlaying that on top of the other PNGs. Everything else uses imagecreatefrompng() just fine. It's only this instance that needs imagecreatefromjpeg() to not show a black box.
I'm thinking that eabrace is correct. There's probably some weird encoding where his avatars may or may not actually be PNG files. It's a matter of sorting through the cropping/resizing code on the avatars, and that's something I'm not looking forward to.
Well, oddly enough, after showing nothing but a black box where the image should be for months (on all of my characters), I can see the image at the moment (at least for this one.) :)
Quote from: eabrace on June 17, 2010, 09:01:37 PM
Well, oddly enough, after showing nothing but a black box where the image should be for months, I can see the image at the moment. :)
cause I just fixed it *patpat*
Quote from: SaintNicster on June 17, 2010, 08:50:34 PM
Actually, there are explict calls to createfromjpeg and createfrompng.
It was using createfrompng(), and producing the black box. I just switched it to createfromjpeg(), and it appears to work.
*boggles*
Yeah, I was just confirming I was seeing what you were seeing. :)
I hope it didn't break anyone else's signatures in the process.
Edit: And have I told you lately that you rock?
LOL, png's and gifs are the only baddies capable of holding an rending an alpha channel, having a jpeg inject into a png breaks it almost all the time... at least in my experience.