1. A controlling device for controlling a scan performing unit comprising a plurality of optical elements, the controlling device comprising: one or more processors; and a memory that stores a computer program including instructions executed by the one or more processors, wherein the instructions cause the one or more processors, when executed by the one or more processors, to function as: a scan controlling unit configured to cause the scan performing unit to perform a scan of a document, the scan controlling unit configured to cause the scan performing unit to perform either a first type of scan or a second type of scan, wherein in the first type of scan, the document is moved with respect to the optical elements while the optical elements are not moved, and in the second type of scan, the optical elements are moved with respect to the document while the document is not moved; a judging unit configured to judge whether a first type of analysis on scan data is to be performed or not based on a combination of (A) which of the first type of scan or the second type of scan is performed and (B) a file format of the file selected by a user; a first type of analysis performing unit configured to perform the first type of analysis on the scan data in a case where it is judged that the first type of analysis is to be performed, and not perform the first type of analysis on the scan data in a case where it is judged that the first type of analysis is not to be performed; an output resolution determination unit configured to determine an output resolution by utilizing a result of the first type of analysis in the case where it is judged that the first type of analysis is to be performed, the output resolution being a resolution for image data obtained by utilizing the scan data; and a creation unit configured to create a file including the image data indicating the output resolution.