media file: fix overly large thumbnails for animated GIFs.

Fix regression in ef2857667 that caused animated GIFs and PNGs to
generate thumbnails that were larger than 150x150.

Also fix a bug with cropped previews not being generated for animated
GIFs and PNGs.
This commit is contained in:
evazion
2021-09-05 07:43:31 -05:00
parent 540a3e111a
commit 13f98c02e3
4 changed files with 19 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB