diff --git a/package.json b/package.json
index e712cffd..297a9379 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"@kazvmoe-infra/pinch-zoom-element": "1.2.0",
"@vuelidate/core": "^2.0.0",
"@vuelidate/validators": "^2.0.0",
+ "blurhash": "^2.0.4",
"body-scroll-lock": "2.7.1",
"chromatism": "3.0.0",
"click-outside-vue3": "4.0.1",
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 4dcacc7e..3155abf0 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -18,6 +18,7 @@ import {
faPencilAlt,
faAlignRight
} from '@fortawesome/free-solid-svg-icons'
+import Blurhash from '../blurhash/Blurhash.vue'
library.add(
faFile,
@@ -63,7 +64,8 @@ const Attachment = {
components: {
Flash,
StillImage,
- VideoAttachment
+ VideoAttachment,
+ Blurhash
},
computed: {
classNames () {
@@ -84,6 +86,9 @@ const Attachment = {
useContainFit () {
return this.$store.getters.mergedConfig.useContainFit
},
+ useBlurhash () {
+ return this.$store.getters.mergedConfig.useBlurhash
+ },
placeholderName () {
if (this.attachment.description === '' || !this.attachment.description) {
return this.type.toUpperCase()
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 947b1bfc..f9c4f1c8 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -64,7 +64,15 @@
:title="attachment.description"
@click.prevent.stop="toggleHidden"
>
+