1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JavaScriptで動画からサムネイルを作成する

Last updated at Posted at 2021-05-03

概要

動画からサムネイルを作成するプログラム。
動画から任意のシーンを選んで画像として保存します。

使い方

  1. 動画ファイルを開く
  2. サムネイルにしたいシーンを選択する
  3. セーブボタンを押すと、サムネイルを保存できます

サムネイル画像の仕様は1280×720JPEG。YouTube向けです。

動作サンプル

画像編集機能

このプログラムには画像編集機能があります。
テキストエリアにSVGを入力することでサムネイルを編集できます。

例えばサムネイルに文字を入れたいなら、次のようになります。

サムネイルに文字を入れる例
<text x="100" y="200" font-family="Meiryo" font-size="90px" fill="#fff" stroke="#000" stroke-width="12px" paint-order="stroke">テスト</text>

サムネイルに画像を加えたいなら、画像ファイルをD&Dすると追加できます。

ソース

ソースはHTML1枚です。クライアントサイドですべて動作します。
自分用のプログラムなのでノーデザインですが、よければご自由にお使いください。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?