主权项 |
1. A computer-implemented method for automatically resizing a creative based on dimensions of a content slot, comprising:
receiving, by a data processor, a creative including one or more visual content items, the creative having a first set of dimensions; determining, by the data processor, a content slot in which to insert the creative, the content slot having a second set of dimensions; determining, by the data processor, an aspect ratio of the creative and an aspect ratio of the content slot; applying, by the data processor, edge detection to identify edges of the visual content items included in the creative; applying, by the data processor, a bounding box around a substantial portion of the identified edges of the content items; the bounding box sized to have an aspect ratio that corresponds to a smaller of the aspect ratio of the creative and the aspect ratio of the content slot; and resizing the bounding box to fit within the second set of dimensions corresponding to the content slot. |