Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,005 --> 00:00:03,006
- Let's talk about the image file itself.
2
00:00:03,006 --> 00:00:05,003
To put an image on a webpage,
3
00:00:05,003 --> 00:00:06,008
it has to be in a file format
4
00:00:06,008 --> 00:00:08,007
that web browsers will understand
5
00:00:08,007 --> 00:00:10,007
and there are several options.
6
00:00:10,007 --> 00:00:12,008
We keep inventing new ones
7
00:00:12,008 --> 00:00:16,004
in a quest for the perfect balance between tiny file sizes
8
00:00:16,004 --> 00:00:18,007
and gorgeous-looking images.
9
00:00:18,007 --> 00:00:20,007
We want as much data as possible,
10
00:00:20,007 --> 00:00:22,007
so that it'll look amazing.
11
00:00:22,007 --> 00:00:24,000
But we want as little data
12
00:00:24,000 --> 00:00:26,007
as possible so images will download faster
13
00:00:26,007 --> 00:00:29,005
and not eat through people's data plans.
14
00:00:29,005 --> 00:00:32,000
The goal is to have the highest quality possible
15
00:00:32,000 --> 00:00:34,001
with the smallest file size possible.
16
00:00:34,001 --> 00:00:38,001
Each file format takes a different approach to solving this.
17
00:00:38,001 --> 00:00:42,001
Each uses a different technique for compressing the image.
18
00:00:42,001 --> 00:00:43,006
There are four main file
19
00:00:43,006 --> 00:00:46,005
formats commonly used on the web today.
20
00:00:46,005 --> 00:00:49,005
Each is good at compressing certain types of images
21
00:00:49,005 --> 00:00:52,006
and not as good at compressing others.
22
00:00:52,006 --> 00:00:56,006
The GIF is one of the oldest.
23
00:00:56,006 --> 00:00:58,004
It's good at compressing illustrations
24
00:00:58,004 --> 00:01:01,000
that have large areas of a single color.
25
00:01:01,000 --> 00:01:03,000
It has a limited color space.
26
00:01:03,000 --> 00:01:05,006
It only has 256 colors,
27
00:01:05,006 --> 00:01:08,006
so your image can only use those colors.
28
00:01:08,006 --> 00:01:11,009
This can make photographs fairly pixelated.
29
00:01:11,009 --> 00:01:13,009
So it's a bad choice for photographs
30
00:01:13,009 --> 00:01:16,005
unless you're looking for a retro look.
31
00:01:16,005 --> 00:01:18,007
One of those colors is clear.
32
00:01:18,007 --> 00:01:21,008
So the GIF can be transparent,
33
00:01:21,008 --> 00:01:24,003
but the edges between the transparent part
34
00:01:24,003 --> 00:01:28,000
and the solid part tend to be usually quite jagged.
35
00:01:28,000 --> 00:01:30,003
Of these four, the GIF is the favorite
36
00:01:30,003 --> 00:01:35,004
for making small movies, the animated GIF.
37
00:01:35,004 --> 00:01:37,008
SVG is great for logos,
38
00:01:37,008 --> 00:01:40,007
icons, and other kinds of illustration.
39
00:01:40,007 --> 00:01:42,005
Instead of the file being made up
40
00:01:42,005 --> 00:01:48,006
of individual pixels, it's a vector file.
41
00:01:48,006 --> 00:01:51,009
It contains instructions for a drawing.
42
00:01:51,009 --> 00:01:53,007
Make a square.
43
00:01:53,007 --> 00:01:55,000
Make it this color.
44
00:01:55,000 --> 00:01:56,003
Put it here.
45
00:01:56,003 --> 00:01:59,004
Because SVGs are made of vector and math,
46
00:01:59,004 --> 00:02:03,001
these images can scale to be physically quite large
47
00:02:03,001 --> 00:02:06,007
or very small without ever losing any quality.
48
00:02:06,007 --> 00:02:11,000
It won't get pixelated because there aren't any pixels.
49
00:02:11,000 --> 00:02:14,002
This makes the file size very small.
50
00:02:14,002 --> 00:02:19,005
If you can use an SVG, you definitely should.
51
00:02:19,005 --> 00:02:22,004
SVG stands for Scalable Vector Graphic,
52
00:02:22,004 --> 00:02:24,004
and it's actually a whole other language,
53
00:02:24,004 --> 00:02:27,000
a programming language for graphics.
54
00:02:27,000 --> 00:02:29,008
If you're interested into diving into the SVG language,
55
00:02:29,008 --> 00:02:32,000
there are whole other courses on it.
56
00:02:32,000 --> 00:02:36,003
Meanwhile, you can export an SVG file from Illustrator,
57
00:02:36,003 --> 00:02:39,000
Sketch, or other vector graphics programs,
58
00:02:39,000 --> 00:02:41,007
and handle them much like you handle any
59
00:02:41,007 --> 00:02:44,009
of the other file formats on the web.
60
00:02:44,009 --> 00:02:47,000
JPG is known for being a great
61
00:02:47,000 --> 00:02:49,005
format for compressing photographs.
62
00:02:49,005 --> 00:02:52,001
Most digital cameras in fact save photos
63
00:02:52,001 --> 00:02:54,008
that you shoot as JPG files.
64
00:02:54,008 --> 00:02:57,000
When you put a JPG image on the web,
65
00:02:57,000 --> 00:02:59,000
you want to make sure that either a human
66
00:02:59,000 --> 00:03:02,008
or robot resizes the image to an appropriate physical size
67
00:03:02,008 --> 00:03:05,002
and compresses it for the web.
68
00:03:05,002 --> 00:03:08,009
Don't just stick a 5000 pixel wide,
69
00:03:08,009 --> 00:03:12,001
half-compressed JPG on your website.
70
00:03:12,001 --> 00:03:15,006
They are far, far too big for users to download
71
00:03:15,006 --> 00:03:21,007
and will make your site very slow.
72
00:03:21,007 --> 00:03:24,007
JPGs can be compressed to much smaller sizes,
73
00:03:24,007 --> 00:03:27,005
by simplifying the color information in the file.
74
00:03:27,005 --> 00:03:28,007
You can pick a balance
75
00:03:28,007 --> 00:03:32,007
between the quality and the file size.
76
00:03:32,007 --> 00:03:33,009
You can do that manually
77
00:03:33,009 --> 00:03:37,002
or rely on software on your web service to handle the task.
78
00:03:37,002 --> 00:03:40,002
Either way, when JPG files are prepared for the web,
79
00:03:40,002 --> 00:03:46,000
they are good solid reliable way to deliver a photo.
80
00:03:46,000 --> 00:03:50,007
PNGs are newer format for the web than GIFs or JPGs.
81
00:03:50,007 --> 00:03:52,009
They're a good solution when you have a photograph
82
00:03:52,009 --> 00:03:55,005
and you need part of the photo to be transparent.
83
00:03:55,005 --> 00:03:58,007
The PNG sometimes does a better job than a GIF
84
00:03:58,007 --> 00:04:01,006
at compressing the kind of images that the GIF format likes,
85
00:04:01,006 --> 00:04:03,003
and sometimes it does a better job than
86
00:04:03,003 --> 00:04:05,007
a JPG than compressing the kind of images
87
00:04:05,007 --> 00:04:10,009
that the JPG format likes, but not always.
88
00:04:10,009 --> 00:04:12,009
If you're manually compressing files,
89
00:04:12,009 --> 00:04:14,008
you should try several options
90
00:04:14,008 --> 00:04:18,003
and see which results in the small file.
91
00:04:18,003 --> 00:04:21,007
There will be other image formats coming in the future,
92
00:04:21,007 --> 00:04:24,001
ones that'll do an even better job
93
00:04:24,001 --> 00:04:25,006
of compressing millions
94
00:04:25,006 --> 00:04:28,008
of pixels into smaller and smaller files.
95
00:04:28,008 --> 00:04:30,009
So keep an eye out.
96
00:04:30,009 --> 00:04:33,006
Consider the physical size of an image,
97
00:04:33,006 --> 00:04:37,000
the file format and the compressing settings
98
00:04:37,000 --> 00:04:39,001
when making your image files.
99
00:04:39,001 --> 00:04:42,003
Aim to make them download as fast as possible.
100
00:04:42,003 --> 00:04:45,000
The HTML that we use is the same no matter
101
00:04:45,000 --> 00:04:48,000
which kind of file format you use.
7432
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.