Cannot read .eps Images in UXP
Hello,
I am trying to load in .eps images and read the image object to perform some operations on a given image using UXP scripts. When I select a .eps image for my placeGun, it is not able to reference the .images.item(0) object. This works for other types of images, such as .tif. It seems UXP scripts does not handle .eps images in the same way as other images. What is the alternative to handling this file type and finding its corresponding image?
const placeGun = doc.placeGuns;
placeGun.loadPlaceGun(file);
const pageItems = placeGun.pageItems.everyItem().getElements();
pageItems.forEach(pageItemInPlaceGun => {
const image = pageItemInPlaceGun.images.item(0);
});
