Outils pour utilisateurs

Outils du site


issue161:krita

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
issue161:krita [2020/09/27 14:34] – créée auntieeissue161:krita [2020/10/08 15:49] (Version actuelle) andre_domenech
Ligne 1: Ligne 1:
-A recurring problem that new users face when starting to use Inkscape is the myriad ways of accidentally making something invisible. A few articles ago, I talked about this with regard to Outline View, and the new Visible Hairlines, Split View and XRay modes in version 1.0. But there’s one way of making objects disappear even from those tools, and which used to cause a lot of confusion for new usersas their objects vanished into the ether with no obvious way to retrieve themVersion 0.91 made recovery easier, and, with 1.0we now have several new options on the context menu that make this feature something that might actually be more of a help than a hindrance.+**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 you glean some small insight and perhaps an idea or two from time to timeNo promises are made as to quality of the contentor potential errors and omissions. I am a computer scientistnot a true artist or a professional of image restorationSo please take all this as a best effortbut with no firm guarantees — much as is the case of most open-source software**
  
-There is an “Object Properties” dialog in Inkscape, which is available from the right-click context menumaking it easy for new users to stumble uponIt allows you to set the IDLabelTitle and Description of your objectbutin practicemost of those items only have any real value when the SVG is loaded into a web browser and manipulated with JavaScriptSmall JavaScript snippets can be entered directly into this dialogvia the Interactivity section at the bottom (see part 82 of this series).+Cette série a pour but d'apprendre à faire quelque chose avec des vieilles photos en ma possessionainsi que d'autres du domaine public du fait de leur âgeVouslecteurêtes bienvenu pour m'accompagner etj'espèreglaner quelques petites particularités et une idée ou deux de temps à autre. Je ne fais aucune promesse sur la qualité du contenuou sur les erreurs et omissions possiblesJe suis un scientifique en informatique, pas un artiste ou un vrai professionnel de la restauration des images. Aussi, merci de considérer ça comme mon meilleur effort, mais sans garanties fermescomme c'est souvent le cas dans les logiciels Open Source
  
-There are also a couple of checkboxes in this dialog that can easily tempt an unwary userThe “Lock” option stops you interacting with the object at all. Initially the object remains selected, and can be affected by keyboard shortcutsbut, as soon as the selection is removed – by clicking on the background or selecting another element – the object becomes completely inertYou can’t select itmove itresize itor delete it. The “Hide” checkbox also makes your object inert – but, in addition, it makes it completely invisible, even to the prying eyes of Outline View and its friends.+**In the previous part of this series, we worked on a scene in which a lot of reverberation overloaded early light sensors, giving light colors a totally washed-out lookSince much information on details had not been retained within the image file, it was impossible or very difficult to put it back into the image through color-curve manipulation, and we finished by clearing up even more of the affected parts of the imageto center the viewer’s focus on the main subject of the photoIn this part of the serieswe will work on another early digital photoin which the camera’s optics and light-sensitive chip lost some definition in an otherwise quite pleasing scenedue to their lack of resolution at the time. The constant progress in casual photographer’s digital equipment – or even mobile phone cameras – has made images taken even a decade ago noticeable for their lack of resolutionas is the case here in a picture from the Dublin Quays.**
  
-Back in the days of v0.48 and earlierthese checkboxes were a real problem for new usersThey would naively lock a bitmap they wished to manually trace overonly to find that the means to unlock it when they wanted to delete it was less than obviousSimilarlya right-click on it would no longer present the Object Properties option – thereby concealing another unlock possibility. A hidden object fared even worse: the behaviour was the samebut you couldn’t even see it to be sure you were right-clicking in the correct place!+Dans la partie précédente de cette sérienous avons travaillé sur une scène dans laquelle l'énorme quantité de réverbération surchargeait les premiers capteurs lumineux, donnant aux couleurs claires un aspect totalement délavéComme de nombreuses informations sur les détails n'avaient pas été enregistrées dans le fichier de l'imageil était impossible ou très difficile de les ramener dans l'image via une manipulation de la courbe des couleurs et nous avons fini par blanchir encore plus les parties touchées de l'image, pour recentrer l'attention du spectateur sur le sujet principal de la photoDans cette partie de la sérienous travaillerons sur une autre photo numérique précoce, dans laquelle les optiques de l'appareil et la puce photo-sensible ont perdu un peu de définition du fait de leur manque de résolution à cette époquedans un tableau par ailleurs assez agréable. Les progrès constants de l'équipement numérique du photographe amateur ou même des appareils photo de téléphones mobiles -  ont rendu les images prises il n'y a qu'une dizaine d'années distinctives par leur manque de résolution, comme c'est le cas aujourd'hui dans cette image des Dublin Quays.
  
-The correct way to unlock or unhide your object was actually to unlock or unhide all the objects in your drawing, via options in the Object menuThere was no UI (other than the XML editor) to let you unlock or unhide individual itemsmaking these capabilities rather useless for managing the state of very specific parts of your drawing.+**A quick zoom immediately shows us what the problem is here: a general lack of resolution leading to blurring and loss of details in the bronze figures that are the center of interest of this sceneThe buildings in the background also exhibit a loss of details that would, quite frankly, be unacceptable in today’s world of mobile phone cameras with 12 million pixels or moreand rather more advanced physical optical systems than at the time.
  
-With 0.91 came new Objects dialog (Object > Objects… described in part 63). This lists every element in the drawing – including the hidden ones – with handy toggle buttons to (un)lock and (un)hide them. It’s very familiar interface in other graphics software, and turns these properties into genuinely useful features. Personally, I think the checkboxes should have been removed from the Object Properties dialog to avoid further confusion, leaving them available only from the Objects dialogbut they still exist in the dialog to this day.+In fact, with this picture we are in similar quandary as in the previous image of tree in Cheung Chau: due to the technical performance of early digital camerassome information is missing in the image file that would be needed to produce truly sharp photos to the same standard as those produced by modern material. So, when working on this type of old photo, we cannot compete on this level. To make our image somewhat attractive among the competing glut of digital photos, we need to center ourselves on other aspects.**
  
-Inkscape v1.0 adds more UI niceties to work with these capabilitiesby providing four new entries on the context menu: +Un agrandissement rapide montre immédiatement le problème : un manque général de résolution conduisant à un flou ou une perte de détails dans les personnages de bronze qui sont le centre d'intérêt de la scèneLes immeubles de l'arrière-plan affichent aussi une perte des détails qui ne seraitdisons-le franchement, pas acceptable dans le monde actuel des appareils photo des smartphones avec 12 millions de pixels ou plus, et avec des systèmes optiques physiques beaucoup plus perfectionnés qu'à ce moment-là.
-Hide selected objects +
-Unhide objects below +
-Lock selected objects +
-Unlock objects below+
  
-The Hide and Lock entries are pretty self-explanatoryThe one caveat to be aware of is that they hide or lock the objects that are selectedwhich may not include the one you’ve right-clicked onMake sure to select all the target objects before right-clicking.+En fait, avec cette image, nous avons le même dilemme qu'avec l'image précédente de l'arbre à Cheung Chau : du fait des performances techniques des premiers appareils photo numériques, des informations manquent dans le fichier de l'image, lesquelles seraient nécessaires pour produire des photos vraiment nettes avec le même niveau de résultat que celles produites par le matériel moderneAussiquand nous travaillons sur ce type de vieilles photos, nous ne pouvons pas nous battre sur ce planPour rendre notre image un tant soit peu attractive dans la concurrence pléthorique des photos numériques, nous devons nous concentrer sur d'autres aspects
  
-The Unhide and Unlock options refer to “below” in their titles. In this case they mean “below the mouse pointer”. Right-click on a locked object and select the Unlock option to unlock it. It doesn’t get much simpler than that, right? But there is a caveat: this operation will unlock any object below the mouse pointerregardless of what layer it’s oneven if the layer itself is hidden and locked! And, as the plural in the menu title suggests, if you have multiple locked items stacked on top of each other below the position where you right-click, they’ll all be unlocked.+**In this casethe main aspects of the scene are the bronze figures, what they represent, and the general lighting which makes them stand out. We can further enhance these effects with a few simple tricks.
  
-Unhiding follows the same rules, but it’s obviously a little harder to find the correct spot to right-click on. As mentionednone of the usual options for seeing invisible objects will work, so I hope you’ve kept track of where everything is in your drawingTo help with this treasure hunt just a little, the Unhide menu option will be enabled only if there is actually hidden object below the mouse pointerso you can be sure you’re in the right place. If you can’t find the object easily then a trip to the Objects dialog is probably better use of your time than trying to play a hobbled version of Battleships against Inkscape.+The first would be to crop the imagecentering the figures in the fieldIf we keep the same image width and cut strip out of the bottomwe gain on two counts: we center our subjects within the field, and at the same time we move to a more modern width-to-height proportion. The 4:3 ratio seen in earlier digital photos such as this one was perfect for screens of the time (remember Cathode-Ray Tube monitors?), but modern viewing devices tend to go up to the panoramic 16:9 ratio, or even higher — and photo proportions have followed suit. In Krita, this is easy to do with the crop tool.**
  
-The Unlock menu option also becomes enabled and disabled based on whether or not there’s a locked item below the mouse pointerbut it gets confused by locked layersbecoming enabled when you right-click over any object in the locked layer, regardless of whether or not the object itself is locked.+Dans ce casles principaux aspects du tableau sont les personnages en bronzece qu'ils représentent et l'éclairage général qui les fait ressortir. Nous pouvons améliorer ces effets encore plus avec quelques astuces simples.
  
-Despite these minor issuesadding the options to the context menu is a welcome change that surfaces these long-standing capabilities of the program in a way that makes them not only more discoverable, but also more usableSmall changes like this may not get the fanfare of the big new featuresbutby making users’ day-to-day workflows a little easier and more flexiblethey’re every bit as welcome.+La première serait de recadrer l'imagepour mettre les personnages au centreSi nous gardons la même largeur d'image et que nous coupons une bande en bas de l'écrannous gagnons sur les deux tableaux : nous centrons les sujets dans l'espace eten même temps, nous passons à une proportion hauteur-largeur plus moderne. Le ratio 4:3 vu dans les premières photos numériques telles que celle-là était parfait pour les écrans de l'époque (vous souvenez-vous des écrans cathodiques ?), mais les dispositifs de visionnage modernes tendent vers le ratio panoramique de 16:9, et même plus, et les proportions des photos ont suivi. Dans Kritac'est facile à faire avec l'outil de rognage.
  
-Another small new feature is even more welcomeat least by me: inverse clipping. This is an omission from the SVG specs which has always frustrated me, not least because it solves common problems trivially, but is no harder for a browser or graphics program to implement than the standard clipping routinesFor lack of an extra paragraph or two in the spec, users have been forced to spend time reinventing inverse clipping with their own complex paths time and time again.+**If you keep an eye on the tool options dialogue that opens when each tool is activenotice the proportion that is being calculated while placing the cropping rectangle on your image. A 16:9 proportion is about 1.78 to one; in this case I chose a slightly higher 1.8 to one proportion for an even wider effect for the scene.
  
-I covered clipping all the way back in part 13 of this seriesIf you’re a very long-term readeryou may recall that this series began with a few articles to help you get to grips with the basics of Inkscape by drawing a snowmanBy part 13 it was time to adorn him with a scarf.+To continue, let us make the bronze statues stand out from the surrounding elementsThis will help us obviate the buildings in the backgroundbut also separate our figures from elements such as the metal railings and lamp post that tend to mix themselves up with our subjects. To do this, simple technique is to keep our figures colorized, while moving the background to black and whiteTo the human eye, the color bits stand out quite clearly and attention is drawn to them.**
  
-I began by drawing a scarf in its entirety, including the part that would normally be hidden behind the snowman’head (“neck” seems a little too generous a term in this case)I first demonstrated how a simple clipping path (in green) wouldn’t do the job – it would leave the back of the scarf visiblewhilst hiding the part you actually wanted to see.+Si vous gardez un œil sur le dialogue des options des outils qui s'ouvre chaque fois qu'un outil est actif, notez que la proportion est calculée pendant que vous placez le rectangle de rognage sur votre imageUne proportion de 16:9 est environ égale 1,78 sur 1 ; dans notre cas, j'ai choisi une proportion légèrement plus grande, de 1,8 sur 1pour donner à la scène un plus grand effet de profondeur.
  
-It’s a classic approach: first show the audience what doesn’t workthen follow up with a demonstration of what does workIn this caseit’s an “inverse clipping mask”created by using Path > Difference to cut the desired shape out of a larger enclosing rectangleThe resultant complex path is then used for clippinggiving the desired result.+Pour poursuivrefaisons ressortir les statues de bronze des éléments environnantsCela nous aidera à repousser les immeubles dans l'arrière-planainsi qu'à séparer nos personnages d'éléments tels que les barrières métalliques et les lampadaires qui ont tendance à se mélanger avec nos sujets. Pour ce faireune technique simple consiste à maintenir la coloration de nos personnages tout en amenant l'arrière-plan vers le noir et blancPour l'œil humainles points colorés ressortent assez clairement et l'attention est attirée vers eux.
  
-It worksbut it’s not really beginner friendly. When a new user just wants to cut the center out of a circle to make a donutbeing forced to confront Boolean operations and bounding boxes makes Inkscape seem rather unfriendlyIf the SVG Working Group had only added an inverse” parameter to clipping paths all those years agoInkscape probably would have included this feature from the earliest versions. As it is, we’ve had to wait until now – and it’s still included only as user-friendly addition by the developers, not because of any change to the SVG specs itself (this option was proposed for SVG2, but didn’t make the cut, much to my ongoing frustration).+**To do soone possibility is to make a copy of our color layerusing the Layers docker copy (clone?) buttonNow, click on the top layer, which will probably be labeled Copy of Layer 1” if our base image was titled “Layer 1”. Nowchoose menu option Filter, Adjust and finally “Desaturate”. Accept the changesand we now have black-and-white version of our scene in the new layer.
  
-So how does this new feature work in Inkscape? As with many “extensions” to the basic SVG capabilitiesit’s implemented as a Live Path Effect (LPE)But, like several other LPEsit’s available directly from the normal Inkscape UIso you don’t need to deal directly with the LPE to benefit from itI’ll cover the new “Power Clip” LPE that is behind it in a future instalment but, for nowlet’s just see how we might use it to work with our snowman’s scarf.+Now comes the manual work. Stay within the B/W copy layerand choose the brush tool and one of the erasersThere are several eraser optionsbut the main one “Eraser Circle” will be fine for our purposes. Slowlyusing small touches and a fine size, erase the statues from the black and white layer… thus revealing the colorized version beneathUsing soft touches and perhaps even reduced opacity for the eraserthe edge of the statues can be adhered to quite well, making each figure pop out quite nicely from a surrounding sea of black and white.**
  
-There’s no real trick to itactually. You just create a path (or an object that can be converted to a paththat encloses the part of the image you want to clip awayThen select both the clipping path and the object or group to be clipped and you’re ready to proceed. Whereas the option for a normal clip can be found on the context menu, it takes a trip to the Object > Clip > Set Inverse (LPEoption to trigger the inverse mode. And that’s it. No complex paths or bounding boxes. Just a simple interface for what should be a simple task.+Pour le faireune possibilité est de faire une copie de notre calque coloré, en utilisant le bouton Dupliquer un calque (cloner ?du panneau Calques. Maintenant, cliquez sur le calque du haut, qui sera probablement « copie de Calque 1 » si notre image de base était intitulée « Calque 1 »Maintenant, choisissez l'option de menu FiltreAjuster et enfin « Désaturer ». Acceptez les modifications et nous avons maintenant une version en noir et blanc (N&Bde notre scène dans ce nouveau calque.
  
-Internallyof course, complex paths and bounding boxes still come into playYou can see this by switching to the Node tool (F2), where you’ll see that Inkscape has automatically created complex path consisting of your clipping path and another that hugs the bounding box of your selected objectAs usualyou can edit the nodes and lines of these paths for an instant effect on the clipped object – ideal for fine-tuning the resultant shape to make sure your scarf provides a nicesnug fit.+Et maintenantdu travail manuelRestez sur le calque de la copie en noir et blanc et choisissez l'outil brosse et une des gommes. Il y plusieurs options de gomme, mais la principale, « Gomme ronde » répondra bien à nos besoinsLentementpar petites touches, de petite taille, effacez les statues du calque en noir et blanc... révélant donc les couleurs qui sont en dessous. En utilisant des touches douces et peut-être même une opacité réduite pour l'effaceur, le bord des statues peut être bien suivifaisant ressortir assez joliment chaque personnage de l'océan noir et blanc environnant.
  
-There’s also a new inverse mode for masksthough its behaviour is not so obviousMasking was covered in part 14. It’s basically similar to clippingbut uses the color of each pixel in the mask to determine the opacity of that part of the masked objectWhite parts remain visibleblack or transparent parts are made transparent, and values in-between have their opacity set accordingly. Typically it’s used where you want to fade the objectrather than produce the abrupt edge that clipping gives. Here’s an example where I use a blurred white object as a mask to remove the outside of a colored rectangle.+**The eye can now distinguish more easily between the figuresand their backgroundTo complete our image, the background – which is still in the top layer – can be made a touch lighter using the tool in Filter > Adjust > Color adjustment curvesIn this caseI raised luminosity slightly for all lighting levels, but made sure this effect was more evident on darker colors. Since the figures in this scene are rather dark-coloredmaking the background slightly lighter gives us even more contrast.
  
-This particular result could obviously be produced simply by blurring a colored ellipse, but in a real example you might have far more complex shape in your mask, or the object you’re masking might be a group made up of lots of different elements.+The technique described is often used in museum photo recreations, but can be of interest in other situations. Since the background is obviated, low resolution is not as noticeable as when full-color image is presented.
  
-Once again, the SVG spec offers no inverse version of a mask. But Inkscape provides such a feature in v1.0, so to cut a hole in the colored rectanglesurely just requires us to use the Object > Mask > Set Inverse (LPE) optionright? Of course notThat would be far too sensible. Instead the result is just a colored rectangle, as though no mask even existed.+In the next (and final) part of this series on using Krita to rework old photoswe will stay with early digital images and work on color density and enhancement. Until thentake care!**
  
-What’s happening here is a discussion for another article – probably once I get round to a further examination of the new LPEs in version 1.0Suffice to say that we can get the effect we’re after by drawing the mask in black rather than whitethen using the Set Inverse option.+L'œil peut maintenant distinguer plus facilement les personnages de leur environnementPour terminer l'image, le fond, qui est encore dans le calque du dessus, peut être rendu légèrement plus clair en utilisant l'outil dans Filtre > Ajuster > Courbe d'ajustement de la couleur. Dans notre cas, j'ai augmenté légèrement la luminosité pour tous les niveaux d'éclairage, mais je me suis assuré que cet effet était plus appuyé sur les couleurs sombresComme les personnages de cette scène sont plutôt de couleur sombrerendre le fond légèrement plus clair augmente encore le contraste.
  
-The irony here is that we’ve had to manually invert the color of the mask in order to use the automatic feature for inverting the mask! There is some logic to thisbut it’s tied up to the way the LPE operates, and the default settings that get applied when you select this optionFor nowI’ll be sticking to creating inverse masks by hand, the old fashioned way, but I can definitely see a lot of inverse clipping paths in my future. +La technique décrite est souvent utilisée dans les restaurations de photos dans des muséesmais peut être intéressante dans d'autres situationsComme le fond est mis à l'écartune faible résolution est moins perceptible que quand l'image entièrement colorée est présentée.
- +
-There’s one final caveat to using these new features: because they’re implemented as Live Path Effects, they won’t work directly on bitmap images. Note the word “directly” – these LPEs can also be used on groups, even if the group contains only a single bitmap image. So, if you really want to poke a hole through a treasured family photo, just put it into its own group, then get going with the inverse clip or mask. I usually advise putting a bitmap into a single-object group anyway, as it opens up some other creative possibilities I’ve covered in the past, so it’s perhaps worth getting into the habit of always grouping a bitmap as soon as you place it in your drawing.+
  
 +Dans la prochaine (et dernière) partie de la série sur l'utilisation de Krita pour restaurer des vieilles photos, nous resterons sur les premières images numériques et travaillerons sur la densité des couleurs et leur amélioration. Jusque-là, prenez soin de vous !
issue161/krita.txt · Dernière modification : 2020/10/08 15:49 de andre_domenech