Outils pour utilisateurs

Outils du site


issue152:krita

Ceci est une ancienne révision du document !


As discussed previously, this series is aimed at learning to make something of the old photos in my possession, and others in the public domain, due to their age. You, the reader, are welcome to tag along, and, I hope glean some small insight and perhaps an idea or two from time to time. No promises are made as to the quality of the content, or potential errors and omissions. I am a computer scientist, not a true artist or a professional on image restoration. So please take all this as a best effort, but with no firm guarantees - much as is the case of most open-source software. In this part of this series, we will commence work with a simple landscape, a photo of the castle of Foix in southern France about the turn of the century. With the passage of time, this photo is now stated to fall within the public domain, has already been digitized by the Rosalis project of the municipal public library of Toulouse, and may be downloaded from Wikicommons at address: https://commons.m.wikimedia.org/wiki/File:Ch%C3%A2teau_en_ruines_(8056081904).jpg .

Comme nous en avons parlé précédemment, cette serie a pour but d'apprendre à faire quelque chose des vieilles photos en ma possession, et d'autres du domaine public, de fait de leur age. Vous, lecteur, êtes bienvenu pour m'accompagner et, j'espère, glaner quelques petites particularités et une idée ou deux de temps à autre. Je ne fais aucune promesse qur la qualité du contenu, ou sur les erreurs et omissions possibles. Je suis un un scientifique en informatique, pas un artiste ou un vrai professionnel de la restauration des images. Aussi, merci de considérez ça comme mon meilleur effort, mais sans garanties fermes - comme c'est souvent le cas dans les logiciels Open Source.

Dans cette partie de la série, nous commencerons notre travail par un simple paysage, une photo du château de Foix dans le sud de la France, au début su 20e siècle. Avec le temps, cette photo est tombé dans le domaine public, elle a été numérisée par le projet Rosalis de la bibliothèque municipale de Toulouse et peut être téléchargée à partir de Wikicommons à l'adresse : https://commons.m.wikimedia.org/wiki/File:Ch%C3%A2teau_en_ruines_(8056081904).jpg

A cursory visual inspection shows us that this picture has some of the rather typical imperfections often associated with photographs of its time: more than a century old, the original was no doubt a glass plate using the dry (gelatin) process. These include: physical loss of parts of the image around the edges due to wear-and-tear while handling or storing the image, a completely washed-out sky that shows no relief at all, an improbably darkened castle and parts of the surrounding vegetation as well as the trees to the right of the image, and a patch of light-colored discoloration in the left-bottom corner. Luckily, the image itself is sharp and well-focused. Details are easily visible, except where excess brightness has washed them out such as on light-colored window shutters. Some dark defects (spots) may be seen, mostly against the clear sky. Once we have this file opened in Krita, the first thing I like to do is to rename and save it in Krita’s internal format. We will be using layers, which are not supported by the picture’s original JPEG format. By changing the format, we can ensure that layers are kept separate (and not fused together). We also make sure we are working on a new copy and not on the original file, which may be stored for further reference if needed — or if disaster strikes for whatever reason.

Une inspection visuelle sommaire nous montre que cette image a quelques-unes des imperfections plutôt typiques souvent associées aux photographies de cette époque : vieille de plus d'un siècle, l'original était, sans aucun doute, un plaque de verre utilisant un procédé sec (gélatine). Celles-ci incluent : la perte physique de parties de l'image sur les bords due à l'usure pendant la manipulation et le stockage de l'image, un ciel complètement délavé qui n'a aucun relief, un château improbablement noir comme une partie de la végétation qui l'entoure, ainsi que les arbres sur la droite de l'image et une tache décolorée dans l'angle en bas à gauche. Heureusement, l'image elle même est nette et bien réglée. les détails sont facilement visibles, à part là où l'excès de luminosité les a délavés, comme sur les volets aux couleurs claires. Quelques défauts sombres (des points) peuvent être vus, principalement dans le ciel clair.

Une fois que nous avons ouvert le fichier dans Krita, la première chose que j'aime faire est de le renommer et de le sauvegarder dans le format interne de Krita. Nous utiliserons des calques, qui ne sont pas supportés par le format jpeg de l'image d'origine. En changeant le format, nous pouvons nous assurer que les calques sont maintenus séparément (et non fusionnés). Nous sommes aussi assurés que nous travaillons sur une nouvelle copie et pas sur le fichier original, qui peut être enregistré comme une référence ultérieure, si nécessaire - ou si un désastre survient quelle qu’en soit la raison.

Returning to layers, I then set up a new layer. It will, initially, be transparent. All modifications that imply adding color – painting, spraying – will be done to this layer, and not to the original image. If any serious errors are made, they can be wiped off on the new layer, without affecting the original. Giving each layer a (significant) name may be of help. Please note in the screen capture that the new layer is placed above the original, so that changes will be readily apparent. Also, note that any changes made will be to the layer that is currently active — the new layer in this capture. Let us begin with the picture borders. Most defects are to be seen around the top edge, and affect the sky. We can cover them with a paint color similar to the sky itself, making them disappear. Choose any brush you feel comfortable with; Krita has a large selection, comprising both pencils, felt-tips, and an airbrush. This latter is my personal choice, with a low opacity setting and relatively small size — both of these are configurable with horizontal bars set just beneath the top menu bar.

Pour revenir aux calques, je paramètre un nouveau calque. Au début, il sera transparent. Toutes les modifications qui impliquent l'ajout d'une couleur - peindre, projeter - seront faites sur ce calque, et pas sur l'image d'origine. Si de grosses erreurs sont faites, elles peuvent être effacées sur ce nouveau calque, sans dommage pour l'image d'origine. Donner à chaque calque un nom (significatif) peut aider. Noter, s'il vous plaît, dans l'écran de capture que le nouveau calque est placé sur l'original, de sorte que les modifications seront clairement apparentes. Notez aussi que tous les changements seront faits sur le calque qui est actif en ce moment - le nouveau calque dans cette copie d'écran. Commençons avec les bordures de l'image. La plupart des défauts se voient sur le bord haut et affectent le ciel. Nous pouvons les recouvrir avec une couleur similaire à celle du ciel, les faisant disparaître. Choisissez n'importe quelle brosse avec laquelle vous êtes à l'aise : Krita a une large sélection, comprenant des crayons, des feutres et un aérographe. Ce dernier est mon préféré, avec un réglageléger de l'opacité et une taille relativement petite - ces deux derniers sont configurables avec les barres horizontales juste sous la barre de menu du haut.

Begin by right-clicking on a suitable piece to sky to copy that color and make it your brush’s active color, and then proceed by applying small touches. Brushing ever more lightly and with many applications to build color is the ticket. In passing, the same technique may be used to wipe the sky of its ungainly black dots. The end result is not perfect, with its very uniform appearance, but it is still rather more pleasing than in its original state. As can be seen above, the extreme left of the image has a thin row of dark pixels running from top to bottom. Partly an artifact, and partly due to the original photographic process, this defect can be resolved in part by painting in details, thus reconstructing the scene by extending the visible part of the image left towards the edge. However, this technique is quite time-intensive, and for little gain: just one or two rows of pixels at the very leftmost edge of the picture. For this reason, it may be more effective just to crop the image, cutting off these stray leftmost pixels.

All along the lower edge of the image, we find a similar dark strip that can also be cut out by cropping. We are left with a rather better edge all round, except for the dark spot in the extreme lower left corner, and the lighter blemish around it. To clear up the light-colored blemish, a natural tendency would be to use some dark color on it. But it is clear that applying color directly would only create a dark mass, with all details lost beneath it. To avoid this mishap, we can create a third layer. This time, its mode of combination with the layers beneath it should not be “Normal”, but either “Darken” or “Overlay”. In this particular application, the latter gave me the best results.

Now, inside this new layer, select a dark color – or even flat black – and slowly, lightly, use a low opacity setting to airbrush some color over the area affected. As you proceed, you should see how details such as tree limbs or the fences regain some contrast. With some application, a satisfying result can be obtained. The whitish blemish is no longer quite as apparent. Unfortunately, the area beneath the small black patch in the extreme lower left corner has lost all of its detail. Very little can be done here to remedy this loss of information, so it may be best just to leave it as it is. Since the light-colored blemish has been adjusted, the difference in tone between both areas is lessened, and the eye is not drawn to the dark patch quite as easily as before.

In this part of our series, we have set up our image in Krita, and used two new layers, one a covering layer to hide defects beneath new paint, and the second a darkening or overlay layer to darken the original details and set the overall density of a specific area back to an acceptable average. I encourage the reader to practice some or all of these techniques on this image, or any other of your preference, and we will be back in the next part to try solve the issue of the dark castle and trees to the right of the photo. Until then, take care!

issue152/krita.1578491378.txt.gz · Dernière modification : 2020/01/08 14:49 de d52fr