My Photoshop Scripting

JSXIt isn’t a secret that one can script Photoshop to automate some tasks. Heck, one could even write a program and steer Photoshop. Hereby I’m posting a script that I’ve been using quite regularly.

The interest in scripting Photoshop started when Thomas and I discovered Chlomoscript when researching lomography.

The script itself is quite heavy, both on CPU and in the result. After playing around with Chlomoscript, we came to the stage where we would actually run the Chlomoscript and – once the result was there – we would disable some layers and tweak some layers their transparancy since we didn’t want to use all of the actions that came with Chlomoscript; in some cases we just wanted to pimp some low-contract pics and add some colour to it.

Since Photoshop scripts are plain javascript, it wasn’t hard for me (I’m the techie, Thomas the designer) to adjust it so we would bypass the repetitive manual “fooling around with the Chlomoscript layers”-part. This would increase the speed by which the results came (fyi: Chlomoscript is really heavy!) and would immediately give the result we wanted.A first run at minimizing Chlomoscript was entitled “HomoScript” (don’t ask me how we got to that name, we just got there). Later on some more fiddling was done and this resulted in a script dubbed “LesboScript” (or just Homoscript V2).

Lesboscript basically adds these layers, automatically:

  • Selective Colour on the neutrals : Yellow +20
  • Center Light: Tiny center radial gradient of white, to enlighten the center of the picture
  • Shadow: Radial gradient of black on the outer side of the image
  • Saturation: +10
  • Contrast: +10

The result can be seen right here:

Original Picture

LesboScript Result

Chlomoscript Result

Sometimes the “Selective Colour”-layer might not be needed, just disable it manually then. In my experience Lesboscript gives the best result on a picture with lots of green, as seen above. Right here is an example picture of where the Selective Color layer has been disabled, to give better results:

Original Picture

LesboScript result, without Selective Colour

ChlomoScript Result

So hereby I’m releasing LesboScript (created October 2005 btw). Maybe you’ll use it and pimp up that picture of your garden 😉

Download LesboScript

To use this script, just place in into your Photoshop Scripts Folder (on a windows PC this is "C:\Program Files\Adobe\Adobe Photoshop CS2\Presets\Scripts". After placing it there, open up your image in Photoshop and go to "File" > "Scripts" and select "PS_Bramus_LesboScript" from the list to apply it to the focused document.

Have Fun!


Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Unless noted otherwise, the contents of this post are licensed under the Creative Commons Attribution 4.0 License and code samples are licensed under the MIT License

Join the Conversation


  1. Wow, its a magic from photoshop create by you Bramus.. Thanks for sharing. Actually i want to learn how to create photoshop scripting. But now, don’t know where to start.
    Until i found your blog.

    Thanks again Bramus.

  2. Hi Bramus.

    I didn’t even know that you could write scripts for photoshop so thanks for the eye opener.

    Is there any difference between using a script or making an action that you can run?

    I’m interested because I sometimes do some heavy photoshopping on my photographs and it would be nice to cut a few corners.

  3. This was something new to me as well. I had no idea that you can write js to do this. Thanks for the info and best of luck.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.