1) If Force Comp Size is checked, the values entered in the interface are used.
2) Otherwise, the xml is used if it exists (even if the Use Xml option is unchecked)
3) Otherwise, it is deduced from a PNG image (if the option is checked)
4) Otherwise, the values entered in the interface are used.