3 Replies Latest reply on Apr 27, 2014 4:36 AM by Chuck Uebele

    Scripting: upper limit on number of points in clipping path to be converted to selection?




      I am working with some large tiff files with fairly complex clipping paths, and have written a script to convert a path to a selection, invert that selection and delete pixels in order to downsample and save a PNG with transparent background for the web.


      If the number of points in the clipping path is greater than 1000, Photoshop will stop with an "Illegal Argument" message and will not make the selection. Choosing "Make Selection..." manually from the path palette works fine, and works almost instantly.


      The problem is especially frustrating since the manual selection is made so easily.


      Does anyone know how to allow more points or override this limit? I'd also experiment with a scriptable command to arbitrarily simplify the path if there's no way around the problem at hand.