1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Avatar Transparency

Discussion in 'Resolved Bug Reports' started by calorie, Jul 29, 2010.

  1. calorie

    calorie Active Member

    Transparency in avatars / uploaded files turns black.

    Edit: here is the original...


    Attached Files:

    • tab.gif
      File size:
      3.7 KB
    Ranmaru likes this.
  2. Kuma

    Kuma Active Member

  3. Kier

    Kier XenForo Developer Staff Member

    Our avatar scheme is intended to encourage the use of photos - all avatars have a border, so having transparent avatars is going to look a bit weird anyway.
  4. Mike

    Mike XenForo Developer Staff Member

    We do resizing using JPEGs across the board, so that makes transparency a problem in general. I did try PNGs, but the files were huge.
  5. calorie

    calorie Active Member

    Are you using GD or ImageMagick? Just curious.

    For transparency in images, you could set the "transparent black" to a fixed color, perhaps the background color. Just an idea. ;)
  6. Mike

    Mike XenForo Developer Staff Member

    It's using GD.
  7. Erik

    Erik Well-Known Member

    Isn't there a way to reduce the PNG file size? Really small PNG's (even 24bit+transparency) are entirely possible without losing quality. Were you trying 8-bit indexed or 24-bit PNG's?

    Not that I'm blaming you, it's probably entirely GD's fault, but if you could maybe work a little bit harder on it... well, full-transparency uploads would be awesome. :)
  8. BirdOPrey5

    BirdOPrey5 Well-Known Member

    I noted this too so i went with a different avatar. Even with the borders I'd like a transparent option.
  9. Floris

    Floris Guest

    Offtopic: PNG24 ftw.
    Dragonfly likes this.
  10. Shelley

    Shelley Well-Known Member

    Same here. I upload transparent avatars several times. Would be nice to see a fix for this.
  11. calorie

    calorie Active Member

    FYI, I've updated my avatar to have a white background, but the first post herein also has an attached file showing the transparency as black on the thumbnail.
  12. digitalpoint

    digitalpoint Well-Known Member

    Hopefully it will be an admin setting and not force all forums to always use jpg for avatars.
    Mert, EQnoble and Quillz like this.
  13. Mark.B

    Mark.B Well-Known Member

    Yup you've done what I did. :)
  14. Erik

    Erik Well-Known Member

  15. cclaerhout

    cclaerhout Well-Known Member

    Please, this time let user choose between gif and png for everything : icons, avatar, smileys, etc.

    Very happy to see Calorie here :)
  16. Floris

    Floris Guest

    GIF to me is like IE6, dead.

    PNG ftw. Just upgrade the browser or accept it's not showing perfect. Times change. Legacy support should only go that far.
  17. Enigma

    Enigma Well-Known Member

    No, different image formats are suitable for different applications. Use the right tool for the job instead of just saying X is always superior. For example, PNG is lossless and performs well for many applications. JPEG is lossy, but performs much better in terms of filesize than PNG for photographic images, while maintaining the same visual quality in terms of what the naked human eye can detect.
    Dark_Hunter likes this.
  18. Private_Ale

    Private_Ale Member

    To be clear, is this a limitation of the forum, or just the fact that the server is using GD? My forum uses GD and I do not have this problem.

    Just as a test I changed my avatar to a 200x200 PNG and it looks like someone turned off the lights. :(

    If it is a forum limitation than that is a instant deal breaker, considering transparent avatars (and images in general) have moderate popularity IMO and about 90% of general forum users do not use their own photo.

    Floris, I like you, I really do. :) But telling people to upgrade isn't solving the problem. GIF isn't dead and saying that it is, is well, ignorant. I use a modern browser on a modern operation system on modern hardware and having my avatar turn into a black box would still be disappointing (which it is). BTW: What does a browser have to do with this thread at all? If anything you should argue that filesize isn't a problem since modern computers and internet connections are fast enough to handle a transparent PNG avatar ;)
  19. Erik

    Erik Well-Known Member

    Mike, as I was doing my signature badge I looked up some of the functions for GD, and imagepng() supports both the use of PNG compression via a quality setting from 0-9, and the use of PNG filters to reduce the filesize even further. Did you try using these features when you said that "the files were huge"? :)
    EQnoble and Ceri May like this.
  20. Cezz

    Cezz Well-Known Member

    Have to agree here, with the use of quality and compression settings it would be possible to create small image that also has transparency.
    EQnoble likes this.

Share This Page