<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="284184" data-post-id="284184">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a href="https://hex.pm/packages/image/0.28.0" rel="nofollow">Image version 0.28.0</a> is just out. This version brought to you by <a class="mention" href="/u/sodapopcan" rel="nofollow">@sodapopcan</a> who worked out how to implement <a href="https://theailearner.com/tag/cv2-warpperspective/" rel="nofollow">warp perspective</a> using <a href="https://hex.pm/packages/nx" rel="nofollow">Nx</a> and <a href="https://hex.pm/packages/vix" rel="nofollow">vix</a>. Thanks for the PR and collaboration - that was a lot of fun.  The changelog is:</p>
<h3><a name="p-284184-bug-fixes-1" class="anchor" href="#p-284184-bug-fixes-1" aria-label="Heading link" rel="nofollow"></a>Bug Fixes</h3>
<ul>
<li>Fixes resizing images with alpha bands. Resizing images with alpha bands requires premultiplying the alpha band into the image and reversing that after resizing.</li>
</ul>
<h3><a name="p-284184-enhancements-2" class="anchor" href="#p-284184-enhancements-2" aria-label="Heading link" rel="nofollow"></a>Enhancements</h3>
<ul>
<li>
<p>Adds <code>Image.warp_perspective/4</code> to apply a warp transformation to an image. Thanks very much to <a class="mention" href="/u/sodapopcan" rel="nofollow">@sodapopcan</a> for the PR and collaboration.</p>
</li>
<li>
<p>Adds <code>Image.straighten_perspective/3</code> to apply a warp perspective that straighens the image. It is basically <code>Image.warp_perspective/4</code> with algorithmically derived <code>destination</code> parameter.</p>
</li>
<li>
<p>Adds <code>Image.map/2</code> which applies a transformation matrix (not a convolution kernel) to an image. A transformation matrix can be returned from <code>Image.transform_matrix/3</code>. These two functions underpin <code>Image.warp_perspective/4</code>.</p>
</li>
<li>
<p>Adds <code>Image.crop/2</code> which is a variation of <code>Image.crop/5</code> that takes the same format of bounding box as that applied to <code>Image.warp_perspective/4</code> making it easy to apply a warp transform and then crop to the transformed area. Note that cropping requires that the bounding box be a rectangle, not an arbitrary quadrilateral.</p>
</li>
</ul> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284184" data-batch-url="/posts/batch_likers">
                        8
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/103">Post #102</a>
	                </div>
	            </div>
              <div id="likers-container-284184" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284184"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #102"></div>
  </section>
</div>
    <div class="postbit" id="284185" data-post-id="284185">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Here’s an example of warp perspective (Livebook coming soon):</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">{:ok, image} = Image.open("./test/support/images/warp_perspective.jpg")
</code></pre>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/a/b/abdcb569859ac513875df649b946a7a0f964430c.jpeg" data-download-href="https://forum.elixirforum.com/uploads/default/abdcb569859ac513875df649b946a7a0f964430c" title="warp_perspective" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/optimized/3X/a/b/abdcb569859ac513875df649b946a7a0f964430c_2_345x258.jpeg" alt="warp_perspective" data-base62-sha1="owmvQ0BE6CuzjVS7qbOkXjigNyc" width="345" height="258" srcset="https://forum.elixirforum.com/uploads/default/optimized/3X/a/b/abdcb569859ac513875df649b946a7a0f964430c_2_345x258.jpeg, https://forum.elixirforum.com/uploads/default/optimized/3X/a/b/abdcb569859ac513875df649b946a7a0f964430c_2_517x387.jpeg 1.5x, https://forum.elixirforum.com/uploads/default/optimized/3X/a/b/abdcb569859ac513875df649b946a7a0f964430c_2_690x516.jpeg 2x" data-dominant-color="937A65"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">warp_perspective</span><span class="informations">1000×750 100 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p>
<pre data-code-wrap="elixir"><code class="lang-elixir"># Define the source coordinates (any quadrilateral)
iex&gt; source = [{139, 125}, {826, 74}, {796, 559}, {155, 483}]
# And the destination coordinates (any quadrilateral, but often a rectangle)
iex&gt; destination = [{139, 125}, {815, 125}, {815, 528}, {139, 528}]
# Warp the image
iex&gt; {:ok, warped} = Image.warp_perspective(image, source, destination)
</code></pre>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/0/d/0d91f1fd0c17a7cf4eaedd935e1e32d7b75f05e9.jpeg" data-download-href="https://forum.elixirforum.com/uploads/default/0d91f1fd0c17a7cf4eaedd935e1e32d7b75f05e9" title="warp_perspective_done" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/optimized/3X/0/d/0d91f1fd0c17a7cf4eaedd935e1e32d7b75f05e9_2_345x258.jpeg" alt="warp_perspective_done" data-base62-sha1="1W2TogratfhBd2uQwuctqdbZsCt" width="345" height="258" srcset="https://forum.elixirforum.com/uploads/default/optimized/3X/0/d/0d91f1fd0c17a7cf4eaedd935e1e32d7b75f05e9_2_345x258.jpeg, https://forum.elixirforum.com/uploads/default/optimized/3X/0/d/0d91f1fd0c17a7cf4eaedd935e1e32d7b75f05e9_2_517x387.jpeg 1.5x, https://forum.elixirforum.com/uploads/default/optimized/3X/0/d/0d91f1fd0c17a7cf4eaedd935e1e32d7b75f05e9_2_690x516.jpeg 2x" data-dominant-color="8A7563"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">warp_perspective_done</span><span class="informations">1000×750 86.2 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p>
<pre data-code-wrap="elixir"><code class="lang-elixir"># Its common to crop to the subject of interest after warping
# so `Image.crop/2` can take the same `destination` data and
# crop to that area.
{:ok, cropped} = Image.crop(warped, destination)
</code></pre>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/c/d/cddea72b17289d687d5d708106a62c4e221707cd.jpeg" data-download-href="https://forum.elixirforum.com/uploads/default/cddea72b17289d687d5d708106a62c4e221707cd" title="warp_perspective_cropped" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/original/3X/c/d/cddea72b17289d687d5d708106a62c4e221707cd.jpeg" alt="warp_perspective_cropped" data-base62-sha1="tncUCIimls8jfH8gunVKJ6dESZv" width="338" height="202"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">warp_perspective_cropped</span><span class="informations">677×404 64 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284185" data-batch-url="/posts/batch_likers">
                        9
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/104">Post #103</a>
	                </div>
	            </div>
              <div id="likers-container-284185" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284185"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #103"></div>
  </section>
</div>
    <div class="postbit" id="284205" data-post-id="284205">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="greven" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/greven/120/25004_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  greven
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This library keeps getting better and better. Outstanding work. Thanks Kip et al.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284205" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/105">Post #104</a>
	                </div>
	            </div>
              <div id="likers-container-284205" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284205"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #104"></div>
  </section>
</div>
    <div class="postbit" id="284231" data-post-id="284231">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kwando" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kwando/120/4092_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kwando
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Amazing <img src="https://forum.elixirforum.com/images/emoji/apple/star_struck.png?v=15" title=":star_struck:" class="emoji" alt=":star_struck:" loading="lazy" width="20" height="20"> Cant get it to run though <img src="https://forum.elixirforum.com/images/emoji/apple/confused.png?v=15" title=":confused:" class="emoji" alt=":confused:" loading="lazy" width="20" height="20">  it complains about my vectors and I’m stuck <img src="https://forum.elixirforum.com/images/emoji/apple/sweat_smile.png?v=15" title=":sweat_smile:" class="emoji" alt=":sweat_smile:" loading="lazy" width="20" height="20"><br>
</p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/0/1/013faae8dce43f322ac580a0de91d57d23dce97c.jpeg" data-download-href="https://forum.elixirforum.com/uploads/default/013faae8dce43f322ac580a0de91d57d23dce97c" title="Skärmavbild 2023-04-06 kl. 14.57.41" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/optimized/3X/0/1/013faae8dce43f322ac580a0de91d57d23dce97c_2_536x600.jpeg" alt="Skärmavbild 2023-04-06 kl. 14.57.41" data-base62-sha1="b2SQOGA6rZCcNRxsbEURTOmlCA" width="536" height="600" srcset="https://forum.elixirforum.com/uploads/default/optimized/3X/0/1/013faae8dce43f322ac580a0de91d57d23dce97c_2_536x600.jpeg, https://forum.elixirforum.com/uploads/default/optimized/3X/0/1/013faae8dce43f322ac580a0de91d57d23dce97c_2_804x900.jpeg 1.5x, https://forum.elixirforum.com/uploads/default/original/3X/0/1/013faae8dce43f322ac580a0de91d57d23dce97c.jpeg 2x" data-dominant-color="8B8D92"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Skärmavbild 2023-04-06 kl. 14.57.41</span><span class="informations">958×1072 70.8 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p>
<p>EDIT:<br>
I can get it to work with the <code>test/support/validate/warp_perspective.jpg</code> file you have.I do not understand what that error tries to tell me in my case.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284231" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/106">Post #105</a>
	                </div>
	            </div>
              <div id="likers-container-284231" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284231"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #105"></div>
  </section>
</div>
    <div class="postbit" id="284233" data-post-id="284233">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sodapopcan" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/120/34668_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sodapopcan
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Also thank you to <a class="mention" href="/u/akash-akya" rel="nofollow">@akash-akya</a> and <a class="mention" href="/u/jerdew" rel="nofollow">@jerdew</a> for refactoring and advice that wasn’t reflected in the git history!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284233" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/107">Post #106</a>
	                </div>
	            </div>
              <div id="likers-container-284233" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284233"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #106"></div>
  </section>
</div>
    <div class="postbit" id="284239" data-post-id="284239">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/kwando" rel="nofollow">@kwando</a>, please send me a DM with the image or a link to it if you wouldn’t mind? Even better, open an issue on <a href="https://github/elixir-image/image/issues" rel="nofollow">https://github/elixir-image/image/issues</a> so I can bottom this out and not pollute the forum. I’ll jump on this right away.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284239" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/108">Post #107</a>
	                </div>
	            </div>
              <div id="likers-container-284239" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284239"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #107"></div>
  </section>
</div>
    <div class="postbit" id="284250" data-post-id="284250">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kwando" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kwando/120/4092_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kwando
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I got the new <code>warp_perspective</code> to work <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"> And I managed to write a script that swaps a billboard/sign <img src="https://forum.elixirforum.com/images/emoji/apple/ok_hand/3.png?v=15" title=":ok_hand:t3:" class="emoji" alt=":ok_hand:t3:" loading="lazy" width="20" height="20"></p>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/c/8/c869116a6efcb9ab10001923479f5f3704a78491.jpeg" data-download-href="https://forum.elixirforum.com/uploads/default/c869116a6efcb9ab10001923479f5f3704a78491" title="Skärmavbild 2023-04-06 kl. 17.59.11" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/optimized/3X/c/8/c869116a6efcb9ab10001923479f5f3704a78491_2_690x408.jpeg" alt="Skärmavbild 2023-04-06 kl. 17.59.11" data-base62-sha1="sAUBhqbs3dEtMdps5ICLwrkCwsp" width="690" height="408" srcset="https://forum.elixirforum.com/uploads/default/optimized/3X/c/8/c869116a6efcb9ab10001923479f5f3704a78491_2_690x408.jpeg, https://forum.elixirforum.com/uploads/default/optimized/3X/c/8/c869116a6efcb9ab10001923479f5f3704a78491_2_1035x612.jpeg 1.5x, https://forum.elixirforum.com/uploads/default/original/3X/c/8/c869116a6efcb9ab10001923479f5f3704a78491.jpeg 2x" data-dominant-color="AEABAB"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Skärmavbild 2023-04-06 kl. 17.59.11</span><span class="informations">1200×711 51.1 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284250" data-batch-url="/posts/batch_likers">
                        9
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/109">Post #108</a>
	                </div>
	            </div>
              <div id="likers-container-284250" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284250"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #108"></div>
  </section>
</div>
    <div class="postbit" id="284391" data-post-id="284391">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="warmwaffles" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/warmwaffles/120/22057_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  warmwaffles
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s not entirely clear to me looking at libvips or <code>Image</code> on how I could resize an image and not keep the aspect ratio. Can anyone point me in the right direction?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284391" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/110">Post #109</a>
	                </div>
	            </div>
              <div id="likers-container-284391" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284391"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #109"></div>
  </section>
</div>
    <div class="postbit" id="284394" data-post-id="284394">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sodapopcan" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/120/34668_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sodapopcan
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a href="https://hexdocs.pm/image/Image.html#thumbnail/3" rel="noopener nofollow ugc"><code>thumbnail</code></a> is likely what you want.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284394" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/111">Post #110</a>
	                </div>
	            </div>
              <div id="likers-container-284394" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284394"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #110"></div>
  </section>
</div>
    <div class="postbit" id="284397" data-post-id="284397">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kwando" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kwando/120/4092_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kwando
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yeah, <code>thumbnail</code> would work.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">Image.thumbnail!(my_image, "400x400", resize: :force)
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="284397" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/image-an-image-processing-library-based-upon-vix/47568/112">Post #111</a>
	                </div>
	            </div>
              <div id="likers-container-284397" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="284397"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #111"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/47568/load_more?page=12">Load more posts (84 remaining)</a>
</div></template></turbo-stream>