Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Problem

Attempting to create an image transform that crops an image, using the upper right hand portion of the image.

Steps To Recreate

  1. Set up a image transform with Mode set to Crop and Focal Point set to Top-Right

Craft Admin - Image Transform

  1. Used this transform in my template
<img src="{{ image.getUrl('testTopRightCrop') }}">
  1. Visited the template, images don't appear to be cropped at all

Results

Square Image

Original

Original

Transformed

Transformed

Landscape Image

Original

Original

Transformed

Transformed

Portrait Image

Original

Original

Transformed

Transformed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.