<p>I am looking for a user-friendly, non-destructive way define an image crop when editing an entry with an asset field.</p>

<ul>
<li>Should be able to visually define an image crop</li>
<li>Should be able to change the crop when editing the entry</li>
<li>Should not crop/overwrite the original image</li>
<li>Should not generate a new asset in the asset library for the cropped image</li>
</ul>

<p>I am aware of the built-in cropping tool, but it is not very userfriendly since it either crops the original asset (destructive) or creates a new asset with the cropped image (confusing and messy). This (A) makes it confusing to edit the cropping (you need to hunt down the original asset and create a new crop) and (B) introduces the need to sanitize your asset folders to remove unused crops.</p>

<p>I am also aware of the <a href="https://plugins.craftcms.com/ansel" rel="nofollow noreferrer">Ansel plug-in</a> which pretty much does what I want but seems to be abandoned by the author. It does not work with Craft>3.1, as acknowledged by its author <a href="https://buzzingpixel.com/support/issue/166" rel="nofollow noreferrer">here</a>.</p>

<p>Does anyone know of a third option for this?</p>

CC BY-SA 4.0
2020-05-14T15:00:02.733Z
Have you tried using a crop _transform_? You can allow the user to simply set the focal point for each image.
Lindsey D
CC BY-SA 4.0
2020-05-15T07:11:54.360Z
@LindseyD This would be the easiest solution, but the client needs more precise control over the crop than offered with the focal point
ilantica
<assets><plugins><image>
Non-destructive image cropping plug-in
# Non-destructive image cropping plug-in

(Asked by: username_0 on 2020-05-14)

I am looking for a user-friendly, non-destructive way define an image crop when editing an entry with an asset field.

* Should be able to visually define an image crop
* Should be able to change the crop when editing the entry
* Should not crop/overwrite the original image
* Should not generate a new asset in the asset library for the cropped image

I am aware of the built-in cropping tool, but it is not very userfriendly since it either crops the original asset (destructive) or creates a new asset with the cropped image (confusing and messy). This (A) makes it confusing to edit the cropping (you need to hunt down the original asset and create a new crop) and (B) introduces the need to sanitize your asset folders to remove unused crops.

I am also aware of the [Ansel plug-in](https://plugins.craftcms.com/ansel) which pretty much does what I want but seems to be abandoned by the author. It does not work with Craft>3.1, as acknowledged by its author [here](https://buzzingpixel.com/support/issue/166).

Does anyone know of a third option for this?

**Tags:** assets, plugins, image
> **Comments:**
> **username_1**: Have you tried using a crop _transform_? You can allow the user to simply set the focal point for each image.  
> **username_0**: @LindseyD This would be the easiest solution, but the client needs more precise control over the crop than offered with the focal point  

---

## 0 answers

