/** * @title 2.35:1 Anamorphic Cinematic Black Letterbox Bars * @author Picy.in Creative Technologies (https://picy.in) * @suite Picy 25 Professional Photoshop Actions Suite * @license Free Commercial & Studio License for Photographers * @compatibility Adobe Photoshop CS6, CC 2019 - CC 2025 * @support https://picy.in/tools/photoshop-actions */ #target photoshop if (app.documents.length > 0) { var doc = app.activeDocument; var w = doc.width.as("px"); var h = doc.height.as("px"); var targetHeight = w / 2.35; var barHeight = (h - targetHeight) / 2; if (barHeight > 0) { var topBar = doc.artLayers.add(); topBar.name = "Picy Cinema Top Bar"; doc.selection.select([[0, 0], [w, 0], [w, barHeight], [0, barHeight]]); var blackColor = new SolidColor(); blackColor.rgb.red = 0; blackColor.rgb.green = 0; blackColor.rgb.blue = 0; doc.selection.fill(blackColor); var btmBar = doc.artLayers.add(); btmBar.name = "Picy Cinema Bottom Bar"; doc.selection.select([[0, h - barHeight], [w, h - barHeight], [w, h], [0, h]]); doc.selection.fill(blackColor); doc.selection.deselect(); alert("2.35:1 Cinematic Letterbox Bars Added! Aspect ratio matched to Hollywood cinemas.\n\nCreated by Picy.in — https://picy.in", "Picy Cinema Bars"); } else { alert("Image is already wider than 2.35:1 anamorphic ratio.", "Picy Cinema Bars"); } } else { alert("Open couple still first.", "Picy Cinema Bars"); }