<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>embed &amp;mdash; Paul Sutton</title>
    <link>https://personaljournal.ca/paulsutton/tag:embed</link>
    <description>Personal Blog</description>
    <pubDate>Tue, 05 May 2026 16:29:57 +0000</pubDate>
    <item>
      <title>Embedding Mastodon Posts</title>
      <link>https://personaljournal.ca/paulsutton/embedding-mastodon-posts-dq0s</link>
      <description>&lt;![CDATA[Embedding Mastodon Posts&#xA;&#xA;By default.  When you embed a post from mastodon in to a WriteAs blog the default width is 400.&#xA;&#xA;I am going to use the embed from my previous post as an example&#xA;&#xA;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;400&#34; allowfullscreen=&#34;allowfullscreen&#34;/iframe&#xA;&#xA;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;400&#34; allowfullscreen=&#34;allowfullscreen&#34;/iframe&#xA;&#xA;Changing the width to 600 results in, as you would expect a wider post which fits really nicely.&#xA;&#xA;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;600&#34; allowfullscreen=&#34;allowfullscreen&#34;/iframe&#xA;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;600&#34; allowfullscreen=&#34;allowfullscreen&#34;/iframe&#xA;&#xA;We can go further and add a height element too.&#xA;&#xA;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;600&#34; height=&#34;600&#34; allowfullscreen=&#34;allowfullscreen&#34;/iframe&#xA;&#xA;Which allows more of the post to be displayed.&#xA;&#xA;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;600&#34; height=&#34;600&#34; allowfullscreen=&#34;allowfullscreen&#34;/iframe&#xA;&#xA;This can, and should be adjusted for better fit, depending on size of the post being embedded.&#xA;&#xA;Hope this is useful to people. &#xA;&#xA;Tags&#xA;&#xA;#Fediverse,#Mastodon,#WriteAs,#Embed,#Tips&#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>Embedding Mastodon Posts</p>

<p>By default.  When you embed a post from mastodon in to a WriteAs blog the default width is 400.</p>

<p>I am going to use the embed from my previous post as an example</p>

<pre><code>&lt;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;400&#34; allowfullscreen=&#34;allowfullscreen&#34;&gt;&lt;/iframe&gt;
</code></pre>

<iframe src="https://mindly.social/@erinwhalen/109672470870988630/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe>

<p>Changing the width to 600 results in, as you would expect a wider post which fits really nicely.</p>

<pre><code>&lt;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;600&#34; allowfullscreen=&#34;allowfullscreen&#34;&gt;&lt;/iframe&gt;
</code></pre>

<iframe src="https://mindly.social/@erinwhalen/109672470870988630/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="600" allowfullscreen="allowfullscreen"></iframe>

<p>We can go further and add a height element too.</p>

<pre><code>&lt;iframe src=&#34;https://mindly.social/@erinwhalen/109672470870988630/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;600&#34; height=&#34;600&#34; allowfullscreen=&#34;allowfullscreen&#34;&gt;&lt;/iframe&gt;
</code></pre>

<p>Which allows more of the post to be displayed.</p>

<iframe src="https://mindly.social/@erinwhalen/109672470870988630/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="600" height="600" allowfullscreen="allowfullscreen"></iframe>

<p>This can, and should be adjusted for better fit, depending on size of the post being embedded.</p>

<p>Hope this is useful to people.</p>

<p><strong>Tags</strong></p>

<p><a href="/paulsutton/tag:Fediverse" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Fediverse</span></a>,<a href="/paulsutton/tag:Mastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Mastodon</span></a>,<a href="/paulsutton/tag:WriteAs" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">WriteAs</span></a>,<a href="/paulsutton/tag:Embed" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Embed</span></a>,<a href="/paulsutton/tag:Tips" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Tips</span></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/embedding-mastodon-posts-dq0s</guid>
      <pubDate>Tue, 17 Jan 2023 07:30:00 +0000</pubDate>
    </item>
    <item>
      <title>Embedding Mastodon posts</title>
      <link>https://personaljournal.ca/paulsutton/embedding-mastodon-posts</link>
      <description>&lt;![CDATA[Embedding Mastodon posts&#xA;&#xA;Just found this on Mastodon, so sharing and this is also an excuse to try it out. &#xA;&#xA;iframe src=&#34;https://mstdn.social/@feditips/106744035608034544/embed&#34; class=&#34;mastodon-embed&#34; style=&#34;max-width: 100%; border: 0&#34; width=&#34;400&#34; allowfullscreen=&#34;allowfullscreen&#34;/iframe&#xA;&#xA;Links&#xA;&#xA;Feditips&#xA;&#xA;Tags&#xA;&#xA;#Mastodon,#Embed,#Websites&#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>Embedding Mastodon posts</p>

<p>Just found this on Mastodon, so sharing and this is also an excuse to try it out.</p>

<iframe src="https://mstdn.social/@feditips/106744035608034544/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe>

<p><strong>Links</strong></p>
<ul><li><a href="https://mstdn.social/@feditips" rel="nofollow">Feditips</a></li></ul>

<p><strong>Tags</strong></p>

<p><a href="/paulsutton/tag:Mastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Mastodon</span></a>,<a href="/paulsutton/tag:Embed" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Embed</span></a>,<a href="/paulsutton/tag:Websites" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Websites</span></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/embedding-mastodon-posts</guid>
      <pubDate>Thu, 12 Aug 2021 18:10:13 +0000</pubDate>
    </item>
    <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>