[過去ログ]
【node.js】サーバサイドjavascript 4【io.js】 [無断転載禁止]©2ch.net (1002レス)
【node.js】サーバサイドjavascript 4【io.js】 [無断転載禁止]©2ch.net http://mevius.5ch.net/test/read.cgi/tech/1460359714/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
410: デフォルトの名無しさん [sage] 2017/04/03(月) 03:53:47.87 ID:CTM8h4Rc >>408 fs.readdir(source, func1) var func1 = function(err, files) { if (err) { console.log('Error finding files: ' + err) } else { files.forEach(func2) } } var func2 = function(filename, fileIndex) { console.log(filename) gm(source + filename).size(func4) } var func3 = function(width, widthIndex) { height = Math.round(width / aspect) console.log('resizing ' + filename + 'to ' + height + 'x' + height) this.resize(width, height).write(destination + 'w' + width + '_' + filename, function(err) { if (err) console.log('Error writing file: ' + err) } var func4 = function(err, values) { if (err) { console.log('Error identifying file size: ' + err) } else { console.log(filename + ' : ' + values) aspect = (values.width / values.height) widths.forEach(func3) }.bind(this)) } } http://mevius.5ch.net/test/read.cgi/tech/1460359714/410
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 592 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.008s