{"id":916,"date":"2021-03-02T22:15:20","date_gmt":"2021-03-02T21:15:20","guid":{"rendered":"https:\/\/pmortensen.eu\/world2\/?p=916"},"modified":"2026-06-14T19:29:53","modified_gmt":"2026-06-14T18:29:53","slug":"krita-on-linux-as-the-equivalent-to-windows-paint","status":"publish","type":"post","link":"https:\/\/pmortensen.eu\/world2\/2021\/03\/02\/krita-on-linux-as-the-equivalent-to-windows-paint\/","title":{"rendered":"Krita on Linux  as the equivalent to Windows&#8217; Paint"},"content":{"rendered":"<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Krita\">Krita<\/a> seems like a good replacement for <a href=\"https:\/\/en.wikipedia.org\/wiki\/Microsoft_Paint\">Microsoft Paint<\/a>. It is sufficiently intuitive to use, even without any exposure to it before.<\/p>\n<p>I use such programs primarily to crop and add frames to screenshots. Even for that relatively simple task, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Pinta_%28software%29\">Pinta<\/a>, the first program I tried, was far too unstable (not to say very unstable). Pinta usually works OK for cropping an image, but any drawing operation very quickly makes Pinta freeze (become unresponsive), losing all the work unless saved.<\/p>\n<h2>Installation<\/h2>\n<p>On <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu_version_history#Ubuntu_20.04_LTS_(Focal_Fossa)\">Ubuntu&nbsp;20.04 (Focal Fossa)<\/a> <a href=\"https:\/\/en.wikipedia.org\/wiki\/MATE_(software)\">MATE<\/a> with <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cinnamon_(desktop_environment)\">Cinnamon<\/a>:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nsudo add-apt-repository ppa:kritalime\/ppa\r\nsudo apt-get update\r\nsudo apt-get install krita # May result in more than 400 MB diskspace consumed...\r\n<\/pre>\n<p>Note: The <em>add-apt-repository<\/em> line may not be necessary in later versions of Ubuntu and in other Debian-like Linux distributions, like <a href=\"https:\/\/blog.linuxmint.com\/?p=4924\">LMDE<\/a> (as Krita has presumably been integrated into the main repositories).<\/p>\n<p>If the <em>kritalime\/ppa<\/em> repository causes the system update to fail (e.g., <em>&#8220;The repository &#8230; is no longer signed&#8221;<\/em>), it can <a href=\"https:\/\/askubuntu.com\/questions\/307\/how-can-ppas-be-removed\/310#310\">be disabled with<\/a>:<\/p>\n<p><!--\n[code language=\"text\" gutter=\"false\"]\nsudo add-apt-repository --remove ppa:kritalime\/ppa\n[\/code]\n\n[code language=\"text\" gutter=\"false\"]\nsudo apt install remove --autoremove krita\n[\/code]\n\n[code language=\"text\" gutter=\"false\"]\nsudo apt autoremove --purge krita\n[\/code]\n--> <\/p>\n<p>In <em>&#8220;Software &#038; Updates&#8221;<\/em>, tab <em>&#8220;Other Software&#8221;<\/em>, uncheck the checked one that includes <em>&#8220;kritalime&#8221;<\/em>. <\/p>\n<h2>Common operations<\/h2>\n<h3>Create a new image with the same dimensions as the image in the clipboard<\/h2>\n<p>E.g., as a result of cutting out a portion of a larger screenshot. <\/p>\n<p>Do menu <em>Edit<\/em> &rarr; <em>Paste into New Image<\/em> (shortcut <kbd>Ctrl<\/kbd> + <kbd>Shift<\/kbd> + <kbd>N<\/kbd>).<\/p>\n<p>If there is a dialog box, choose &#8220;As Web&#8221; (shortcut <kbd>Alt<\/kbd> + <kbd>W<\/kbd>).<\/p>\n<p>(In Windows Paint, this was done by starting with an initial image <strong><em>smaller<\/em><\/strong> than the one in the clipboard, say 100&#215;100 pixels, and then pasting in the image. The result was a new image with expected dimensions.)<\/p>\n<div id=\"TakingA_Screenshot\"><\/div>\n<p>The content in the clipboard could come from a screenshot by <kbd>Ctrl<\/kbd> + <kbd>PrtSc<\/kbd> in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu_MATE#Releases\">Ubuntu&nbsp;MATE&nbsp;20.04<\/a> (Focal Fossa). Note that this copies both screens on a system with two screens. Or <kbd>Ctrl<\/kbd> + <kbd>Shift<\/kbd> + <kbd>PrtSc<\/kbd> for selecting a part of the screen for the screenshot. Or <kbd>Ctrl<\/kbd> + <kbd>Alt<\/kbd> + <kbd>PrtSc<\/kbd> for making a screenshot of the current window.<\/p>\n<p>Note: These shortcuts changed in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu_version_history#Ubuntu_22.04_LTS_(Jammy_Jellyfish)\">Ubuntu&nbsp;22.04<\/a> (Jammy Jellyfish) (the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Content_farm\">content farms<\/a>, etc. don&#8217;t seem to have discovered it&#8230;). Just press the <kbd>PrtSc<\/kbd> key, change the bounding box using the mouse, and <strong><em>Ctrl<\/em><\/strong> + <strong><em>C<\/em><\/strong> will work for getting a selected part of the screen only the clipboard.<\/p>\n<p>For taking a screenshot (on Linux) of a menu or similar where it normally goes away when the <kbd>PrtSc<\/kbd> key is pressed, see <em><a href=\"https:\/\/pmortensen.eu\/world2\/2021\/09\/10\/taking-a-screenshot-of-a-menu-in-cinnamon-linux\/\">Taking a screenshot of a menu in Cinnamon<\/a><\/em>.<\/p>\n<h3>Change image size (e.g., to make space for a frame)<\/h2>\n<p>Get image dimensions: Menu <em>Image<\/em> &rarr; <em>Properties<\/em>. Close the dialog (e.g., by pressing <kbd>Enter<\/kbd>).<\/p>\n<p>Add two times the expected width for the frame plus a margin (e.g., 2&#215;20 + 10 = 50).<\/p>\n<p>Open a new image (<kbd>Ctrl<\/kbd> + <kbd>N<\/kbd>) and select <em>&#8220;Custom Document&#8221;<\/em> (usually the default). Fill in the new dimensions in fields &#8220;Width&#8221; and &#8220;Height&#8221;. Press <kbd>Create<\/kbd> (or <kbd>Alt<\/kbd> + <kbd>C<\/kbd>).<\/p>\n<p>Paste in the image and select it.<\/p>\n<p>Use the <em>Move<\/em> tool to center the image (on the left, select &#8220;Move Tool&#8221; (eight row, second column). Or press &#8220;T&#8221;.).<\/p>\n<p>It is possible to <em>precisely<\/em> center the image. This isn&#8217;t supported directly for bit images, but we can use a trick for our kind of images here: <strong><em>Set the snap grid size to half the extra size in pixels<\/em><\/strong> (as the upper left corner of the image should be on the first grid point in the upper left), in the example here 50 pixels \/ 2 = 25 pixels. Change the grid size by menu <em>&#8220;Settings&#8221;<\/em> &rarr; <em>&#8220;Dockers&#8221;<\/em> &rarr; <em>&#8220;Grid and Guides&#8221;<\/em> (if not already enabled). In the right panel, near the bottom, <em>&#8220;Grid and Guides&#8221;<\/em> opens (if not already). Change both <em>&#8220;X spacing&#8221;<\/em> and <em>&#8220;Y spacing&#8221;<\/em> to &#8220;25 px&#8221;. Check <em>&#8220;Show grid&#8221;<\/em> (if not already). The image will <em>not<\/em> snap, but now the grid marks the exact place where the upper-left corner of the image should be. Move the corner of the image near where it should be and then zoom in order to move it to the pixel-exact place.<\/p>\n<p>Note: Menu <em>Image<\/em> &rarr; <em>Scale Image to New Size<\/em> (Ctrl + Alt + I) can not be used because it will also scale the image.<\/p>\n<div id=\"Create_a_frame\"><\/div>\n<h3 id=\"frame\">Create a frame for an image<\/h2>\n<p>On the left, select &#8220;Line Tool&#8221; (third row, second column).<\/p>\n<p>In &#8220;Brush Presets&#8221; (on the right, mid), select &#8220;b)_Basic-1&#8221; (the fifth). (Krita is way too complex for its own good in this instance. Why isn&#8217;t the default a solid brush?)<\/p>\n<p>On the right, in &#8220;Advanced Color Selector&#8221;, click on the colour ring. This will not by itself change the colour. In the three rows below the colour ring, click to select a colour. This <em>will<\/em> change to colour for subsequent line drawing operations.<\/p>\n<p>Set line width: First select &#8220;Line Tool&#8221; in the left panel. Then in the toolbar, &#8220;Size&#8221; (to the right of &#8220;Opacity&#8221;), click in it to set some size. A drag action will continuously show the line width. It can also be set to an exact size by right clicking (then the line width can be typed in). Finish by pressing <em>Enter<\/em>. A reasonable size for a frame is 20 pixels.<\/p>\n<p>Draw the frames. To lock in the x or y direction (actually, it is 15\u00b0 increment), hold down the <em>Shift<\/em> key and move the mouse a little to lock it into place.<\/p>\n<h3>Zoom in and out<\/h2>\n<p>The menu commands are menu <em>View<\/em> &rarr; <em>Canvas<\/em> &rarr; <em>Zoom In<\/em> \/ <em>Zoom Out<\/em>. More interesting are the keyboard shortcuts. They are the same as a web browser (Ctrl + &#8220;+&#8221; and Ctrl + &#8220;-&#8220;).<\/p>\n<p>More exact control is in the lower right. In the dropdown, the zoom percentage can be typed in. Or, for instance, select &#8220;Fit Page&#8221; to take maximum advantage of the available screen space.<\/p>\n<h3>Freehand circles<\/h2>\n<p>On the left, select &#8220;Freehand Brush Tool&#8221; (in the default configuration (two icons per row), third row, first column). The keyboard shortcut is &#8220;B&#8221;.<\/p>\n<p>For changing the colour, see above, near <em>&#8220;click on the colour ring&#8221;<\/em>.<\/p>\n<h3>Straight lines<\/h2>\n<p>See section &#8220;<a href=\"https:\/\/pmortensen.eu\/world2\/2021\/03\/02\/krita-on-linux-as-the-equivalent-to-windows-paint#frame\">Create a frame for an image<\/a>&#8221; above, near &#8220;On the left&#8221;.<\/p>\n<p><!--\nOn the left, select \"Line Tools\" (in the default configuration (two icons per row), third row, second column).\n\nIn \"Brush Presets\", select \"b)_Basic-1\" (the fifth). (Krita is way too complex for its good in this instance. Why isn't the default a solid brush?)\n--><\/p>\n<h3>Add text<\/h2>\n<p>First select the text tool (in the default configuration (two icons per row), first row, second column).<\/p>\n<p>Then make a (square) selection (left click and drag). The size of the selection will determine the size of the text.<\/p>\n<p>Fill in the text in the <strong><em>lower part<\/em><\/strong> (it isn&#8217;t the first text field; that is for the font&#8230;) and press <strong><em>Save<\/em><\/strong> and <strong><em>Close<\/em><\/strong>.<\/p>\n<p>Se also the YouTube video <em><a href=\"https:\/\/www.youtube.com\/watch?v=ziKxiqAYfYw\">Krita: How to add text in Krita. Super easy tutorial<\/a><\/em>.<\/p>\n<h2>Alternatives<\/h2>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=L7GWKOnw-4A&#038;t=11m46s\">A video reviewing 4M Linux<\/a> (at 11 min 46 secs) reveals:<\/p>\n<ul>\n<li>mtPaint<\/li>\n<li>GNU Paint<\/li>\n<li>XPaint<\/li>\n<\/ul>\n<p><!-- E N D --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Krita seems like a good replacement for Microsoft Paint. It is sufficiently intuitive to use, even without any exposure to it before. I use such programs primarily to crop and add frames to screenshots. Even for that relatively simple task, &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/pmortensen.eu\/world2\/2021\/03\/02\/krita-on-linux-as-the-equivalent-to-windows-paint\/\"> <span class=\"screen-reader-text\">Krita on Linux  as the equivalent to Windows&#8217; Paint<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,45,23],"tags":[],"_links":{"self":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/916"}],"collection":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/comments?post=916"}],"version-history":[{"count":109,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/916\/revisions"}],"predecessor-version":[{"id":6406,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/916\/revisions\/6406"}],"wp:attachment":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/media?parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/categories?post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/tags?post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}