A non-transitory computer-readable storage medium storing a program for causing a computer to execute a method of controlling an image processing apparatus that performs image processing for generating a print in which additional information is to be embedded,
- wherein the method comprises:
- setting a halftone pattern used for halftone processing out of a plurality of halftone patterns;
- determining whether or not, in a case where the set halftone pattern is to be used for the halftone processing, encoded patterns generated based on the additional information can be uniformly reproduced from a color plane with which the encoded patterns are to be synthesized;
- and
- performing, in a case where it is determined that the encoded patterns cannot be uniformly reproduced, a notification for notifying, without outputting the print in which the additional information is embedded, a user that the print in which the additional information is to be embedded can cause a failure in a decoding of the additional information.