Images of Text

Back to Overview
00:00 --> 00:21
Let's talk about images of text. So in general, images of text are not allowed in WCAG. And you should never, if you can do it otherwise, you should never use image or text on an image as the only way to convey that image.

00:21 --> 00:28
And that has a couple of reasons. For example, you can't properly resize text that is on an image.

00:28 --> 00:35
You run into like pixelation and stuff like that. So it's much preferred to have it in text.

00:35 --> 00:45
You also can't copy and paste it, though that is changing as we speak, because a lot of computers just get OCR by default.

00:45 --> 00:52
default, you know, and if you have like an iPhone, and I think Androids also can do that,

00:52 --> 00:58
where you can just copy and paste text from an image. But, you know, it's still a challenge for

00:58 --> 01:02
many people, and you have to be aware of the functionality. And you have to be aware that

01:02 --> 01:09
there's actually text inside of the image, which you might not be. So there's, you know, just using

01:09 --> 01:18
images, text on images is not the best thing to do. And it can also interfere with like user

01:18 --> 01:28
preferences. For example, if I want my text to be always white on black, I couldn't do that with a

01:28 --> 01:37
text that is on the image because that's just like burned into the image, right? So often you get

01:37 --> 01:47
these style text with decorative effects that you can see. And this is the old version of like, oh,

01:47 --> 01:53
you have an image and you put the text over it and just put the image somewhere. And yeah, as you can

01:53 --> 02:00
see, I can actually copy and paste it. Let's see if that works well. Just paste it here into the top.

02:01 --> 02:09
And it says "your need to the" and city just an access it also does not know.

02:09 --> 02:14
So in this case, this functionality wouldn't even have worked for me.

02:15 --> 02:22
So, you know, that's just the reality of all these OCR tools.

02:22 --> 02:25
They are good, especially with normal text.

02:25 --> 02:30
But if you have something that is styled, just doesn't work well.

02:30 --> 02:38
So, in this case, you could use your alt, your access to the city, that would work.

02:38 --> 02:51
Or you could use something like CSS3, which, yeah, we wrote that in, I want to say 2016, 2017, where like web fonts and stuff was a big thing.

02:52 --> 02:58
But yeah, this is like real text, so I can just copy it and then paste it to the top.

02:58 --> 03:04
And of course it works because this is like real text that I can manipulate.

03:05 --> 03:06
So that's fun.

03:10 --> 03:12
And this font is a little bit more readable.

03:12 --> 03:18
We didn't have the font ready to use in this case for it.

03:19 --> 03:23
Now, exempt for text on images are logos.

03:23 --> 03:26
So you can use logos that have text in it.

03:27 --> 03:29
Here's the old Web Accessibility Initiative logo.

03:31 --> 03:34
And basically, it also uses the old attribute.

03:34 --> 03:42
When you're using this, you have to make sure that all information that is inside the image is also in the alternative text.

03:42 --> 03:52
This is especially important if you're using images of text on social media, like on your Twitters, your Mastodons, your Instagrams.

03:53 --> 04:07
If you have text on images there, you have to make sure that in the alternative text, all of the text is in the alternative text functionality.

04:08 --> 04:15
And then there's an example on mathematical expression, which we will just skip because I won't go in there.

04:15 --> 04:27
This is niche knowledge and if you want to read up on it, it's there and now you know about it.