摘要:Edible films, as novel degradable materials in food packaging, play an important role in removing consumers' concerns about environmental pollution and food contaminations. Carboxymethyl cellulose (CMC)–gelatin (G) edible films with the ratio 4 to 1 was selected as the optimal film based on physical, mechanical, and physicochemical findings. Then, the effects of 0, 300, 450, and 600 ppm Dianthus barbatus essential oil (DbE) on water vapor permeability, tensile strength, elongation at break, water solubility, glass transition temperature, color, oxygen permeability, and antimicrobial activities on the optimal film were investigated. CMC: G (4:1) containing 600 ppm DbE as the antibacterial–antioxidant film was the best formulae ( p < .05) for preventing three types of aflatoxin‐producing mold including A. flavus (PTCC‐5004), A. parasiticus (PTCC‐5286), and A. parasiticus (PTCC‐5018) on pistachios for 6 months.