Skip to content

Instantly share code, notes, and snippets.

@heLomaN
Created May 21, 2020 20:02
Show Gist options
  • Save heLomaN/0b62b2c6990571c13641752d44cc5b93 to your computer and use it in GitHub Desktop.
Save heLomaN/0b62b2c6990571c13641752d44cc5b93 to your computer and use it in GitHub Desktop.
A simple photoshop script could convert cartoon image to wired draft.
/// cartoon image to wired draft
/// ref: https://www.adobe.com/devnet/photoshop/scripting.html
function wired_filter() {
var doc = app.activeDocument;
while(doc.artLayers.length > 1) {
doc.activeLayer.remove()
}
doc.activeLayer.copy()
doc.paste();
doc.activeLayer.desaturate()
doc.activeLayer.copy()
doc.paste();
doc.activeLayer.invert()
doc.activeLayer.blendMode = BlendMode.COLORDODGE
doc.activeLayer.applyMinimum(2)
}
wired_filter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment