Convert eps to psd

Contents
[ ]

Using Aspose.Imaging we can convert eps file to Psd.

The following code snippet shows you how to convert Eps to Psd.

from aspose.imaging import Image
from aspose.imaging.imageoptions import PsdOptions
import os
if 'TEMPLATE_DIR' in os.environ:
templates_folder = os.environ['TEMPLATE_DIR']
else:
templates_folder = r"C:\Users\USER\Downloads\templates"
delete_output = 'SAVE_OUTPUT' not in os.environ
data_dir = templates_folder
with Image.load(os.path.join(data_dir, "template.eps")) as image:
options = PsdOptions()
image.save(os.path.join(data_dir, "result.psd"), options)
if delete_output:
os.remove(os.path.join(data_dir, "result.psd"))