1. A computer-implemented method for transforming data to generate a layout, the computer-implemented method comprising: obtaining data comprising an image and a content item; analyzing the image to identify: a salient region of the image, the salient region comprising a subject of the image; and an invariant region of the image, the invariant region comprising a region of the image wherein a variation of at least one feature is below a threshold to achieve a contrast between the content item and the image; comparing the data to a plurality of designs; selecting a design of the plurality of designs to generate the layout, the design comprising a viewport frame, a salient region placement frame, and a content placement frame, and the selecting being based at least in part on: determining that the salient region corresponds to the salient region placement frame; and determining that the invariant region corresponds to the content placement frame; and generating the layout based at least in part on the design.