Changing the effect of an image using Photoshop

The following script applies an effect to a Photoshop image. Open an image in Photoshop before running the script.

preferences.rulerUnits = Units.PIXELS 
docRef = app.activeDocument 
docRef.activeLayer.applyPinch(80) 
docRef.save()

The script sets the ruler units in pixels. Then, selects the active Photoshop image. It applies the Photoshop effect, applyPinch , in the active layer of the image. After applying the effect, it saves the file.

// Ethnio survey code removed