close dialogue

Hello smile

I'm Siobhan Curran/Kisa Naumova, and this is my weblog. I tend to write about stuff like crossdressing, Macs, code, cats, wine and Second Life, but in general it's just an ongoing conversation about all sorts of stuff. If you'd like to know a little bit more about what this all is, I recommend starting on this page which has a little bit of info on who I am, and what I'm trying to do — or you could dive into my five years worth of archives if you like.

Otherwise, feel free to close this box and explore...

Friday, 17th June, 2005

On PNGs, GIFs, CSS and MSIE


Transparency

Have I mentioned that I hate Internet Explorer? :unsure:

I fail to see why, when almost every other browser on the planet can handle transparency in PNG images, IE seems to just throw its hands up in the air and plaster a great big grey box where things should be all alpha-channely-gorgeous.

Take my little calendar thing on the left there for example. I was dead chuffed when I wrote that. It's not complicated — just a series of three PNGs layered on top of each other like this:

calendar layers

Clever no? All I had to do is create a folder with each of the months, and numbers from one to thirty-one in it, then use date() to work out the file names.

But if you were using Internet Explorer, then it didn't bloody work did it? Nope. Instead of a purple plagiarism of Apple's iCal.app icon, you got this:

IE non transparency

Which is shit.

"Why didn't you use GIFs Siobhan?" comes the obvious question. "GIFs have transparency and MSIE can handle them OK"

Because (comes the response), if you look closely at the bottom of the number, it doesn't have a consistent background colour — and blending in the edges of the anti-aliasing with, say, white, wouldn't be perfect.

But, in my strive for perfection, I have to admit that sometimes a kludge is better than hideousness, and so, I've implemented a little hack to make things slightly less ghastly for MSIE users.

if (!(stristr($HTTP_USER_AGENT, "MSIE"))) {
    $extension = "png" ; 
    } else { 
    $extension = "gif" ; 
    }

And then, wherever I use sexy transparent PNGs, I just drop this snippet in:

<?php echo $extension ; ?>

That way, Firefox and Safari (and Opera and whatever) users get the full yumminess of alpha-channel transparency, while MSIE users (forshame) get second-best nasty GIFness.

You really shouldn't be using MSIE you know. It's clumsy, buggy and prone to security exploits. Here, go get yourselves Firefox — it's free, customizable, and a lot more secure that the Beast of Redmond

(Quick addition to this — I just found a rather interesting article on A List Apart that explains a little of what I'm going on about here, and offers a solution. It's not perfect for me, but I think I can maybe hack it around a bit)


Comments

Listen, I wonder could someone do me a favour? For quite some time now, I've been aware that the comments appear dreadful in MSIE. Last night, with the help of the lovely Joanna Nicholls I managed to play around with the CSS a bit and got them looking closer to what they're supposed to look like — but the little Gravatar was still messing up the top of the box.

I've had another stab at it this morning, and it still looks OK on Safari, but I've no way of checking on MSIE.

So, I was wondering if someone could take a screen shot of this for me, and email it to siobhan@eyefood.co.uk so I can see if I'm getting any closer.

Ta :biggrin:

Screengrab on its way, Siobhan!

Mel xx

(Update: OK, with the help of some lovely people, I've got a little bit closer to making things cross-browser-lovely. As I said, I can't check still, so if it looks screwy, please will yous let me know?)

T and Sympathy

Just going back to the debate from the last few days...

I think there's an underlying issue here — one I've mentioned before. I said, waaaay back at the start of my little rantage about Grayson Perry's documentary, that I didn't care why men wear frocks, I care what happens when men wear frocks.

I know a couple of people disagreed with me, saying that the why was interesting in itself, and I suppose I have to agree to some point — I, like probably every other trannie in the world spend a large amount of time pondering just what it is about my head that makes me want to do what I do, and I guess it's a useful pursuit for us all to follow at some point or another — but I still feel it's not the most important thing in the world.

What is important, in relation to the interaction of the Tranniesphere with the rest of the world, is the outcomes of what we do.

Transvestism is, at the end of the day, a pretty harmless activity. There's no actual physical (and perhaps, mental) damage done simply by putting on a skirt, or a pair of stockings or whatever. If all we did was lock ourselves in our bedrooms and parade around in high heels, then well, nobody gets hurt do they?

But that's not all we do. We take that self-presentation and we foist it on the people around us. Sometimes it's our partners and families, sometimes it's happy accomodating communities like the Gay Community, sometimes it's the much more hostile world of the Straight Ones.

And every time we do that, we project a perception that we have about women onto the ones around us.

In some cases, all that results in is a bit of ridicule — comments fly from onlookers, bemused by the "bloke in a dress". But underneath the immediate (and often unpleasant) feedback that we get, there's an undercurrent of social-stereotype-reinforcement.

Using language like "feminine deportment and poise", whilst on the surface seems to be a positive statement (trying to get away from the idea that to be 'successful', transvestites have to be pretty), only serves to contribute to (a) a continuing social myth that being a woman is all about daintiness and tea-cosies and the like, and (b) the equally mythical idea that all transvestites share this view

This is why we need to be so careful when we demand "acceptance". It's no use us folding our arms in defiance to the rest of the world and demand that they respect us, if we're not prepared to return that respect.

This sounds like I'm suggesting that we adopt a meek and complying attitude to everyone's objections to us. I'm not. I'm not suggesting that we bend over backwards to change what we do to 'fit in' with society — I'm suggesting that we really consider what effects we have on people.

There are, obviously, reactions from people that are unnaceptable. From (as Kat rightly points out) the victimisation and abuse of people in the transgender community result in violence, to the continuing ridicule that we seem to bear on behalf of the media. It's wrong, and we shouldn't stand for it.

But the debates and arguments that seem to go on endlessly within out community about how "the world just doesn't understand us" are stale. They lump all objections to what we do into one great big category of "ignorance", when in actual fact, some of the objections to the way that we behave, and the language we use, are quite justified.

I would love, at this point, to draw comparisons between our struggle for "respect" (not "acceptance" — I still have problems with that word) and the countless advances that the Gay COmmunity have made over the years. But I think the situations are different. True, there is a similarity in the "this is who I am, get used to it" style of reasoning — and, as a fully-registered Militant-Little-Bitch™, I whole-heartedly agree — but that's where the similarities end.

I mean, fair enough, when faced with small-minded, bigoted assholes who declare things like "Why don't you you just stick to the right type of clothing. You are an insult to the normal male community." (to quote a recent commenter on Becky's guestbook, yeah, shove it in their face. Intolerant attitudes should be challenged, attacked, counter-acted.

But the difference between us and the Gay Community is that they're not involving another community in what they do. They don't try to pass themselves off as anything other than themselves. They don't take on the language of a completely different setion of society.

And we do.

And to be honest, as I've said time and time again, if we use outdated, sexist, and offensive language to describe ourselves, then we should expect all the criticism we deserve.

Wow Siobhan, Rant City today.

The language surely is in what we wear, and no different from the sartorial language of trouser-wearing women who were ostracized, and even, in some places, arrested well into the 20th century. They were saying 'Why can't we act like tough guys?" and we are saying "Why can't we act like Stepford Wives?" — these are the two extremes. The less cosmopolitan the observer, the more their mental model is upset and the more they erupt. No-one likes reconstructing a nice neat arrangement of molecules after someone has trodden on it. After all, would you rather go trannie in Manhattan or Stornoway? (apologies in advance to the multitude of Stornoway trannies).

gravatar

Susan 2

I might cause a bit of upset with this comment, but why should I apologise for who I am and what I choose to wear? I'll accept that a lot of people view our community as little more than a laughing stock and that we do affect the gay community. But the only reason that we affect the gay community is because we are seen in a similar light. The gay community have gained respect because they said something along the lines of "this is who we are; like it or lump it". Before that it was African community, before that it was the female community, before that it was the poor. As long as we feel even slightly ashamed of who we are, we can never even hope to gain respect from other people or communities. I don't know, maybe I’m just feeling particularly militant tonight (I’m wearing a full suit, what can I say?), but it seems that sometimes we seem to want just disappear and not cause a fuss, but the sooner we do cause a fuss, the sooner we'll be noticed for who we really are rather than who we're perceived to be. Minority group will always be persecuted, and that is not right. This is why we should not try to hide in the background and hope we won't be noticed. any way enough ranting from me.

X

gravatar

Becky

By the way, I love the new style calendar (I have MSIE), though it's probably just wear you've updated the coding!

And did anyone watch the 8PM Dr Who Sneak trailer, well it wasn't the one i just watched on-line! Maybe Auntie Beeb messed it up? I can't believe I have to wait till Monday to watch the last episode! it's too long. Davros is involved but i don't thin he's the Bad Wolf! I like the Idea that it's K9!!!

gravatar

Becky

While you're on a code fixing stint, your IE fixes removed this minor glitch from the comment box in Opera (Win/8.01), but as you can see it still exists on the "Add a new comment" form. Perhaps you could see your way to porting across whatever change might have fixed that?

How's that Lauren? Is that a bit better? I've still got to do the one for when your details are remembered though...

Just testing...

why should I apologise for who I am and what I choose to wear?

Becky, I don't think you should have to apologise at all. And I don't think there's anything wrong with being militant. It's just that I think sometimes our militancy is misplaced. True, when we come under attack from ignorant, bigoted, assholes, we should be 'out and proud' — but when serious questions are being put to us, I think we should be prepared to have some of our sacred cows questioned.

I think, what I'm trying to say, is that sometimes we view the rest of the world as one great big lump of intolerance. And as a result we don't listen to some of the things people say to us. What we should be doing is working out who our allies are, rather than taking on the whole world :smile:

No better yet I'm afraid, if you're not that fussed, I'm fairly competant with most things CSS (and have good experience of where Opera tends to differ (often over defaults for padding and margins (so you may want to double-check those))), and can take a look myself when I'm feeling less lazy (it's too hot for effort today.) On the subject, Opera, by default, sends "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.01" as it's user-agent. Resulting in it getting mistaken for much worse browsers (there are good reasons that's it's default ID however.) You may want to add an or clause probabling resembling this: "if (!(stristr($HTTPUSERAGENT, "MSIE")) || stristr($HTTPUSER_AGENT, "Opera"))".

I'm actually rather happy you even reference Opera in your original post, too many people haven't even heard of it.

(Yes, I am a little bit of an Opera fangirl.)

Hmm, looks like I may have found a bug or two in your comment system (verbatim text as posted)... sorry!

Well spotted Lauren — I had forgotten to convert the character I use as a delimiter to its HTML Coded equivalent.

I noticed that Opera declares itself as MSIE — which I found odd, but like you say, there must be a good reason for it. Having said that, the only bits that change for MSIE are the PNGs — the CSS is consistent. I haven't implemented any hacks ... yet. I'd rather it worked without hacks — a strange preference considering how hacked the rest of everything is :wink:

There's still a little glitch involving the underscores in the PHP code (one of my talents is the unfortunate ability to pick innocent people's code to shreds. I've spotted a few more things too adding and a doctype to generated pages may go a long way to getting things working better across the board.)

I could explain the details behind why Opera pretends to be IE by default (and why the signs are they're planning to change that) but the geek talk has gone on too long already, shouldn't we be talking about shoes or something? (or at least about Doctor Who :tongue:)

IE seems to just throw its hands up in the air and plaster a great big grey box where things should be all alpha-channely-gorgeous.

Not a solution, but a further question, for a different project I'm experimenting with: anyone know if it's possible to specify the colour of that grey box? Could it become a green box?