Answers.Body: <p>Not sure if there is a way to limit the available options, but I would argue that you don't need to. If your frontend layout requires images to be cropped to specific aspect ratios, I would enforce that in the templates using <a href="https://craftcms.com/docs/4.x/image-transforms.html" rel="nofollow noreferrer">image transforms</a>. This is much more robust than expecting editors to crop the image to specific aspect ratios. To control which part of the image should stay visible when cropping, your editors can set a focus point.</p>
  <p>It enables image reuse and improves the longevity of your content. It will be difficult to use the same image in different places where different aspect ratios are required if you've already cropped the image to a specific aspect ratio for a specific placement. If your editors upload the original full-resolution image, they can simply select the image and you can crop the image differently depending on context.</p>
  <p>Furthermore, you enable future design changes. Maybe at some point, the client wants their teaser images displayed in a 3/2 aspect ratio instead of 1/1. If you've cropped all your images already, you won't be able to re-use those very well. But if the original image is retained, you can simply change the aspect ratio in your templates at any time.</p>
  <p>If you need to give editors control over the aspect ratio for specific image placements, you can create a Dropdown or Radio field with some predefined options (16/9, 3/2, 1/1, etc). Then use that field in your template as the aspect ratio for the image transform.</p>
  <p><a href="https://i.sstatic.net/PUsTR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/PUsTR.png" alt="Screenshot of the settings of a radio dropdown field. Values are floating point values corresponding to the aspect ratio." /></a></p>
  <p>You can use the value in your templates like this:</p>
  <pre class="lang-twig prettyprint-override"><code>{% set aspect_ratio = entry.aspect_ratio.value|float %}
  {% set width = 600 %}
  {% set transform = {
      width: width,
      height: (width / aspect_ratio)|round|integer,
      mode: 'crop',
  } %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-20T12:00:08.283Z
Answers.Text: Whow ... 1000 THX for you long, detailed and inspiring answer, Moritz!
Answers.UserDisplayName: Marc 
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-20T13:40:45.833Z
Answers.Text: @Marc Happy to help!
Answers.UserDisplayName: MoritzLost
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-20T08:43:59.690Z
Answers.LastActivityDate: 2023-10-20T08:50:03.467Z
Answers.LastEditDate: 2023-10-20T08:50:03.467Z
Answers.UserDisplayName: MoritzLost
Body: <p>Is there a way to remove &quot;focal point&quot; and &quot;custom&quot; options from the image editor?</p>
  <p>Custom ratios are documented here: <a href="https://craftcms.com/docs/4.x/config/general.html#image-handling" rel="nofollow noreferrer">https://craftcms.com/docs/4.x/config/general.html#image-handling</a></p>
  <p>But I found no option to remove these (for me) not wanted options.</p>
  <p><em>Sorry for German screenshot! :)</em></p>
  <p><a href="https://i.sstatic.net/Q9JBd.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Q9JBd.png" alt="enter image description here" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-10-17T14:22:29.090Z
Comments.Text: Why do you want to remove those options?
Comments.UserDisplayName: MoritzLost
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-10-20T07:34:42.820Z
Comments.Text: Only some specific, predefined image ratios are allowed all over the website.  
  Thats: 1:1, 2:3, 3:2, 2:1 if other ratios are used, it'll be croped automatically.
Comments.UserDisplayName: Marc 
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-10-20T07:50:15.020Z
Comments.Text: Only some specific, predefined image ratios are allowed all over the website.  
  Thats: 1:1, 2:3, 3:2, 2:1 if other ratios are used, it'll be croped automatically.
  
  That's ok, but it makes no sense to allow the users to crop images individually and crop it later on to other ratio automatically.
Comments.UserDisplayName: Marc 
Tags: <image><craft4><editor>
Title: Image Editor: Remove "focal point" and "custom"
ThreadText: # Image Editor: Remove "focal point" and "custom"
  
  (Asked by: username_0 on 2023-10-17)
  
  Is there a way to remove "focal point" and "custom" options from the image editor?
  
  Custom ratios are documented here: <https://craftcms.com/docs/4.x/config/general.html#image-handling>
  
  But I found no option to remove these (for me) not wanted options.
  
  *Sorry for German screenshot! :)*
  
  [![enter image description here](https://i.sstatic.net/Q9JBd.png)](https://i.sstatic.net/Q9JBd.png)
  
  **Tags:** image, craft4, editor
  
  > **Comments:**
  > **username_1**: Why do you want to remove those options?  
  > **username_0**: Only some specific, predefined image ratios are allowed all over the website.   Thats: 1:1, 2:3, 3:2, 2:1 if other ratios are used, it'll be croped automatically.  
  > **username_0**: Only some specific, predefined image ratios are allowed all over the website.   Thats: 1:1, 2:3, 3:2, 2:1 if other ratios are used, it'll be croped automatically.  That's ok, but it makes no sense to allow the users to crop images individually and crop it later on to other ratio automatically.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-10-20. Score: 2 | Accepted answer
  
  Not sure if there is a way to limit the available options, but I would argue that you don't need to. If your frontend layout requires images to be cropped to specific aspect ratios, I would enforce that in the templates using [image transforms](https://craftcms.com/docs/4.x/image-transforms.html). This is much more robust than expecting editors to crop the image to specific aspect ratios. To control which part of the image should stay visible when cropping, your editors can set a focus point.
  
  It enables image reuse and improves the longevity of your content. It will be difficult to use the same image in different places where different aspect ratios are required if you've already cropped the image to a specific aspect ratio for a specific placement. If your editors upload the original full-resolution image, they can simply select the image and you can crop the image differently depending on context.
  
  Furthermore, you enable future design changes. Maybe at some point, the client wants their teaser images displayed in a 3/2 aspect ratio instead of 1/1. If you've cropped all your images already, you won't be able to re-use those very well. But if the original image is retained, you can simply change the aspect ratio in your templates at any time.
  
  If you need to give editors control over the aspect ratio for specific image placements, you can create a Dropdown or Radio field with some predefined options (16/9, 3/2, 1/1, etc). Then use that field in your template as the aspect ratio for the image transform.
  
  [![Screenshot of the settings of a radio dropdown field. Values are floating point values corresponding to the aspect ratio.](https://i.sstatic.net/PUsTR.png)](https://i.sstatic.net/PUsTR.png)
  
  You can use the value in your templates like this:
  
  ```twig
  {% set aspect_ratio = entry.aspect_ratio.value|float %}
  {% set width = 600 %}
  {% set transform = {
      width: width,
      height: (width / aspect_ratio)|round|integer,
      mode: 'crop',
  } %}
  
  ```
  
  > **Comments:**
  > **username_0**: Whow ... 1000 THX for you long, detailed and inspiring answer, Moritz!  
  > **username_1**: @username_0Happy to help!  
  
  ---
  
  