6
6

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 5 years have passed since last update.

画像リソースを軽量化する

Posted at

開発TIPSでもなんでもないと怒られそうですが。

通常Retina画像と通常サイズの画像を用意すると思いますが、Retina画像だけでリソースを準備します。ファイル名は@2とか付けないでそのままです。

で、使う画像リソースをそのまま使えば、非Retina機で縮小された形で普通に表示されます。

画像リソースが多くてファイル容量削りたいってプロジェクトもあると思います。こんなことで実はファイル容量減らせます。

動画は無理ですが、画像ファイルならこのやり方で、通常サイズの物を全てなくす事ができます。

NTTのロケーション使ったゲームでこんな作り方してます。実際大分減ってます。はい。

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?