Settings: Make image compression configurable

This commit is contained in:
Lain Soykaf 2025-01-21 09:24:18 +04:00
commit 7a4efdb5a8
4 changed files with 16 additions and 1 deletions

View file

@ -34,6 +34,11 @@ const mediaUpload = {
return file
}
// Skip if image compression is disabled
if (!this.$store.getters.mergedConfig.imageCompression) {
return file
}
// For PNGs, check if animated
if (file.type === 'image/png') {
const isAnimated = await this.isAnimatedPng(file)