<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Imagemagick on Janusworx</title><link>https://janusworx.com/tags/imagemagick/</link><description>Recent content in Imagemagick on Janusworx</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>feedback@janusworx.com (Mario Jason Braganza)</managingEditor><webMaster>feedback@janusworx.com (Mario Jason Braganza)</webMaster><copyright>© 2026, Mario Jason Braganza</copyright><lastBuildDate>Fri, 06 Aug 2021 07:25:47 +0530</lastBuildDate><atom:link href="https://janusworx.com/tags/imagemagick/index.xml" rel="self" type="application/rss+xml"/><item><title>Joining Two Images Using ImageMagick</title><link>https://janusworx.com/work/joining-two-images-using-imagemagick/</link><pubDate>Fri, 06 Aug 2021 07:25:47 +0530</pubDate><author>feedback@janusworx.com (Mario Jason Braganza)</author><guid>https://janusworx.com/work/joining-two-images-using-imagemagick/</guid><description>&lt;p&gt;Sometimes, I want to share snippets of what I am reading with my friends.&lt;br&gt;
Kindles make it easy, with screenshots.&lt;br&gt;
The only issue being I want to share the full length of two pages, like I’d do if I was reading a book.&lt;br&gt;
And I need it often enough, that I felt I needed to go figure out some way to do it.&lt;/p&gt;
&lt;p&gt;It was an easy-ish hack on the mac with printing with Preview.&lt;br&gt;
But now, that I use Linux, I wondered if I could do better.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;p&gt;A little bit of spelunking and I figured out how to let &lt;a href="https://imagemagick.org/index.php" target="_blank" rel="noreferrer"&gt;ImageMagick&lt;/a&gt; do the hard work for me.&lt;br&gt;
The &lt;a href="https://imagemagick.org/script/command-line-tools.php" target="_blank" rel="noreferrer"&gt;suite&lt;/a&gt; comes with a utility called Convert, that does exactly what I need.&lt;/p&gt;
&lt;p&gt;The basic command structure is,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;some-imagemagick-utility -options input-file-1 input-file-2 … output-file&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;So to join my screenshots all I needed to do was,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;convert +append dff1.png dff2.png combined-kindle-screenshot.png&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and boom!&lt;/p&gt;
&lt;hr style='margin-left: auto; margin-right: auto;margin-bottom: 40px; width:100px; border: none; background-color:rgb(238, 238, 238); color: rgb(238, 238, 238); height: 1px;' /&gt; 
&lt;p&gt;&lt;a href="https://janusworx.com/images/2021/combined-kindle-screenshot.png" &gt;&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt="screenshot of a two pages from a kindle book"
 src="https://janusworx.com/images/2021/combined-kindle-screenshot.png"
 &gt;&lt;/figure&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;hr style='margin-left: auto; margin-right: auto;margin-bottom: 40px; width:100px; border: none; background-color:rgb(238, 238, 238); color: rgb(238, 238, 238); height: 1px;' /&gt; 
&lt;p&gt;While this is what I want, the convert utility also lets me stack them one below the other by using &lt;code&gt;-append&lt;/code&gt; like so …&lt;/p&gt;
&lt;p&gt;&lt;code&gt;convert -append dff1.png dff2.png combined-kindle-screenshot.png&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Yes, I know ImageMagick is the &lt;a href="https://legacy.imagemagick.org/Usage/" target="_blank" rel="noreferrer"&gt;bees knees&lt;/a&gt; when it comes to images, but I guess this will be the most I’ll ever use it :) &lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;div class="footnotes" role="doc-endnotes"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;Famous last words! 😂&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description></item></channel></rss>