<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by Maciej Golis</title><link href="http://world.optimizely.com" /><updated>2019-01-08T08:55:31.0000000Z</updated><id>https://world.optimizely.com/blogs/maciej-golis/</id> <generator uri="http://world.optimizely.com" version="2.0">Optimizely World</generator> <entry><title>Image Cropper Property Editors (using ImageResizing.NET)</title><link href="https://world.optimizely.com/blogs/maciej-golis/dates/2018/10/image-cropper-property-editors-using-imageresizing-net/" /><id>&lt;p&gt;Happy New Year All!&lt;/p&gt;
&lt;p&gt;There are many ways an image crop can be defined. As we know, editors do like as much flexibility as possible :) Having discussed various approaches with multiple content teams, we have decided to enable cropping at the page or block level.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We made 2 editors available:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Image Reference&lt;/li&gt;
&lt;li&gt;Image Reference List&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The aspect ratio can be defined for each instance of the property editor &lt;span&gt;individually&lt;/span&gt;.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Usage&lt;/h2&gt;
&lt;p&gt;Image can be assigned by drag and dropping it into the drop zone:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://itmholding.azurewebsites.net/assets/epi/single_image_start.jpg&quot; width=&quot;300&quot; alt=&quot;&quot; height=&quot;90&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Once the image is dropped, Image Cropper dialog is displayed:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://itmholding.azurewebsites.net/assets/epi/cropper.jpg&quot; width=&quot;584&quot; alt=&quot;&quot; height=&quot;436&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Of course, any&amp;nbsp;image can be edited or deleted at any point. Moreover images in Image Reference List editor can be reordered:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://itmholding.azurewebsites.net/assets/epi/image_list_drag.jpg&quot; width=&quot;568&quot; alt=&quot;&quot; height=&quot;257&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Implementation&lt;/h2&gt;
&lt;p&gt;The NuGet package is available in the &lt;a href=&quot;https://nuget.episerver.com/package/?id=ITMeric.ImageCrop&quot;&gt;EPiServer Nuget Feed&lt;/a&gt;. The source code and the implemenation guide can be found on &lt;a href=&quot;https://github.com/itMeric/ITMeric.ImageCrop/&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;</id><updated>2019-01-08T08:55:31.0000000Z</updated><summary type="html">Blog post</summary></entry></feed>