<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>IT notes - imagemagick</title>
    <subtitle>DBRE, AWS platform engineering, PostgreSQL, Linux, FreeBSD, and Rust reference notes.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://nbari.com/tags/imagemagick/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://nbari.com"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2022-06-06T11:26:52+00:00</updated>
    <id>https://nbari.com/tags/imagemagick/atom.xml</id>
    <entry xml:lang="en">
        <title>removing metadata</title>
        <published>2022-06-06T11:26:52+00:00</published>
        <updated>2022-06-06T11:26:52+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://nbari.com/removing-metadata/"/>
        <id>https://nbari.com/removing-metadata/</id>
        
        <content type="html" xml:base="https://nbari.com/removing-metadata/">&lt;p&gt;To remove metadata from images:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-12&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-7&quot;&gt; convert image.jpeg -strip newimage.jpg&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If want to resize:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-12&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-7&quot;&gt; convert image.jpg -resize=400 -quality 70% -strip newimage.jpg&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content>
        
    </entry>
    <entry xml:lang="en">
        <title>extent</title>
        <published>2019-09-15T10:23:40+02:00</published>
        <updated>2019-09-15T10:23:40+02:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://nbari.com/extent/"/>
        <id>https://nbari.com/extent/</id>
        
        <content type="html" xml:base="https://nbari.com/extent/">&lt;p&gt;To resize an image and adjust it to fit a fixed canvas with transparent
background:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;$ convert in.png \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-resize 128x128 \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-background none \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-gravity center \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-extent 128x128 \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;out.png&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content>
        
    </entry>
    <entry xml:lang="en">
        <title>combine two images</title>
        <published>2018-10-17T12:39:11+02:00</published>
        <updated>2018-10-17T12:39:11+02:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://nbari.com/combine-two-images/"/>
        <id>https://nbari.com/combine-two-images/</id>
        
        <content type="html" xml:base="https://nbari.com/combine-two-images/">&lt;p&gt;Combine in a single file 2 images:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;convert +append a.png b.png out.png&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;-append&lt;/code&gt; will append vertically instead of horizontally (&lt;code&gt;+&lt;/code&gt;)&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>transparent</title>
        <published>2016-10-30T17:36:50+01:00</published>
        <updated>2016-10-30T17:36:50+01:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://nbari.com/transparent/"/>
        <id>https://nbari.com/transparent/</id>
        
        <content type="html" xml:base="https://nbari.com/transparent/">&lt;h1 id=&quot;create-an-image-with-transparent-background&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#create-an-image-with-transparent-background&quot; aria-label=&quot;Anchor link for: create-an-image-with-transparent-background&quot;&gt;🔗&lt;/a&gt;Create an image with transparent background&lt;/h1&gt;
&lt;p&gt;Using convert from imagemagick:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;convert input.jpg -fuzz 10% -transparent white transparent.png&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content>
        
    </entry>
</feed>
