The format of the image that needs to be compressed, such as "jpeg", "png", etc.
The settings parameter is an object that contains compression settings for different image formats. It is expected to have properties for each supported image format, where the property name is the format name (e.g. "jpeg", "png") and the value is an object containing compression settings for that format.
either the compression settings for the specified image format from the provided settings object, or false if no compression settings are found for that format.
The function returns compression settings for a given image format.