<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>alike &amp;mdash; Paul Sutton</title>
    <link>https://personaljournal.ca/paulsutton/tag:alike</link>
    <description>Personal Blog</description>
    <pubDate>Tue, 05 May 2026 16:36:26 +0000</pubDate>
    <item>
      <title>Adding CC Images To Photos</title>
      <link>https://personaljournal.ca/paulsutton/adding-cc-images-to-photos</link>
      <description>&lt;![CDATA[Adding CC Images To Photos&#xA;&#xA;This is a re-post from December 2019&#xA;&#xA;If you create lots of media such as photos or graphics.  You may want to add information pertaining to the copyright (or ideally copyleft) of the image.  &#xA;&#xA;As I am interested in Creative Commons (CC) then it makes sense to be able to add one of the many creative commons license logos to an image.&#xA;&#xA;I asked on Friendica about how to do this (having tried and failed before) and was provided with some help and a really useful shell script to automate the process.&#xA;&#xA;Firstly we need an image to modify and a logo image to add to this:&#xA;&#xA;cc-by logo&#xA;&#xA;Example logo file to insert&#xA;&#xA;cc-by logo&#xA;&#xA;For the sake of this article, I am just using a random photo I took of Paignton Geopark.  I have also reduced the image size to 640×480 to make it smaller for the website as per command below.&#xA;&#xA;gm mogrify -resize 640×480 .JPG&#xA;&#xA;I also had to convert the jpg files to png files with the following&#xA;&#xA;gm convert DSCF0182mod.jpg DSCF0182mod.png&#xA;&#xA;So that this blog would display the images. &#xA;&#xA;The next step is to create a folder structure to contain what we need to undertake the work.&#xA;&#xA;What we need is a new folder&#xA;&#xA;mkdir insertcc-logo&#xA;&#xA;Inside this, we need another folder called out&#xA;&#xA;cd insertcc-logo&#xA;&#xA;mkdir out&#xA;&#xA;we need some more files mostly the cc logos,  these are available from a simple duckduckgo search.&#xA;&#xA;Note if putting on a website or other media you need to properly include the creative commons license being used on here I have put &#xA;&#xA;&#39;&#39;&#39;&#xA;Licenced under Attribution 4.0 International (CC BY 4.0)&#xA;&#39;&#39;&#39;&#xA;&#xA;Which should then link to the human readable license terms you want to use. &#xA;&#xA;So what we should have is&#xA;&#xA;\insertcc-logo\insertcc.sh&#xA;&#xA;\insertcc-logo\out\&#xA;&#xA;\insertcc-logo\out\\88×31.png&#xA;&#xA;\insertcc-logo\out\\88×31-sa.png&#xA;&#xA;\insertcc-logo\out\\cc-zero.png&#xA;&#xA;etc&#xA;&#xA;Put the SOURCE FILE in \insertcc-logo\&#xA;&#xA;MODIFY AND RUN the script below&#xA;&#xA;Our script looks like ( save this as insertcc.sh or what you want to call this )&#xA;&#xA;for p in .JPG; do convert “$p” ./out/88×31.png -gravity southeast -geometry +10+10 -composite “out/$p”; done&#xA;&#xA;What the script does is take each file with the JPG extension (or other extension), add the required logo,  and save the modified file in&#xA;&#xA;\insertcc-logo\out\&#xA;&#xA;As per :&#xA;&#xA;cc-by logo&#xA;&#xA;You need to make sure that the script points to the correct source files.&#xA;&#xA;You also need to point the script to the correct file you want to insert in to your source image.&#xA;&#xA;for p in *.JPG;&#xA;&#xA;To use a different logo change this section of the script&#xA;&#xA;$p” ./out/88×31.png&#xA;&#xA;This article originally appeared on http://www.zleap.net.  &#xA;&#xA;--&#xA;&#xA;#photo,#embed,#add,#creativecommonslogo,#linux #graphicsmagick,#editing,#manipulation,#bash,#commands,&#xA;#media,#copyleft,#attribute,#share,#alike,#sharealike,&#xA;#commons,#freedom,&#xA;&#xA;You can find me on Friendica at zleap@social.isurf.ca&#xA;&#xA;---&#xA;&#xA;cc-by logo&#xA;&#xA;Licenced under Attribution 4.0 International (CC BY 4.0)&#xA;&#xA;hr&#xD;&#xA;&#xD;&#xA;table&#xD;&#xA;thead&#xD;&#xA;trtda rel=&#34;me&#34; href=&#34;https://qoto.org/@zleap&#34;Mastodon/a/td&#xD;&#xA;tda href=&#34;https://wiki.ircnow.org/?n=Shelllabs.Intro&#34;ShellLabs/td&#xD;&#xA;tda href=&#34;https://joinmastodon.org/&#34;Join Mastodon/a/td/tr/thead/table&#xD;&#xA;center&#xD;&#xA;AI statement : b Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. /b&#xD;&#xA;/center&#xD;&#xA;&#xD;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xD;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Adding CC Images To Photos</p>

<p><strong>This is a re-post from December 2019</strong></p>

<p>If you create lots of media such as photos or graphics.  You may want to add information pertaining to the copyright (or ideally copyleft) of the image.</p>

<p>As I am interested in <a href="https://creativecommons.org/" rel="nofollow">Creative Commons (CC)</a> then it makes sense to be able to add one of the many creative commons license logos to an image.</p>

<p>I asked on Friendica about how to do this (having tried and failed before) and was provided with some help and a really useful shell script to automate the process.</p>

<p>Firstly we need an image to modify and a logo image to add to this:</p>

<p><img src="https://raw.githubusercontent.com/zleap/blogmedia/master/DSCF0182.png" alt="cc-by logo"></p>

<p>Example logo file to insert</p>

<p><img src="https://raw.githubusercontent.com/zleap/blogmedia/master/88x31.png" alt="cc-by logo"></p>

<p>For the sake of this article, I am just using a random photo I took of Paignton Geopark.  I have also reduced the image size to 640×480 to make it smaller for the website as per command below.</p>

<h3 id="gm-mogrify-resize-640-480-jpg">gm mogrify -resize 640×480 *.JPG</h3>

<p>I also had to convert the jpg files to png files with the following</p>

<h3 id="gm-convert-dscf0182mod-jpg-dscf0182mod-png">gm convert DSCF0182mod.jpg DSCF0182mod.png</h3>

<p>So that this blog would display the images.</p>

<p>The next step is to create a folder structure to contain what we need to undertake the work.</p>

<p>What we need is a new folder</p>

<h3 id="mkdir-insertcc-logo">mkdir insertcc-logo</h3>

<p>Inside this, we need another folder called out</p>

<h3 id="cd-insertcc-logo">cd insertcc-logo</h3>

<h3 id="mkdir-out">mkdir out</h3>

<p>we need some more files mostly the cc logos,  these are available from a simple <a href="https://duckduckgo.com/" rel="nofollow">duckduckgo</a> search.</p>

<p>Note if putting on a website or other media you need to properly include the creative commons license being used on here I have put</p>

<p>&#39;&#39;&#39;
<a href="https://creativecommons.org/licenses/by/4.0/" rel="nofollow">Licenced under Attribution 4.0 International (CC BY 4.0)</a>
&#39;&#39;&#39;</p>

<p>Which should then link to the human readable license terms you want to use.</p>

<p>So what we should have is</p>

<p>\insertcc-logo\insertcc.sh</p>

<p>\insertcc-logo\out</p>

<p>\insertcc-logo\out\88×31.png</p>

<p>\insertcc-logo\out\88×31-sa.png</p>

<p>\insertcc-logo\out\cc-zero.png</p>

<p>etc</p>

<p>Put the SOURCE FILE in \insertcc-logo</p>

<p>MODIFY AND RUN the script below</p>

<p>Our script looks like ( save this as insertcc.sh or what you want to call this )</p>

<pre><code>for p in *.JPG; do convert “$p” ./out/88×31.png -gravity southeast -geometry +10+10 -composite “out/$p”; done
</code></pre>

<p>What the script does is take each file with the JPG extension (or other extension), add the required logo,  and save the modified file in</p>

<p>\insertcc-logo\out</p>

<p>As per :</p>

<p><img src="https://raw.githubusercontent.com/zleap/blogmedia/master/DSCF0182mod.png" alt="cc-by logo"></p>

<p>You need to make sure that the script points to the correct source files.</p>

<p>You also need to point the script to the correct file you want to insert in to your source image.</p>

<p>for p in *.JPG;</p>

<p>To use a different logo change this section of the script</p>

<p>$p” ./out/88×31.png</p>

<p>This article originally appeared on <a href="http://www.zleap.net" rel="nofollow">http://www.zleap.net</a>.</p>

<p>—</p>

<p><a href="/paulsutton/tag:photo" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">photo</span></a>,<a href="/paulsutton/tag:embed" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">embed</span></a>,<a href="/paulsutton/tag:add" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">add</span></a>,<a href="/paulsutton/tag:creativecommonslogo" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">creativecommonslogo</span></a>,<a href="/paulsutton/tag:linux" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">linux</span></a> <a href="/paulsutton/tag:graphicsmagick" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">graphicsmagick</span></a>,<a href="/paulsutton/tag:editing" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">editing</span></a>,<a href="/paulsutton/tag:manipulation" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">manipulation</span></a>,<a href="/paulsutton/tag:bash" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">bash</span></a>,<a href="/paulsutton/tag:commands" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">commands</span></a>,
<a href="/paulsutton/tag:media" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">media</span></a>,<a href="/paulsutton/tag:copyleft" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">copyleft</span></a>,<a href="/paulsutton/tag:attribute" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">attribute</span></a>,<a href="/paulsutton/tag:share" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">share</span></a>,<a href="/paulsutton/tag:alike" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">alike</span></a>,<a href="/paulsutton/tag:sharealike" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">sharealike</span></a>,
<a href="/paulsutton/tag:commons" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">commons</span></a>,<a href="/paulsutton/tag:freedom" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">freedom</span></a>,</p>

<p><a href="https://social.isurf.ca/profile/zleap" rel="nofollow">You can find me on Friendica at zleap@social.isurf.ca</a></p>

<hr>

<p><img src="https://raw.githubusercontent.com/zleap/blogmedia/master/88x31.png" alt="cc-by logo"></p>

<p><a href="https://creativecommons.org/licenses/by/4.0/" rel="nofollow">Licenced under Attribution 4.0 International (CC BY 4.0)</a></p>

<hr>

<p><table>
<thead>
<tr><td><a href="https://qoto.org/@zleap" rel="nofollow">Mastodon</a></td>
<td><a href="https://wiki.ircnow.org/?n=Shelllabs.Intro" rel="nofollow">ShellLabs</td>
<td><a href="https://joinmastodon.org/" rel="nofollow">Join Mastodon</a></td></tr></thead></table>

AI statement : <b> Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. </b>
</p>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>
]]></content:encoded>
      <guid>https://personaljournal.ca/paulsutton/adding-cc-images-to-photos</guid>
      <pubDate>Wed, 09 Dec 2020 07:30:00 +0000</pubDate>
    </item>
  </channel>
</rss>