Call us on 01494 372047 Client Login

Troubles with Microsoft opacity filter

> View all blog entries

Published | 14.51, 18th of July 2008, by Jay Vincent | Technical

Ergh! I just spent about a few hours creating a javascript fade-in slideshow for jpg images, and what seemed to be random white pixels kept appearing in the photographs.

After changing the containing element's background colour, I noticed that these random pixels were transparent - a very interesting occurrence for a jpg image - a format 'seemingly' incapable of transparency.

I did a little searching online and found that this isn't a very well documented bug, but a few other developers had experienced the same problem.

Turns out that when the MS-only opacity filter is used (either through CSS or javascript), areas of true black colour (#000000) incorrectly become fully transparent, no matter what the opacity value for the image. This problem occurs in both IE6 and IE7 - IE8 is expected to deprecate this non-standard approach and comply to W3C standards of opacity by implementing the 'opacity' style property - which netscape engines use without problem.

The only solution I can find is to edit the image in photoshop to slightly brighten any true black pixels, however, due to jpg compression, it can sometimes take a few attempts to rid the image of any #000000 occurrences.

No comments | Make a comment (Average rating | 5.00 / 5)

Post a comment

Your name *
Your email *
(will not be published)
Your comment *

Blog Entries

Blog Topics

Business (8)
Design (18)
Random (14)
SEO (9)
Technical (11)

2011

2010

2009

2008

Featured Case Studies

Barnardo's

Barnardo's

Developing an established brand for publicity materials and ongoing marketing.

> View case study

Tims Dairy

Tims Dairy

Tims Dairy included online brand development, website build and Content Management System

> View case study

Quest Financial Solutions Ltd

Quest Financial Solutions Ltd

Breaking in to the corporate market with stylish publicity.

> View case study

RSS RSS Feed

Share this page

If you found this page useful, perhaps you'd like to bookmark it or share it with the world!

FavouritesAdd to Favourites EmailEmail page to a friend

DiggitDigg it DeliciousDel.icio.us FacebookFacebook MyspaceMySpace GoogleGoogle

Latest News RSS Feed

> We have moved!

Published | 20th of January 2011

> Bringing you up to date.

Published | 29th of November 2010

> Artlines achieves RAR Agency status

Published | 1st of September 2010

Artlines Media

...is a full service creative design agency based in High Wycombe.

We specialise in branding & identity design, website design, development & production, e-commerce, content management systems, search engine optimisation, print design and email marketing campaigns.

Get in touch

From exciting start-ups to corporate brands, our team is always eager to work on the best projects with the best clients.

Artlines Media Ltd
6 Regius Court
Church Road
Penn
High Wycombe
Buckinghamshire
HP10 8RL

Telephone: 01494 372047
Fax: 01494 980243