An electronic device comprising: a display configured to output image data; and at least one processor configured to: detect an input; select a portion of the image data based on the input; and generate a preview of the image data based on the selected portion.