Skip to content

Instantly share code, notes, and snippets.

@mgburns
Last active February 2, 2018 15:41
Show Gist options
  • Save mgburns/281490309d2d55c32186f687f3cc8530 to your computer and use it in GitHub Desktop.
Save mgburns/281490309d2d55c32186f687f3cc8530 to your computer and use it in GitHub Desktop.

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