{"id":46106,"date":"2019-08-22T03:01:52","date_gmt":"2019-08-21T17:01:52","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=46106"},"modified":"2020-09-19T10:40:29","modified_gmt":"2020-09-19T00:40:29","slug":"inkscape-vector-image-editor-banner-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/inkscape-vector-image-editor-banner-tutorial\/","title":{"rendered":"Inkscape Vector Image Editor Banner Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/banner_inkscape.gif\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Inkscape Vector Image Editor Banner Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/banner_inkscape.jpg\" title=\"Inkscape Vector Image Editor Banner Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Inkscape Vector Image Editor Banner Tutorial<\/p><\/div>\n<p>We got a job recently to create a banner for RJM Programming.  No worries, for our MacBook Pro runnning macOS Mojave 10.14.5.  Think <a target=_blank title='Apple Pages app' href='https:\/\/www.apple.com\/au\/pages\/'>Pages<\/a> or <a target=_blank title='Gimp' href='http:\/\/gimp.org'>Gimp<\/a> just for starters (or read <a target=_blank title='Useful link' href='https:\/\/www.vyond.com\/resources\/6-best-free-banner-maker-tools\/'>this useful link<\/a>).   But our specification involved a requirement for 300&#215;350 pixels, which is not a popular banner size.  Of course, you can &#8220;work&#8221; desktop graphical editors to output data in a variety of formats and sizes, but we think it might be best to decide on a method that comes from a <a target=_blank title=\"300x350 banner Google search, thanks\" href='https:\/\/www.google.com\/search?rlz=1C5CHFA_enAU832AU832&#038;biw=886&#038;bih=755&#038;ei=JMRbXb_pJenYz7sPuLOumAI&#038;q=300x350+banner&#038;oq=300x350+banner&#038;gs_l=psy-ab.3...25462.28317..29103...0.2..0.155.295.0j2......0....1..gws-wiz.......0i71j35i304i39.08By4JXpn_s&#038;ved=0ahUKEwi_i5_tl5HkAhVp7HMBHbiZCyMQ4dUDCAo&#038;uact=5'>&#8220;300&#215;350 banner&#8221;<\/a> online search.  And examining the resultant links got us to revisit the &#8220;vector graphics champion&#8221; freeware (and open source) <a target=_blank title='Inkscape' href='https:\/\/inkscape.org'>Inkscape<\/a> desktop application (added to our <a target=_blank title='The Best Things In Life Are Free ...' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/the-best-things-in-life-are-free'>The Best Things In Life Are Free &#8230;<\/a> list) we last talked about at <a title='Inkscape Vector Image Editor Primer Tutorial' href='#iviept'>Inkscape Vector Image Editor Primer Tutorial<\/a>.<\/p>\n<p>And so, with the great Inkscape, how did we create our 300&#215;350 pixel banner below?<\/p>\n<p><img style='width:300px;height:350px;' src='http:\/\/www.rjmprogramming.com.au\/Mac\/drawing.png' title='RJM Programming Banner 300x350 pixels via Inkscape'><\/img><\/p>\n<p>In broad brush terms &#8230;<\/p>\n<ol>\n<li>Click the Inkscape icon (which, after install, we arranged to reside in the Dock down the bottom of the screen)<\/li>\n<li>File -&gt; New &#8230; for blank vector graphics document &#8230; but we direct your attention to the &#8220;New from Template&#8230;&#8221; which could be really useful for you to avoid having to do the step below &#8230;<\/li>\n<li>File -&gt; Document Properties &#8230; Custom Size: Units &#8211; pixels, Width &#8211; 300, Height &#8211; 350 &#8230; Viewbox: Width &#8211; 300, Height &#8211; 350 &#8230; Close the Document Properties window via red close icon at top left<\/li>\n<li>Did the vector graphics artwork, involving, for us, Create 3d boxes,  Create and edit text objects, Draw calligraphic or brush strokes<\/li>\n<li>File -&gt; Save As&#8230; this is where we learn that Inkscape may be a vector graphics editor, but that doesn&#8217;t mean you can&#8217;t Save As another image type, and so with the Type dropdown, we choose Cairo PNG (*.png) <font size=1>(from the default Inkscape SVG (*.svg) format)<\/font> and after arranging a good path to save to, we entered Name: drawing.png &#8230; and clicked Save button<\/li>\n<li>Separately, to check the 300&#215;350 pixel requirement, we open our <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a> directory \/Applications\/MAMP\/htdocs\/drawing.png as http:\/\/localhost:8888\/drawing.png (in a Safari web browser window), open Develop -&gt; Show Web Inspector and click the Inspect button to highlight our Inkscape created PNG image to confirm its size as 300&#215;350 pixels<\/li>\n<\/ol>\n<p> &#8230; and rest assured it is possible via Inkscape&#8217;s File -&gt; Open&#8230; to open this (non-vector) PNG image that gets Imported back into the vector graphics that is Inkscape&#8217;s <strike>thang<\/strike>thing.<\/p>\n<p><img style='width:100%;' src='http:\/\/www.rjmprogramming.com.au\/Mac\/banner_inkscape.gif' title='RJM Programming Banner (300x350 pixels) creation steps via Inkscape'><\/img><\/p>\n<p><b><i>Did you know?<\/i><\/b><\/p>\n<p>We&#8217;re runnning macOS Mojave 10.14.5 here on this MacBook Pro in August, 2019.  Inkscape needs an <a target=_blank title='X112.7.5 \u2013 XQuartz' href='http:\/\/xquartz.macosforge.org\/trac\/wiki\/X112.7.5'>X11<\/a> terminal application to interface to, that being (called) XQuartz in this day and age.  But installing the 2.7.11 most recent XQuartz version, at the time of writing, caused issues with the <a target=_blank title='Inkscape' href='https:\/\/inkscape.org'>Inkscape<\/a> 0.92.2 installation.  You&#8217;d click the Inkscape icon and in the dock it would jump up and down then effectively die.  Even in Finder, Ctrl clicking to reveal Package Contents and get to the Unix executable in the Contents and then macOS folders, to click, same problem.  But, thanks to the advice at <a target=_blank title='Great link' href='http:\/\/www.inkscapeforum.com\/viewtopic.php?t=19119'>this great link<\/a>, we found that going back through the <a target=_blank title='XQuartz version releases' href='https:\/\/www.xquartz.org\/releases\/index.html'>XQuartz version releases<\/a> to its <a target=_blank title='X11 XQuartz version 2.7.9 version' href='https:\/\/www.xquartz.org\/releases\/XQuartz-2.7.9.html'>2.7.9<\/a> version cleared up all these issues.<\/p>\n<hr>\n<p id='iviept'>Previous relevant <a target=_blank title='Inkscape Vector Image Editor Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/inkscape-vector-image-editor-primer-tutorial\/'>Inkscape Vector Image Editor Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/inkscape.pdf\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Inkscape Vector Image Editor Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/inkscape-15of.jpg\" title=\"Inkscape Vector Image Editor Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Inkscape Vector Image Editor Primer Tutorial<\/p><\/div>\n<p>As far as image editing goes at RJM Programming, we turn to &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Paintbrush for Mac' href='http:\/\/paintbrush.sourceforge.net\/'>PaintBrush<\/a> (the Mac OS X one) for more than 90% of the simpler work &#8230; and then use &#8230;<\/li>\n<li><a target=_blank title='PreView (on a Mac) information from Apple' href='https:\/\/support.apple.com\/en-us\/HT201740'>Preview<\/a> (Mac OS X) occasionally to do with resizing tasks &#8230; but, more often, for the rest of the work we use &#8230;<\/li>\n<li><a target=_blank href='http:\/\/www.gimp.org' title='Gimp, or GIMP'>Gimp<\/a> (Mac OS X desk application as XQuartz or X11) for jobs requiring special effects or filters or opacity or colourization or hue control<\/li>\n<\/ul>\n<p>But what if you want to &#8220;Export As&#8230;&#8221; <a target=_blank title='HTML svg information from w3schools' href='https:\/\/www.w3schools.com\/html\/html5_svg.asp'>SVG<\/a>?  None of the applications above, &#8220;out of the box&#8221; &#8220;Export As&#8230;&#8221; SVG.  First off, let&#8217;s get a reason for this from <a target=_blank title='Useful link, thanks' href='https:\/\/askubuntu.com\/questions\/301540\/export-image-as-svg-in-gimp'>this very useful link<\/a>, thanks &#8230;<\/p>\n<blockquote cite='https:\/\/askubuntu.com\/questions\/301540\/export-image-as-svg-in-gimp'><p>\nGIMP is a raster graphics editor application. SVG is a form of vector graphics. If you want to edit SVG files, you should install the inkscape package and use Inkscape instead.\n<\/p><\/blockquote>\n<p>Yes, the SVG image format is a vector graphics image format, and that is the difference.  So we went along with the advice and used, for our Mac OS X system the DMG method of (free, open source) install at the <a target=_blank title='Inkscape' href='https:\/\/inkscape.org'>Inkscape<\/a> website to get things rolling along.<\/p>\n<p>Today&#8217;s <a target=_blank title='Click picture' href='http:\/\/www.rjmprogramming.com.au\/Mac\/inkscape.pdf'>PDF slideshow<\/a> takes it up from that point, showing us Creating a 3D Box and dragging our way to creating a 3D Box shape that we &#8220;Save As&#8230;&#8221; (because now we are well and truly in the &#8220;vector&#8221; woooorrrrrrlllllld) \/Applications\/MAMP\/htdocs\/drawing.svg &#8230; why?  Well, it&#8217;s our way to remind you, as we so often do, that the <a target=_blank title='MAMP local Apache\/PHP\/MySql web server' href='http:\/\/mamp.info'>MAMP<\/a> local Apache\/PHP\/MySql web server document root, by default, points at \/Applications\/MAMP\/htdocs\/ and in a web browser, with MAMP activated, points at (the URL prefix) HTTP:\/\/localhost:8888\/ and so us lobbing onto &#8230;<\/p>\n<p><code><br \/>\nHTTP:\/\/localhost:8888\/<a target=_blank title='drawing.svg' href='http:\/\/www.rjmprogramming.com.au\/Mac\/drawing.svg'>drawing.svg<\/a><br \/>\n<\/code> <\/p>\n<p> &#8230; has you seeing what we saw on MAMP (and then we uploaded this to the RJM Programming website place you are accessing with the link above).  What you need to do this is a (s)ftp desktop application like <a target=_blank title='FileZilla landing page from SourceForge ... thanks' href='https:\/\/filezilla-project.org\/'>FileZilla<\/a>.  Web server maintenance 101.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d36946' onclick='var dv=document.getElementById(\"d36946\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/image\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d36946' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d46106' onclick='var dv=document.getElementById(\"d46106\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/banner\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d46106' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We got a job recently to create a banner for RJM Programming. No worries, for our MacBook Pro runnning macOS Mojave 10.14.5. Think Pages or Gimp just for starters (or read this useful link). But our specification involved a requirement &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/inkscape-vector-image-editor-banner-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,17,37],"tags":[3051,319,327,2218,1822,407,541,549,602,2686,723,725,734,2178,744,3049,2870,2042,1319,1366,1469],"class_list":["post-46106","post","type-post","status-publish","format-standard","hentry","category-elearning","category-gui","category-tutorials","tag-banner","tag-desktop","tag-did-you-know","tag-draw","tag-editor","tag-export","tag-graphics","tag-gui","tag-import","tag-inkscape","tag-mac","tag-mac-os-x","tag-macbook-pro","tag-macos","tag-mamp","tag-open","tag-pen","tag-png","tag-tutorial","tag-vector","tag-x11"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/46106"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=46106"}],"version-history":[{"count":13,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/46106\/revisions"}],"predecessor-version":[{"id":50348,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/46106\/revisions\/50348"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=46106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=46106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=46106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}