def extract_images(self):
		from frappe.utils.file_manager import extract_images_from_html
		if self.format_data:
			data = json.loads(self.format_data)
			for df in data:
				if df.get('fieldtype') and df['fieldtype'] in ('HTML', 'Custom HTML') and df.get('options'):
					df['options'] = extract_images_from_html(self, df['options'])
			self.format_data = json.dumps(data)
dataset/ETHPy150Open frappe/frappe/frappe/print/doctype/print_format/print_format.py/PrintFormat.extract_images/original