<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Images on Notes</title>
    <link>https://www.simplicidade.org/tags/images/index.xml</link>
    <description>Recent content in Images on Notes</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>melo@simplicidade.org (Pedro Melo)</managingEditor>
    <webMaster>melo@simplicidade.org (Pedro Melo)</webMaster>
    <copyright>(c) 2016 Pedro Melo.</copyright>
    <atom:link href="/tags/images/index.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsuhhubbub.superfeedr.com/"/>
    
    <item>
      <title>Image manipulation</title>
      <link>https://www.simplicidade.org/survival/image-manipulation/</link>
      <pubDate>Fri, 29 Jul 2016 23:58:50 +0100</pubDate>
      <author>melo@simplicidade.org (Pedro Melo)</author>
      <guid>https://www.simplicidade.org/survival/image-manipulation/</guid>
      <description>

&lt;p&gt;Small CLI recipes for image transformation.&lt;/p&gt;

&lt;h2 id=&#34;center-a-image-with-padding&#34;&gt;Center a image with padding&lt;/h2&gt;

&lt;p&gt;You want to change the dimensions of an image, filling the new spots with white space.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;convert -size 512x512 xc:white in.png -gravity center -composite out.png
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Resize with &lt;code&gt;-extent&lt;/code&gt; plus &lt;code&gt;-background&lt;/code&gt; will also work.&lt;/p&gt;

&lt;h2 id=&#34;resize-image&#34;&gt;Resize image&lt;/h2&gt;

&lt;pre&gt;&lt;code&gt;convert in.png -resize 32x32 out.png
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;More at &lt;a href=&#34;https://www.imagemagick.org/Usage/resize/&#34;&gt;Resizing Images with ImageMagick&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&#34;remove-extra-white-space-around-image&#34;&gt;Remove extra white space around image&lt;/h2&gt;

&lt;pre&gt;&lt;code&gt;convert in.png -trim out.png
&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
    
  </channel>
</rss>