This commit is contained in:
tamaina 2018-04-11 23:50:11 +09:00 committed by GitHub
parent 703376841a
commit 760b90a84b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ interface ISend {
function thumbnail(data: stream.Readable, type: string, resize: number): ISend { function thumbnail(data: stream.Readable, type: string, resize: number): ISend {
const readable: stream.Readable = (() => { const readable: stream.Readable = (() => {
// 動画か画像であれば // 動画か画像であれば
if (/^(?:video|image)\/.*$/.test(type)) { if (/^(?:video|image)\/.*$/.test(type) || type == 'application/xml') {
// 0フレーム目を送る // 0フレーム目を送る
try { try {
return gm(data).selectFrame(0).stream(); return gm(data).selectFrame(0).stream();