Skip to content

Instantly share code, notes, and snippets.

View nimbling's full-sized avatar

Herman van Boeijen nimbling

View GitHub Profile
@nimbling
nimbling / mp42gif.sh
Last active June 7, 2019 10:15 — forked from troyane/mp42gif.sh
See script and documentation here: https://github.com/troyane/StackOverflow-pro/tree/master/mp42gif Script to convert MP4 file to GIF (via ffmpeg). It creates intermediate custom color palette out of input video file and use it for resulting GIF for better picture quality. For more info see https://superuser.com/a/556031
#!/bin/bash
#
# Script to convert MP4 video to GIF with generation of custom color palette.
#
#=== Do not touch code below
# Inner variables
input_file=""
input_fps="20"
input_width="512"
@nimbling
nimbling / Illustrator_Scale_Artboard_and_Artwork.jsx
Last active April 19, 2019 13:21 — forked from shivendra14/Illustrator_Scale_Artboard_and_Artwork.jsx
Script to scale up Illustrator Assets, in a single document.
#target Illustrator
requiredABsize = prompt( 'Scale artboards to what square size?\nRemember this number to create enough space between your scaled artboards in the next step.\n\nThis script uses \"Scale Strokes and Effects\" for you.\n\n', '500', 'Select artboard area');
// Make sure the user generates enough space between the artboards
app.executeMenuCommand("ReArrange Artboards");
var activeDoc = app.activeDocument;
var TotalArtboards = activeDoc.artboards.length;
var originalOrigin = activeDoc.rulerOrigin;