1. A method for resizing an image comprising: receiving, at one or more data processors, a request for a content item to be displayed with a resource; selecting, using one or more data processors, a content item comprising an image having a plurality of pixels; determining, by one or more data processors, a saliency score for each pixel of the plurality of pixels of the image, the saliency score for each pixel is based on at least one of: a logo detection saliency value, a text detection saliency value, or a face detection saliency value; determining, by one or more data processors, a seam for the image based on the determined saliency scores; resizing, by one or more data processors, the image based on the seam; determining, by one or more data processors, a total cost value for the seam; and outputting display data to effect display of the resized image as the content item if the total cost value is below a minimum cost threshold value.