This disclosure describes techniques to adaptively crop an image to fit fixed display areas while preserving regions of interest of the image. A bounding box of a region of interest is obtained for the image and a sorted list of candidate aspect ratios for the image are determined. Candidate image sizes are determined for candidate aspect ratios and are compared to the bounding box size. If a candidate image has a greater size in a crop axis than the bounding box, then that aspect ratio is selected for use in the crop operation. This ensures that the region of interest is preserved in the cropped image.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.