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/bash | |
| scale=1 # デフォルト値 | |
| while getopts "s:" opt; do | |
| case "$opt" in | |
| s) scale="$OPTARG" ;; | |
| esac | |
| done |
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/bash | |
| # SVGからの変換はPhotoshopでやったほうがいい | |
| # convert favicon.svg -resize 32x32 favicon.png | |
| convert favicon.png -define icon:auto-resize=16,32 favicon.ico |
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
| #!/usr/bin/env bash | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <target-directory-or-file>" | |
| exit 1 | |
| fi | |
| TARGET="$1" | |
| # 7zzコマンドを使用してWindows互換性の高いzipを作成 |
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/bash | |
| # 50fps | |
| convert -delay 2 -loop 0 -layers OptimizeFrame input*.png 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
| #!/bin/bash | |
| # 60fps | |
| ffmpeg -r 60 -i input%03d.png -crf 10 -b:v 1M output.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
| #!/bin/bash | |
| # 60fps | |
| ffmpeg -r 60 -i input%03d.png -c:v hevc_videotoolbox -colorspace bt2020nc -color_trc bt709 -color_primaries bt2020 -vf setparams=color_primaries=bt2020:color_trc=bt709:colorspace=bt2020nc -alpha_quality 0.9 -vtag hvc1 -b:v 1M output.mov | |
| # without colorspace | |
| #ffmpeg -r 60 -i input%03d.png -c:v hevc_videotoolbox -alpha_quality 0.9 -vtag hvc1 -crf 10 -b:v 1M output.mov | |
| # too large | |
| #ffmpeg -r 60 -i input%02d.png -c:v prores_ks output.mov |
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/bash | |
| ffmpeg -i input.mov -crf 10 -b:v 1M output.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
| import {execSync} from "child_process" | |
| function zeroPadding(num, qty) { | |
| return `${"0".repeat(qty)}${num}`.slice(qty * -1); | |
| } | |
| async function main(){ | |
| for(let i=0;i<100;i+=1){ | |
| const text=`image${zeroPadding(i,2)}`; | |
| const filename=`${text}.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
| import {IDestroyOptions,Sprite,Texture} from "pixi.js" | |
| import lottie, { AnimationConfigWithPath, AnimationDirection, AnimationItem, AnimationSegment } from "lottie-web"; | |
| interface LottieSpriteParams{ | |
| path?:string; | |
| animationData?:Object; | |
| loop?:boolean; | |
| autoplay?:boolean; | |
| onConfigReady?:()=>void, | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| .run{ | |
| } | |
| th,td{ | |
| border:1px solid #000; |
NewerOlder