Methods for preparing food packaging films with antibacterial activity, and applications thereof