0:00:05.019,0:00:05.549 Hello, 0:00:05.549,0:00:09.370 I have explained how to manage with[br]Gimp, I’m now going to give a 0:00:09.370,0:00:13.809 number of practical examples. I said it[br]at the beginning of this series, whenever I talk 0:00:13.809,0:00:18.169 about someone, I like to show that someone[br]and, to use the example in the previous 0:00:18.169,0:00:22.170 video, I find it hard to talk about[br]the “Pascaline” without showing Blaise Pascal. 0:00:22.170,0:00:26.900 The mock Internet search of my video on[br]shapes, and I get a lot of portraits 0:00:26.900,0:00:31.480 Pascal. Let’s say that we choose this lithography. 0:00:31.480,0:00:35.790 As is, it wouldn’t look too good and[br]I must remove the background, but 0:00:35.790,0:00:39.879 I can do this very quickly and very easily[br]with Gimp, using almost only options from the 0:00:39.879,0:00:44.989 “Colors” menu. First thing, let’s get[br]rid of this pink beige color 0:00:44.989,0:00:50.010 old paper background. In the[br]“Colors” menu, “Desaturate” will 0:00:50.010,0:00:54.920 turn everything to shades of greys. But [br]I don’t want grey. In the same menu, 0:00:54.920,0:01:00.100 I’m going to switch to “Brightness-Contrast”, 0:01:00.100,0:01:10.310 and boldly push contrats to the maximum. 0:01:10.310,0:01:15.450 switching “Color to Alpha”. The Alpha channel,[br]if you remember the previous video, is 0:01:15.450,0:01:19.439 associated with transparency – and even[br]if you have forgotten to state that your image 0:01:19.439,0:01:24.350 knows transparency, this option will enable[br]it automatically. By default, the color to 0:01:24.350,0:01:29.060 make transparent is white, which is[br]what we want. Click OK, and we get 0:01:29.060,0:01:32.899 a good lithography that we can use[br]with anything. Perhaps that we’ll remove 0:01:32.899,0:01:36.119 the legend an the name of the long-dead,[br]artist, which we can achieve by 0:01:36.119,0:01:40.469 selecting with the lasso and cutting.[br]Then, why not, we can add Pascal’s 0:01:40.469,0:01:43.960 own signature, found on the web[br]and that went through a very 0:01:43.960,0:01:47.179 similar process. Done, in a record time. 0:01:47.179,0:01:51.920 At this point, we can stop and think.[br]I have no clue about where this Pascal 0:01:51.920,0:01:54.899 portrait is coming from, but my[br]guess is that this lithography dates back 0:01:54.899,0:01:59.759 to the 1830s/1840s, and smacks of romanticism.[br]It doesn’t look like an authentic portrait. 0:01:59.759,0:02:05.719 In fact, this poor Pascal rather looks like [br]a teen-age idol in this lithography. Is that 0:02:05.719,0:02:08.920 the way I want him to look?[br]Not so sure. 0:02:08.920,0:02:12.940 Let’s happily go from one extreme to the other.[br]I’ve found this stamp, still on Internet. 0:02:12.940,0:02:17.030 Technically speaking, it’s an engraving,[br]but here it rather looks like 0:02:17.030,0:02:21.440 Dr Frankenstein’s failed first attempt.[br]Aside from style, let’s check how we 0:02:21.440,0:02:24.700 can make this portrait usable, because[br]techniques that were previously used 0:02:24.700,0:02:29.330 won’t give a good result here.[br]The image is a .jpg file, I’m therefore 0:02:29.330,0:02:34.670 first going to add transparency, the famous[br]“Alpha channel”. Next, I don’t want 0:02:34.670,0:02:38.100 this portrait to look like a stamp.[br]I’m going to use the selection tool in 0:02:38.100,0:02:41.850 the toolbox, and draw a rectangle[br]around the area of the image that I want 0:02:41.850,0:02:48.530 to keep. In the “Image” menu I’m going[br]to choose “Crop to Selection”, 0:02:48.530,0:02:56.050 Here is what I’m going to work with. 0:02:56.050,0:02:59.510 First of all, I’m going to remove the background[br]around the head, using the lasso a little, 0:02:59.510,0:03:03.620 and the eraser much. I’m getting an image[br]that wouldn’t be that bad, except for 0:03:03.620,0:03:08.950 something very ugly, those awful straight[br]lines. What is the issue? I won’t be able 0:03:08.950,0:03:13.700 to place the head wherever I want. In fact, 0:03:13.700,0:03:17.280 even if I put it in a corner, I’ll always have[br]a straight line to remind that it’s a plain 0:03:17.280,0:03:22.010 cropped stamp. Contrast this with [br]the previous lithography, with its 0:03:22.010,0:03:27.440 curves and lower dim area, which[br]allows any type of lay-out. In fact, 0:03:27.440,0:03:30.980 We can get a similar effect with Gimp[br]for any type of image and I do 0:03:30.980,0:03:34.920 it almost systematically with portraits.[br]Here is how. 0:03:34.920,0:03:40.490 We’ll use a filter, the one under “Decor” 0:03:40.490,0:03:47.570 called “Fuzzy Border”. When the option windows appear 0:03:47.570,0:03:50.750 Two things need to be changed.[br]The first one is the “flatten 0:03:50.750,0:03:54.640 image” option, which generates a single-layer 0:03:54.640,0:03:59.580 image. I want to update the layers after[br]the filter has run,and I must uncheck 0:03:59.580,0:04:03.760 this option.[br]The second thing is the border size. 0:04:03.760,0:04:07.410 Out of experience, what works best is [br]a border the size of which is around 0:04:07.410,0:04:12.840 about 1/7th or 1/8th of the smallest[br]image dimension – obviously, it doesn’t 0:04:12.840,0:04:16.440 need to be precise down to the pixel,[br]I always wildly round numbers. Here, 0:04:16.440,0:04:21.769 my image is about 300 by 400, and I’ll[br]use a value of 40 for the border. I apply 0:04:21.769,0:04:26.740 the filter, and I get a two-layered copy [br]of the image, with a top layer (that 0:04:26.740,0:04:31.650 happens to be the active one) being a[br]kind of fuzzy white frame. I want to 0:04:31.650,0:04:35.680 see some things fuzzy, mostly the chest,[br]but not everything and not the head. So I’m 0:04:35.680,0:04:39.849 going to use the lasso to select the part[br]of the mask that I want to remove, over the 0:04:39.849,0:04:44.639 shoulders.You’ll notice that the lasso[br]allow you to move outside the image and 0:04:44.639,0:04:50.990 circle around it from a distance. This[br]area, I remove it. At this point, you shouldn’t 0:04:50.990,0:04:55.590 forget to go the the selection[br]menu and choose “All”. 0:04:55.590,0:04:58.310 If you don’t, you may have surprises in[br]the next steps. 0:04:58.310,0:05:04.729 OK, now we have two layers, the [br]top layer which is the active one 0:05:04.729,0:05:09.199 (here indicated by a red frame) and [br]contains a blurred mask, and the bottom 0:05:09.199,0:05:13.539 layer, the portrait proper. I go[br]to the 'Layer' menu and choose 0:05:13.539,0:05:19.680 to duplicate the current layer. Using[br]the layers window I’m going to select 0:05:19.680,0:05:25.229 the bottom layer, and duplicate it[br]as well. Now, it’s getting complicated. 0:05:25.229,0:05:29.289 I select any of the two blurred masks and[br]in the “Colors” menu I select “Invert”. 0:05:29.289,0:05:36.029 It becomes black. And now beware, the [br]order needs to be precise: using arrows 0:05:36.029,0:05:42.240 in the layers window, I’m going to place,[br]from top to bottom, the white mask, one Pascal, 0:05:42.240,0:05:47.159 the black mask, and the second Pascal. I [br]make one of the two masks, here the black one, 0:05:47.159,0:05:51.759 the active layer and click on [br]“Merge down” in the “Layer” menu. 0:05:51.759,0:05:56.650 I do the same with the other mask. 0:05:56.650,0:06:00.949 Now, let’s deal with transparency: we [br]we select the top layer, then, in the 0:06:00.949,0:06:05.169 Colors menu, we are going to click on what [br]we have already seen, “Color to Alpha”, 0:06:05.169,0:06:11.300 and make white transparent. then we select [br]the other layer but we’ll change the color 0:06:11.300,0:06:15.710 to make transparent by clicking the color[br]and switching from white to black. 0:06:15.710,0:06:19.979 This time, black will disappear and I’m[br]going to end-up with a rather ghostly layer. 0:06:19.979,0:06:24.550 So ghostly in fact that usually I’ll[br]duplicate it and then merge the two 0:06:24.550,0:06:27.370 clones, which will give it a bit more consistency. 0:06:27.370,0:06:33.479 And here we are, we have fuzzy image border.[br]If you need to put this image on a dark 0:06:33.479,0:06:36.719 background, I’ll advise you to add a black[br]layer at the very bottom, and inspect 0:06:36.719,0:06:41.240 closely. Very often you notice in the[br]light layer that previous erasures 0:06:41.240,0:06:44.800 were so so, and sometimes you have[br]a slight halo that doesn’t look too good. 0:06:44.800,0:06:51.939 All this is easy to fix with the eraser.[br]When everything is OK, you can remove 0:06:51.939,0:06:56.389 the black layer, and merge the two remaining[br]layers. There is one remaining problem that 0:06:56.389,0:07:00.210 doesn’t show too much here but is very noticeable[br]on a color image: I have removed white and I have 0:07:00.210,0:07:04.150 removed black, so globally I have removed[br]grey. Removing grey from colors, that’s 0:07:04.150,0:07:08.439 the opposite of making them greyer, and[br]therefore I have saturated colors. I can 0:07:08.439,0:07:11.800 swear you that with a color picture[br]the soberest individual will look 0:07:11.800,0:07:16.960 like a second Falstaff. This is why[br]I usually end up with the “Colors” menu 0:07:16.960,0:07:21.889 and roughly desaturate colors, trying to[br]match colors in the original picture. 0:07:21.889,0:07:27.159 I end up with an image that is far easier to use.[br]In this particular case, 0:07:27.159,0:07:29.969 I still have a small straight line. It’s no[br]big deal, I just have to line up this side 0:07:29.969,0:07:34.610 with the edge. And finally, aesthetic choices[br]apart, the stamp ends up being quite equivalent 0:07:34.610,0:07:36.620 to the lithography. 0:07:36.620,0:07:42.169 With all this, how do I introduce Pascal’s[br]computing machine? Not like this, 0:07:42.169,0:07:46.839 as you may guess. Here is what I have[br]shown for real during a lecture to my 0:07:46.839,0:07:52.650 American students. First of all, drum roll:[br]a date, which corresponds to nothing 0:07:52.650,0:07:57.430 known because as anybody knows between[br]1492 and 1776 not much happened. 0:07:57.430,0:08:02.830 This is puzzling. With the date, I associate[br]an exotic location – I have found, still 0:08:02.830,0:08:08.159 on the web, a map of Rouen (modern spelling) in 1655,[br]a few years later. I guess that at this time 0:08:08.159,0:08:14.349 cities were evolving slowly. The plot[br]thickens. Then another Pascal portrait 0:08:14.349,0:08:19.990 that I initially prepared as a background[br]for quotes. And finally over this 0:08:19.990,0:08:24.460 the computing machine. Needless to say,[br]I could now use as well the transformed 0:08:24.460,0:08:29.539 stamp, with colors that harmonize better with it. 0:08:29.539,0:08:35.250 There is a light topic I want to talk of,[br]screenshots. There are tons of ways to 0:08:35.250,0:08:38.509 get a screenshot, you can very easily[br]do it with Gimp, under the 0:08:38.509,0:08:45.040 File/Create/Screenshot menu. You[br]can take a fullscreen image, 0:08:45.040,0:08:49.149 or only a window or an arbitrary area,[br]and it’s very useful, first for 0:08:49.149,0:08:52.699 presentations where software tools[br]appear, but not only as you 0:08:52.699,0:08:54.910 are going to see. 0:08:54.910,0:08:58.740 I like to eat my own dog food, and as[br]in the videos about shapes I mostly 0:08:58.740,0:09:02.279 used shapes, in this and the[br]previous ones I have amply used 0:09:02.279,0:09:04.709 images, including many shots of my own screen. 0:09:04.709,0:09:10.509 If there is something I don’t like[br]in a video recording of one’s own 0:09:10.509,0:09:16.100 screen, it’s how indiscreet it can be. [br]You needn’t know whether I’m running on 0:09:16.100,0:09:22.180 Windows, Linux or Mac. It’s none[br]of your business. And wallpapers! 0:09:22.180,0:09:26.269 I don’t want to let you know whether[br]the gentleman that I am prefers blondes 0:09:26.269,0:09:34.600 ... or something else. 0:09:34.600,0:09:39.980 One confidence: Jack Lemmon isn’t my type of girl;[br]but I like movies.[br]I don’t want you either to know if 0:09:39.980,0:09:44.120 my legendary repute for modesty is well[br]grounded, or whether I am actually hiding 0:09:44.120,0:09:50.490 slightly megalomaniac tendencies.[br]Solution? Take a screenshot of THE window 0:09:50.490,0:09:54.509 of interest, and show nothing but this window.[br]Even better, only show from the window 0:09:54.509,0:09:58.920 the part I am talking about, and I can even[br]play with blurring and desaturation to 0:09:58.920,0:10:01.810 focus on ONE precise point. No distraction. 0:10:01.810,0:10:07.620 If using screenshots is natural in [br]a presentation linked to programming 0:10:07.620,0:10:12.410 or IT topic, you can use them in a[br]far subtler way. Imagine that I 0:10:12.410,0:10:15.769 want to talk about set operations,[br]and show intersection, union and 0:10:15.769,0:10:17.360 difference between two sets. 0:10:17.360,0:10:22.990 I can use two circular shapes in different[br]colors to represent my sets. 0:10:22.990,0:10:27.850 The snag, it’s that when I put them together[br]I cannot show easily intersection, 0:10:27.850,0:10:31.990 union and difference. All right, for union[br]I might change colors and give the same 0:10:31.990,0:10:35.850 color to both shapes; but the single[br]black circular arc in the middle ruins 0:10:35.850,0:10:42.069 symmetry. For intersection, I can make[br]colors transparent, and intersection 0:10:42.069,0:10:44.920 appears different, but this doesn’t leave[br]many options when choosing colors. 0:10:44.920,0:10:47.410 To show the difference, it’s kind of hopeless. 0:10:47.410,0:10:53.810 What shall I do? These shapes are in my[br]Powerpoint window. I’m going to zoom 0:10:53.810,0:10:58.339 over them as much as possible (I set the slide[br]view option at 200%) and take a screenshot. 0:10:58.339,0:11:04.389 I’m going to remove the background of this image[br]and color three different versions. As an 0:11:04.389,0:11:07.490 aside, I won’t elaborate on it, but to [br]color an image is far less easy than it 0:11:07.490,0:11:10.639 looks, I often use two layers, only[br]keeping black lines in the top 0:11:10.639,0:11:16.709 one and splashing colors in the bottom layer.[br]And know, what shall I do? First 0:11:16.709,0:11:22.110 slide, my shapes, which are separately animated.[br]Next slide, fade over an image that I have 0:11:22.110,0:11:25.850 sized to exactly match the size of the[br]shapes and that I have put on screen 0:11:25.850,0:11:29.430 exactly at the same place as the shapes[br]in the previous slide. It’s like a 0:11:29.430,0:11:37.620 stuntman replacing the star. Another image,[br]another image, and back with shapes. 0:11:37.620,0:11:42.209 I have have shown what I wanted, nobody[br]saw substitutions nor technical switches, 0:11:42.209,0:11:47.399 the message got through. And what shall[br]we talk about next? Animations and 0:11:47.399,0:11:48.180 transitions, of course.