Settings: Make image compression configurable
This commit is contained in:
parent
0a5de96f36
commit
7a4efdb5a8
4 changed files with 16 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue