Skip to content

Instantly share code, notes, and snippets.

@livingston
Created November 6, 2016 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save livingston/066f5bbdd6e0cea1e8f07ea9be176ec5 to your computer and use it in GitHub Desktop.
Save livingston/066f5bbdd6e0cea1e8f07ea9be176ec5 to your computer and use it in GitHub Desktop.
Keybase

Keybase proof

I hereby claim:

  • I am livingston on github.
  • I am livingston (https://keybase.io/livingston) on keybase.
  • I have a public key ASAlV_QMSgPao2ilqZHRJkDxAPSRnZ9Tp9zCcYW9uXw82wo

To claim this, I am signing this object:

{
    "body": {
        "key": {
            "eldest_kid": "01202557f40c4a03daa368a5a991d12640f100f4919d9f53a7dcc27185bdb97c3cdb0a",
            "host": "keybase.io",
            "kid": "01202557f40c4a03daa368a5a991d12640f100f4919d9f53a7dcc27185bdb97c3cdb0a",
            "uid": "6ac16a68ac94ca8298c9c2329593a419",
            "username": "livingston"
        },
        "service": {
            "name": "github",
            "username": "livingston"
        },
        "type": "web_service_binding",
        "version": 1
    },
    "client": {
        "name": "keybase.io go client",
        "version": "1.0.18"
    },
    "ctime": 1478421719,
    "expire_in": 504576000,
    "merkle_root": {
        "ctime": 1478421654,
        "hash": "cf28832960552eac3c92917fce21914968086808a28e67758ee02c1a4c080c8fbb244c501a40c468e5e58304d3c425a148c7956ed76be29a565474ba30a60d7c",
        "seqno": 701894
    },
    "prev": "df0a1248b919157ed167754e4964042300c4bf98cf02adf6a238b2a1dcc08d51",
    "seqno": 7,
    "tag": "signature"
}

with the key ASAlV_QMSgPao2ilqZHRJkDxAPSRnZ9Tp9zCcYW9uXw82wo, yielding the signature:

hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgJVf0DEoD2qNopamR0SZA8QD0kZ2fU6fcwnGFvbl8PNsKp3BheWxvYWTFAvB7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMjU1N2Y0MGM0YTAzZGFhMz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cGUgpGhhc2iCpHR5cGUIpXZhbHVlxCDmxWJZ43j0aO4R5+OfA0lxmmnxeUgr2TOnC/h6I64I+qN0YWfNAgKndmVyc2lvbgE=

And finally, I am proving ownership of the github account by posting this as a gist.

My publicly-auditable identity:

https://keybase.io/livingston

From the command line:

Consider the keybase command line program.

# look me up
keybase id livingston
@Cyril0001
Copy link

Could you please help me scripting a Save As animated GIF with "loop forever" and name, as a layer name?

I have the script blow that saves JPG using a layer name. It works great.

I am trying to update this script so, that it would save animated GIF with "loop forever" option.

It would be just awesome if there is a possibility to set in the script quantity of GIF's colors (64, 128, 256), Transparency, Dithering and other parameters.

Any help would be very greatly appreciated!

#target photoshop
main();
function main(){
if(!documents.length) return;
try{
var Path= activeDocument.path;
}catch(e){var Path = "~/desktop";}
var Name = decodeURI(app.activeDocument.name).replace(/.[^\.]+$/, '');
var layerName = app.activeDocument.activeLayer.name.replace(/[:/\*?"<>|]/g, "_");
var saveFile= new File(Path + "/" + Name + "-" + layerName + ".jpg");
SaveForWeb(saveFile,80);
}
function SaveForWeb(saveFile,jpegQuality) {
var sfwOptions = new ExportOptionsSaveForWeb();
sfwOptions.format = SaveDocumentType.JPEG;
sfwOptions.includeProfile = false;
sfwOptions.interlaced = 0;
sfwOptions.optimized = true;
sfwOptions.quality = jpegQuality;
activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment