Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, I found a very informative post, how to record a Photoshop action and look at the js or vb file of it.<br> You need to use a plug-in called Script Listener, you can download it from the <a href="http://www.adobe.com/devnet/photoshop/scripting.html" rel="nofollow noreferrer">Adobe Scripting Page</a></p> <p>Follow the instructions in <a href="https://stackoverflow.com/questions/5796764/from-photoshop-actions-to-photoshop-scripting">this post</a> (not the accepted answer, but the answer by Kevin Sharnhorst) </p> <p>Then it is easy to compare the action to the script I have, worst case I can use the code created by the listener to execute the exact same action.</p> <p><strong>Edit after real run</strong> After using the aforementioned technique the culprit was not the SaveForWeb function, but the image resize. Seems to be there are not enough options in the doc.resizeImage() to achieve the same result.<br> I copied the listener (ugly) code instead, and now the results are the same as expected</p> <pre><code>var idImgS = charIDToTypeID( "ImgS" ); var desc2 = new ActionDescriptor(); var idWdth = charIDToTypeID( "Wdth" ); var idPxl = charIDToTypeID( "#Pxl" ); desc2.putUnitDouble( idWdth, idPxl, 96.000000 ); var idscaleStyles = stringIDToTypeID( "scaleStyles" ); desc2.putBoolean( idscaleStyles, true ); var idCnsP = charIDToTypeID( "CnsP" ); desc2.putBoolean( idCnsP, true ); var idIntr = charIDToTypeID( "Intr" ); var idIntp = charIDToTypeID( "Intp" ); var idbicubicAutomatic = stringIDToTypeID( "bicubicAutomatic" ); desc2.putEnumerated( idIntr, idIntp, idbicubicAutomatic ); executeAction( idImgS, desc2, DialogModes.NO ); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload