Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Background Fill

willmot edited this page Nov 27, 2011 · 4 revisions

Background Fill is an experimental feature which will extend the source image to the portions of the excess canvas once the image has been resized. For example, if we have a logo 400px by 200px and ask for a 200px by 200px image, background_fill will resize the image to 200px by 100px (proportionally), then fill the top 50px / bottom 50px of the canves with the same background color as the logo.

Currently background_fill only supports the option "solid", as it only currenly works with images with a solid colour on the edge. This is perticulaly useful when working with lots of different types of images, and wanting to maintain the apperance of logos whilst cropping photos. You can read more about Background Here in this article.

See http://hmn.md/on-image-resizing/#background-fill for examples.

Clone this wiki locally