matrix-dimension icon indicating copy to clipboard operation
matrix-dimension copied to clipboard

More image formats

Open SG-O opened this issue 2 years ago • 2 comments

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 avatar Jul 08 '22 04:07 SG-O

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

SG-O avatar Jul 08 '22 22:07 SG-O

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

SG-O avatar Jul 10 '22 01:07 SG-O