1 00:00:05,019 --> 00:00:05,549 Hello, 2 00:00:05,549 --> 00:00:09,370 I have explained how to manage with Gimp, I’m now going to give a 3 00:00:09,370 --> 00:00:13,809 number of practical examples. I said it at the beginning of this series, whenever I talk 4 00:00:13,809 --> 00:00:18,169 about someone, I like to show that someone and, to use the example in the previous 5 00:00:18,169 --> 00:00:22,170 video, I find it hard to talk about the “Pascaline” without showing Blaise Pascal. 6 00:00:22,170 --> 00:00:26,900 The mock Internet search of my video on shapes, and I get a lot of portraits 7 00:00:26,900 --> 00:00:31,480 Pascal. Let’s say that we choose this lithography. 8 00:00:31,480 --> 00:00:35,790 As is, it wouldn’t look too good and I must remove the background, but 9 00:00:35,790 --> 00:00:39,879 I can do this very quickly and very easily with Gimp, using almost only options from the 10 00:00:39,879 --> 00:00:44,989 “Colors” menu. First thing, let’s get rid of this pink beige color 11 00:00:44,989 --> 00:00:50,010 old paper background. In the “Colors” menu, “Desaturate” will 12 00:00:50,010 --> 00:00:54,920 turn everything to shades of greys. But I don’t want grey. In the same menu, 13 00:00:54,920 --> 00:01:00,100 I’m going to switch to “Brightness-Contrast”, 14 00:01:00,100 --> 00:01:10,310 and boldly push contrats to the maximum. 15 00:01:10,310 --> 00:01:15,450 switching “Color to Alpha”. The Alpha channel, if you remember the previous video, is 16 00:01:15,450 --> 00:01:19,439 associated with transparency – and even if you have forgotten to state that your image 17 00:01:19,439 --> 00:01:24,350 knows transparency, this option will enable it automatically. By default, the color to 18 00:01:24,350 --> 00:01:29,060 make transparent is white, which is what we want. Click OK, and we get 19 00:01:29,060 --> 00:01:32,899 a good lithography that we can use with anything. Perhaps that we’ll remove 20 00:01:32,899 --> 00:01:36,119 the legend an the name of the long-dead, artist, which we can achieve by 21 00:01:36,119 --> 00:01:40,469 selecting with the lasso and cutting. Then, why not, we can add Pascal’s 22 00:01:40,469 --> 00:01:43,960 own signature, found on the web and that went through a very 23 00:01:43,960 --> 00:01:47,179 similar process. Done, in a record time. 24 00:01:47,179 --> 00:01:51,920 At this point, we can stop and think. I have no clue about where this Pascal 25 00:01:51,920 --> 00:01:54,899 portrait is coming from, but my guess is that this lithography dates back 26 00:01:54,899 --> 00:01:59,759 to the 1830s/1840s, and smacks of romanticism. It doesn’t look like an authentic portrait. 27 00:01:59,759 --> 00:02:05,719 In fact, this poor Pascal rather looks like a teen-age idol in this lithography. Is that 28 00:02:05,719 --> 00:02:08,920 the way I want him to look? Not so sure. 29 00:02:08,920 --> 00:02:12,940 Let’s happily go from one extreme to the other. I’ve found this stamp, still on Internet. 30 00:02:12,940 --> 00:02:17,030 Technically speaking, it’s an engraving, but here it rather looks like 31 00:02:17,030 --> 00:02:21,440 Dr Frankenstein’s failed first attempt. Aside from style, let’s check how we 32 00:02:21,440 --> 00:02:24,700 can make this portrait usable, because techniques that were previously used 33 00:02:24,700 --> 00:02:29,330 won’t give a good result here. The image is a .jpg file, I’m therefore 34 00:02:29,330 --> 00:02:34,670 first going to add transparency, the famous “Alpha channel”. Next, I don’t want 35 00:02:34,670 --> 00:02:38,100 this portrait to look like a stamp. I’m going to use the selection tool in 36 00:02:38,100 --> 00:02:41,850 the toolbox, and draw a rectangle around the area of the image that I want 37 00:02:41,850 --> 00:02:48,530 to keep. In the “Image” menu I’m going to choose “Crop to Selection”, 38 00:02:48,530 --> 00:02:56,050 Here is what I’m going to work with. 39 00:02:56,050 --> 00:02:59,510 First of all, I’m going to remove the background around the head, using the lasso a little, 40 00:02:59,510 --> 00:03:03,620 and the eraser much. I’m getting an image that wouldn’t be that bad, except for 41 00:03:03,620 --> 00:03:08,950 something very ugly, those awful straight lines. What is the issue? I won’t be able 42 00:03:08,950 --> 00:03:13,700 to place the head wherever I want. In fact, 43 00:03:13,700 --> 00:03:17,280 even if I put it in a corner, I’ll always have a straight line to remind that it’s a plain 44 00:03:17,280 --> 00:03:22,010 cropped stamp. Contrast this with the previous lithography, with its 45 00:03:22,010 --> 00:03:27,440 curves and lower dim area, which allows any type of lay-out. In fact, 46 00:03:27,440 --> 00:03:30,980 We can get a similar effect with Gimp for any type of image and I do 47 00:03:30,980 --> 00:03:34,920 it almost systematically with portraits. Here is how. 48 00:03:34,920 --> 00:03:40,490 We’ll use a filter, the one under “Decor” 49 00:03:40,490 --> 00:03:47,570 called “Fuzzy Border”. When the option windows appear 50 00:03:47,570 --> 00:03:50,750 Two things need to be changed. The first one is the “flatten 51 00:03:50,750 --> 00:03:54,640 image” option, which generates a single-layer 52 00:03:54,640 --> 00:03:59,580 image. I want to update the layers after the filter has run,and I must uncheck 53 00:03:59,580 --> 00:04:03,760 this option. The second thing is the border size. 54 00:04:03,760 --> 00:04:07,410 Out of experience, what works best is a border the size of which is around 55 00:04:07,410 --> 00:04:12,840 about 1/7th or 1/8th of the smallest image dimension – obviously, it doesn’t 56 00:04:12,840 --> 00:04:16,440 need to be precise down to the pixel, I always wildly round numbers. Here, 57 00:04:16,440 --> 00:04:21,769 my image is about 300 by 400, and I’ll use a value of 40 for the border. I apply 58 00:04:21,769 --> 00:04:26,740 the filter, and I get a two-layered copy of the image, with a top layer (that 59 00:04:26,740 --> 00:04:31,650 happens to be the active one) being a kind of fuzzy white frame. I want to 60 00:04:31,650 --> 00:04:35,680 see some things fuzzy, mostly the chest, but not everything and not the head. So I’m 61 00:04:35,680 --> 00:04:39,849 going to use the lasso to select the part of the mask that I want to remove, over the 62 00:04:39,849 --> 00:04:44,639 shoulders.You’ll notice that the lasso allow you to move outside the image and 63 00:04:44,639 --> 00:04:50,990 circle around it from a distance. This area, I remove it. At this point, you shouldn’t 64 00:04:50,990 --> 00:04:55,590 forget to go the the selection menu and choose “All”. 65 00:04:55,590 --> 00:04:58,310 If you don’t, you may have surprises in the next steps. 66 00:04:58,310 --> 00:05:04,729 OK, now we have two layers, the top layer which is the active one 67 00:05:04,729 --> 00:05:09,199 (here indicated by a red frame) and contains a blurred mask, and the bottom 68 00:05:09,199 --> 00:05:13,539 layer, the portrait proper. I go to the 'Layer' menu and choose 69 00:05:13,539 --> 00:05:19,680 to duplicate the current layer. Using the layers window I’m going to select 70 00:05:19,680 --> 00:05:25,229 the bottom layer, and duplicate it as well. Now, it’s getting complicated. 71 00:05:25,229 --> 00:05:29,289 I select any of the two blurred masks and in the “Colors” menu I select “Invert”. 72 00:05:29,289 --> 00:05:36,029 It becomes black. And now beware, the order needs to be precise: using arrows 73 00:05:36,029 --> 00:05:42,240 in the layers window, I’m going to place, from top to bottom, the white mask, one Pascal, 74 00:05:42,240 --> 00:05:47,159 the black mask, and the second Pascal. I make one of the two masks, here the black one, 75 00:05:47,159 --> 00:05:51,759 the active layer and click on “Merge down” in the “Layer” menu. 76 00:05:51,759 --> 00:05:56,650 I do the same with the other mask. 77 00:05:56,650 --> 00:06:00,949 Now, let’s deal with transparency: we we select the top layer, then, in the 78 00:06:00,949 --> 00:06:05,169 Colors menu, we are going to click on what we have already seen, “Color to Alpha”, 79 00:06:05,169 --> 00:06:11,300 and make white transparent. then we select the other layer but we’ll change the color 80 00:06:11,300 --> 00:06:15,710 to make transparent by clicking the color and switching from white to black. 81 00:06:15,710 --> 00:06:19,979 This time, black will disappear and I’m going to end-up with a rather ghostly layer. 82 00:06:19,979 --> 00:06:24,550 So ghostly in fact that usually I’ll duplicate it and then merge the two 83 00:06:24,550 --> 00:06:27,370 clones, which will give it a bit more consistency. 84 00:06:27,370 --> 00:06:33,479 And here we are, we have fuzzy image border. If you need to put this image on a dark 85 00:06:33,479 --> 00:06:36,719 background, I’ll advise you to add a black layer at the very bottom, and inspect 86 00:06:36,719 --> 00:06:41,240 closely. Very often you notice in the light layer that previous erasures 87 00:06:41,240 --> 00:06:44,800 were so so, and sometimes you have a slight halo that doesn’t look too good. 88 00:06:44,800 --> 00:06:51,939 All this is easy to fix with the eraser. When everything is OK, you can remove 89 00:06:51,939 --> 00:06:56,389 the black layer, and merge the two remaining layers. There is one remaining problem that 90 00:06:56,389 --> 00:07:00,210 doesn’t show too much here but is very noticeable on a color image: I have removed white and I have 91 00:07:00,210 --> 00:07:04,150 removed black, so globally I have removed grey. Removing grey from colors, that’s 92 00:07:04,150 --> 00:07:08,439 the opposite of making them greyer, and therefore I have saturated colors. I can 93 00:07:08,439 --> 00:07:11,800 swear you that with a color picture the soberest individual will look 94 00:07:11,800 --> 00:07:16,960 like a second Falstaff. This is why I usually end up with the “Colors” menu 95 00:07:16,960 --> 00:07:21,889 and roughly desaturate colors, trying to match colors in the original picture. 96 00:07:21,889 --> 00:07:27,159 I end up with an image that is far easier to use. In this particular case, 97 00:07:27,159 --> 00:07:29,969 I still have a small straight line. It’s no big deal, I just have to line up this side 98 00:07:29,969 --> 00:07:34,610 with the edge. And finally, aesthetic choices apart, the stamp ends up being quite equivalent 99 00:07:34,610 --> 00:07:36,620 to the lithography. 100 00:07:36,620 --> 00:07:42,169 With all this, how do I introduce Pascal’s computing machine? Not like this, 101 00:07:42,169 --> 00:07:46,839 as you may guess. Here is what I have shown for real during a lecture to my 102 00:07:46,839 --> 00:07:52,650 American students. First of all, drum roll: a date, which corresponds to nothing 103 00:07:52,650 --> 00:07:57,430 known because as anybody knows between 1492 and 1776 not much happened. 104 00:07:57,430 --> 00:08:02,830 This is puzzling. With the date, I associate an exotic location – I have found, still 105 00:08:02,830 --> 00:08:08,159 on the web, a map of Rouen (modern spelling) in 1655, a few years later. I guess that at this time 106 00:08:08,159 --> 00:08:14,349 cities were evolving slowly. The plot thickens. Then another Pascal portrait 107 00:08:14,349 --> 00:08:19,990 that I initially prepared as a background for quotes. And finally over this 108 00:08:19,990 --> 00:08:24,460 the computing machine. Needless to say, I could now use as well the transformed 109 00:08:24,460 --> 00:08:29,539 stamp, with colors that harmonize better with it. 110 00:08:29,539 --> 00:08:35,250 There is a light topic I want to talk of, screenshots. There are tons of ways to 111 00:08:35,250 --> 00:08:38,509 get a screenshot, you can very easily do it with Gimp, under the 112 00:08:38,509 --> 00:08:45,040 File/Create/Screenshot menu. You can take a fullscreen image, 113 00:08:45,040 --> 00:08:49,149 or only a window or an arbitrary area, and it’s very useful, first for 114 00:08:49,149 --> 00:08:52,699 presentations where software tools appear, but not only as you 115 00:08:52,699 --> 00:08:54,910 are going to see. 116 00:08:54,910 --> 00:08:58,740 I like to eat my own dog food, and as in the videos about shapes I mostly 117 00:08:58,740 --> 00:09:02,279 used shapes, in this and the previous ones I have amply used 118 00:09:02,279 --> 00:09:04,709 images, including many shots of my own screen. 119 00:09:04,709 --> 00:09:10,509 If there is something I don’t like in a video recording of one’s own 120 00:09:10,509 --> 00:09:16,100 screen, it’s how indiscreet it can be. You needn’t know whether I’m running on 121 00:09:16,100 --> 00:09:22,180 Windows, Linux or Mac. It’s none of your business. And wallpapers! 122 00:09:22,180 --> 00:09:26,269 I don’t want to let you know whether the gentleman that I am prefers blondes 123 00:09:26,269 --> 00:09:34,600 ... or something else. 124 00:09:34,600 --> 00:09:39,980 One confidence: Jack Lemmon isn’t my type of girl; but I like movies. I don’t want you either to know if 125 00:09:39,980 --> 00:09:44,120 my legendary repute for modesty is well grounded, or whether I am actually hiding 126 00:09:44,120 --> 00:09:50,490 slightly megalomaniac tendencies. Solution? Take a screenshot of THE window 127 00:09:50,490 --> 00:09:54,509 of interest, and show nothing but this window. Even better, only show from the window 128 00:09:54,509 --> 00:09:58,920 the part I am talking about, and I can even play with blurring and desaturation to 129 00:09:58,920 --> 00:10:01,810 focus on ONE precise point. No distraction. 130 00:10:01,810 --> 00:10:07,620 If using screenshots is natural in a presentation linked to programming 131 00:10:07,620 --> 00:10:12,410 or IT topic, you can use them in a far subtler way. Imagine that I 132 00:10:12,410 --> 00:10:15,769 want to talk about set operations, and show intersection, union and 133 00:10:15,769 --> 00:10:17,360 difference between two sets. 134 00:10:17,360 --> 00:10:22,990 I can use two circular shapes in different colors to represent my sets. 135 00:10:22,990 --> 00:10:27,850 The snag, it’s that when I put them together I cannot show easily intersection, 136 00:10:27,850 --> 00:10:31,990 union and difference. All right, for union I might change colors and give the same 137 00:10:31,990 --> 00:10:35,850 color to both shapes; but the single black circular arc in the middle ruins 138 00:10:35,850 --> 00:10:42,069 symmetry. For intersection, I can make colors transparent, and intersection 139 00:10:42,069 --> 00:10:44,920 appears different, but this doesn’t leave many options when choosing colors. 140 00:10:44,920 --> 00:10:47,410 To show the difference, it’s kind of hopeless. 141 00:10:47,410 --> 00:10:53,810 What shall I do? These shapes are in my Powerpoint window. I’m going to zoom 142 00:10:53,810 --> 00:10:58,339 over them as much as possible (I set the slide view option at 200%) and take a screenshot. 143 00:10:58,339 --> 00:11:04,389 I’m going to remove the background of this image and color three different versions. As an 144 00:11:04,389 --> 00:11:07,490 aside, I won’t elaborate on it, but to color an image is far less easy than it 145 00:11:07,490 --> 00:11:10,639 looks, I often use two layers, only keeping black lines in the top 146 00:11:10,639 --> 00:11:16,709 one and splashing colors in the bottom layer. And know, what shall I do? First 147 00:11:16,709 --> 00:11:22,110 slide, my shapes, which are separately animated. Next slide, fade over an image that I have 148 00:11:22,110 --> 00:11:25,850 sized to exactly match the size of the shapes and that I have put on screen 149 00:11:25,850 --> 00:11:29,430 exactly at the same place as the shapes in the previous slide. It’s like a 150 00:11:29,430 --> 00:11:37,620 stuntman replacing the star. Another image, another image, and back with shapes. 151 00:11:37,620 --> 00:11:42,209 I have have shown what I wanted, nobody saw substitutions nor technical switches, 152 00:11:42,209 --> 00:11:47,399 the message got through. And what shall we talk about next? Animations and 153 00:11:47,399 --> 00:11:48,180 transitions, of course.