# clipping
ffmpeg -ss 00:00:15 -to 00:00:18 -i test.mov -c copy out.mov
# video to gif
ffmpeg -i out.mov -vf "fps=10,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Source:https://github.com/owenlo/Marble-Hammerspoon | |
-- Source:https://github.com/tekezo/Karabiner/issues/814#issuecomment-415388742 | |
-- Source:https://gist.github.com/ParatechX/c03c1146f7cd719dbfd65a337c7228f3 | |
-- HANDLE SCROLLING WITH MOUSE BUTTON PRESSED | |
local backMouseButton = 3 | |
local forwardMouseButton = 4 | |
local deferred = false | |
local VSCODE = 'Code' | |
local VIM = 'MacVim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
original_11 = "1024.png" | |
original_43 = "1024x768.png" | |
im = Image.open(original_11) | |
variants_11 = [ | |
58, | |
87, |
OlderNewer