0

I am trying to save images in the AV1 Image (.AVIF) format using a script. My version of Photoshop (20.0.5) does not support this file format, but I added this feature to the version via a plugin located at https://github.com/0xC0000054/avif-format/releases. I am able to access the feature by navigating to File>Save As>Save as type:> AV1 Image (.AVIF). However, when I attempt to save using the following code, I receive the error message: "Error 8800: General photoshop error occurred. This functionality may not be available in this version of Photoshop."

      // Save the image as an AVIF file
    var saveFile = new File(saveFolder + '/Image' + i + '.avif');
    var avifOptions = new ActionDescriptor();
    avifOptions.putPath(charIDToTypeID('In  '), saveFile);
    avifOptions.putEnumerated(charIDToTypeID('As  '), charIDToTypeID('FTcs'), charIDToTypeID('AVIF'));
    executeAction(charIDToTypeID('save'), avifOptions, DialogModes.NO);

Does anyone know how to resolve this error and successfully save images in the AV1 Image (.AVIF) format using this script?

matin
  • 111
  • 10
  • What does the [scriptlistner](https://helpx.adobe.com/photoshop/kb/downloadable-plugins-and-content.html) say when you save out AVIF file as you would normally? – Ghoul Fool Jun 18 '23 at 09:53

0 Answers0