Photoshop Script Crop To Template CHANGE LOG Version 3.2 (231201) a. Function 'mergeLayers' add unlock all layers. b. Progress increment before display not after. c. Add version to error message. d. Return results from cropping function. e. Miscellaneous. Version 3.1 (231007) a. Content-aware cropping make compatible with PS v25. Version 3.0 (230822) a. Set 'folderXxxxxLastValid' once selected. b. Miscellaneous. Version 2.9 (230327) Release 2.8.3 Version 2.8.3 (230323) a. Add format BMP. b. Add option merge to single layer. c. Rebuild i18n. Version 2.8.2 (230322) a. Rename 'processDocCrop' => 'processDoc'. b. Eliminate 'processDocPrepSave'; put code in process loop. c. Remove temp masks before cropImage() otherwise content-aware ignored. d. Update function selectLayer to layer object not id or name. e. Implement isMasked. f. Use dupe layer to replace function selectLayerHighestNormalVisible. Version 2.8.1 (230321) a. Add option image less than crop log. b. 'When image is less than crop' => 'Image less than crop'. c. Rename var 'cbUseCAFill' => 'cbLessContentAware'. d. Rename var 'cbScaleToFit' => 'cbLessScaleToFit'. e. Rename var 'grpSaveInSubFolder' => 'grpLessSubFolder' f. Rename var 'cbSaveInSubFolder' => 'cbLessSubFolder'. g. Rename var 'inpSaveInSubFolderName' => 'inpLessSubFolderName'. h. Rename associated settings properties to match new var names. i. Legacy settings set new properties and remove old properties. j. Miscellaneous. k. Rebuild i18n. Version 2.8 (230304) a. Clear var 'lessThanCrop' each image. Version 2.7 (230303) a. Add option scale to fit. b. Add option save in subfolder. c. Miscellaneous. d. Rebuild i18n. Version 2.6 (230222) a. Fix language file fails to load. Version 2.5 (230105) a. Fix bug when guides are absent or at image edge. Version 2.4 (221229) a. Update i18n. Version 2.3 (221212) a. Internationalize. Version 2.2 (221031) a. Function getFiles add WEBP to known Photoshop extensions. Version 2.1 (221029) a. Folder property 'fsName' use 'fullName' instead. b. New function setFolder climb folder hierarchy until one exists. c. Add script variables 'folderXXXXLastValid'. Version 2.0 (221022) a. Remove path separator when combining pathOutput and subpath. b. Log contents add trailing return. c. Result when flatten only when process folder. d. Log indexed color. Version 1.9 (221020) a. Add zoom out after active image done. b. Settings apply function setFolder remove excess return. c. Select input folder add current location. d. Miscellaneous. Version 1.8 (221015) a. New function selectLayerHighestVisible. b. Restore checkbox content-aware fill. c. Function mergeLayers handle vector masks. d. Function mergeLayers incorporate rasterizeLayers as sub-function. Version 1.7 (221013) a. Settings save dialog add include input/output folders. b. Settings apply setFolder do not clear value when prop is empty. c. PNGSaveOptions remove property embedColorProfile. d. Remove useless function xmpRemoveProfile. Version 1.6 (221012) a. Subject mask channel type masked area instead of selected area. Version 1.5 (221010) a. New handling for subpath. b. Implement new function openFile. c. Folder objects global and create in btnOK.onClick. d. New handling of output file object creation. e. Script global extension, format. f. Function saveAndClose remove excess catch. g. New log message for background test flattened. h. Update panel 'Settings' to match others. i. Function saveAndClose try all. j. Miscellaneous. Version 1.4 (220928) a. Remove //@target b. Check app name and warn if wrong app for script. Version 1.3 (220912) a. Remove option and always replace existing output files. b. Move flatten option back to output section. c. Add save and load settings. d. Miscellaneous adjustments to match other auto crop scripts. e. Make when crop exceeds image a drop-down list. Version 1.2 (220902) a. Restore background layer properties always. b. Restore background layer properties before flatten. c. Store channel of subject instead of select subject twice. d. Input image remove current guides. e. Preserve Details 2.0 only when increase resolution. f. On error open file log 'Cannot open file' in all cases. Version 1.1 (220831) a. Ignore guides off canvas. b. Move replace output to beside input suffix. c. Add option wide subject vertical position. d. Miscellaneous UI verbiage + positions. Version 1.0 (220831)