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
mogrify -format jpg *.png && find ./ -type f -name "*.png" -delete |
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
//compression | |
//png | |
pngquant --ext .png --force ./*.png | |
//jpg | |
jpegoptim --strip-all ./*.jpg |
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
ffmpeg -i input.m4a -ac 1 -ab 196k -ar 44100 output.m4a |
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
ffmpeg -loop 1 -i image-file.png -t 3 video-file-name.webm |
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
ffmpeg -i input.wav -ac 1 -acodec alac out.m4a |
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
#!/bin/sh | |
INPUT_DIRECTORY_PATH=$1 | |
EXPORT_DIRECTORY_PATH=${INPUT_DIRECTORY_PATH}_hap | |
if [ ! -d ${EXPORT_DIRECTORY_PATH} ]; then mkdir -p ${EXPORT_DIRECTORY_PATH}; fi | |
echo "exporting..." | |
for file in `\find ${INPUT_DIRECTORY_PATH} -maxdepth 1 -type f`; do |
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
#!/bin/sh | |
INPUT_DIRECTORY_PATH=$1 | |
EXPORT_DIRECTORY_PATH=${INPUT_DIRECTORY_PATH}_png | |
PNG_CONFIG=%03d.png | |
if [ ! -d ${EXPORT_DIRECTORY_PATH} ]; then mkdir -p ${EXPORT_DIRECTORY_PATH}; fi | |
echo "exporting..." |
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
''' | |
# How to use | |
run below command at the parent directory of svg files! | |
`blender -b -P svg2fbx.py` | |
if blender exec path is not defined, please run below one. (tested only on MacOS) | |
`/Applications/Blender/blender.app/Contents/MacOS/blender -b -P svg2fbx.py` | |
''' |
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
out vec4 fragColor; | |
uniform float saturation; | |
uniform float brightness; | |
uniform float phase; | |
const float MIN_HUE = 0.0; | |
const float MAX_HUE = 0.66; | |
const float PHASE = 0.25; |
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
ffmpeg -i <input_file>.mov -pix_fmt yuv420p <output_file>.mp4 |
NewerOlder