Add custom CSS to an image

I have a pixel image which browsers use antialising on when you scale it. I want to add image-rendering: -moz-crisp-edges; and the other browser-dependent CSS. Is this possible somehow?

I don’t exactly know what you’re trying to do here, are you making the image pixelated or crispy?

Isn’t it something like
img {
image-rendering: crisp-edges

or something? I don’t code much, but I think that’s how it works, right?

I really need to start googling what antialiasing means.

If I had the ability to alter the CSS contents of the page for everyone, that would be the solution. I’m trying to add CSS for an image on Discourse.

It’s not possible.
Unless you’re the forum admin

Are you asking how to alter an image with CSS? Or are you asking how to implement an image with CSS?

Umm… I have an image on the forum which I want to add CSS to.

What he said.

Yes, I know. It’s mostly a request. You should be able to add basic CSS to images.

Not possible. Sorry.