This is basically the same image_filter module, but with ability to place cropped images.
Humans usually have faces at the top of their photos, but nginx always crop image to center. We needed to make it more flexible.
This module has additional configuration option:
image_filter_crop_offset {left,center,right} {top,center,bottom};
- Original image
- Crop and align to top:
image_filter_crop_offset center top;
- Crop and align to center (original behavior):
image_filter_crop_offset center center;
- Crop and align to bottom:
image_filter_crop_offset center bottom;
- Original image
- Crop and align to left:
image_filter_crop_offset left center;
- Crop and align to center (original behavior):
image_filter_crop_offset center center;
- Crop and align to right:
image_filter_crop_offset right center;