Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

More image formats #492

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

More image formats #492

wants to merge 8 commits into from

Conversation

SG-O
Copy link

@SG-O SG-O commented Jul 8, 2022

This adds the ability for dimension to use other images than PNGs for Stickers. This includes animated Stickers encoded in PNG or WEBP. JPEG was also added in case someone wants to use it.

@SG-O
Copy link
Author

SG-O commented Jul 8, 2022

Here is a set of sample images to test these additions: Sample Images

SG-O added 2 commits July 10, 2022 01:31
This includes the ability to enable or disable the resizing of oversized
images.
The ability to allow the upload of animated stickers.
The possibillity to disallow the upload of stickers that are not 512x512
when resizing is enabled
and a small bugfix where thumbnails were not resized correctly.
@SG-O
Copy link
Author

SG-O commented Jul 10, 2022

Here a short speed comparison with options enabled/disabled.
The following sample images (posted above) were used in the pack: 1 PNG, 1 JPG, 1 GIF, 1 WEBP, 1 AVIF and 1 APNG.
All test were performed with verifyImageSize: false as it does not change the import speed.

resize: true   allowAnimated: true
0:22

resize: false  allowAnimated: true
0:03

resize: true   allowAnimated: false
0:06

resize: false  allowAnimated: false
0:08

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant