Skip to content

Instantly share code, notes, and snippets.

@ozdeleon
ozdeleon / webp-convert-directory.sh
Created March 11, 2022 07:08 — forked from tabrindle/webp-convert-directory.sh
Convert all files in directory to webp, with default params, or standard cwebp params passed from command
#!/bin/bash
PARAMS=('-m 6 -q 70 -mt -af -progress')
if [ $# -ne 0 ]; then
PARAMS=$@;
fi
cd $(pwd)
@ozdeleon
ozdeleon / ffmpeg.md
Created January 19, 2022 07:33 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@ozdeleon
ozdeleon / avengers.js
Created August 23, 2020 22:02 — forked from rishabhgupta/avengers.js
Photoshop
#include "/Users/cipherhack/Documents/Adobe Scripts/json2.js"
// Suppress dialogs
app.displayDialogs = DialogModes.NO;
// Read cast data from json file
const jsonFile = File("/Users/cipherhack/Documents/Adobe Scripts/cast.json");
jsonFile.open ('r');
const data = jsonFile.read();
jsonFile.close();
// Close the file as we don't need it anymore
var castData= JSON.parse(data);