Mobile app version of vmapp.org
Login or Join
Alves566

: Transparency dithering issue when saving for web I am trying to optimize the graphics for a webdesign, since I am not satisfied with the performance in terms of load-times. The logo is quite

@Alves566

Posted in: #AdobePhotoshop #Optimization #WebsiteDesign

I am trying to optimize the graphics for a webdesign, since I am not satisfied with the performance in terms of load-times. The logo is quite big and in PNG24 so I experimented to see how much I could shrink it. It was thrilled to see that I could get from 158KB to 61KB with practically no image quality loss until I started implementing the picture in the design and noticed white "ghosting" transparency issues around some of the edges. Then I started playing around with transparency dithering, but the best result I managed to get was with diffusion dithering enabled, but the amount set to 0% (yeah, it actually still has an effect?!), but I still find the edges a bit to jagged for what I am looking for. I made a collage where I put the tree versions of the logo on a subtle gradient, which makes it easier to see the issues on the following link:



Any suggestions on how I can get closer to that attractive ≈ 60KB filesize without giving up on the smooth edges when not performing dithering?

BTW: I'm using the "save for web" dialogue in Photoshop CS5.5 in case you're wondering.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves566

3 Comments

Sorted by latest first Latest Oldest Best

 

@Holmes874

1.) In PhotoShop, Save For Web and save as a 24-bit transparent PNG.

2.) Use a third party to compress the image. I like tinypng.com/
3.) Your image was compressed down to your target 60kb with lossy compression preserving full alpha transparency. No white edges, no image quality loss.

10% popularity Vote Up Vote Down


 

@Murray976

I did some playing with the image... extracted a copy from your PNG24 example and tried several methods. In the end I'd use this, myself:



(not great on white.. better on a grey)

What I did was use PNG8 with no color diffusion, then set the transparency diffusion to 50% dithered, and added a grey matte color (#dddddd). That slight grey matte helps the edges look clean on a wide range of greys even if they don't match the specific matte color. You can play with various CSS background colors using this jsFiddle link. You'll see it seems to work well on a range of lighter grey backgrounds. It seems to start failing once you pass #999 for the page color.

It is far from the smooth edge of a PNG24. But there's no way to get the PNG24 smooth edge in an indexed color image (PNG8) So it's a trade off... which is more important the smooth transparency or the file size? And granted I'm working from an extracted copy of the image. Your results may be better with original files.

10% popularity Vote Up Vote Down


 

@Smith574

I know you didnt say this but why wouldn't you just code everything in CSS if you are worried about load times and file sizes?


Circles tutorial, David's demo and another good tutorial by Brian Hadaway
Angled text tutorial


EDIT:
Other circular questions on the stack here and here

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme