mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Create new File with blob
- maintain filename - reduce image size
This commit is contained in:
parent
452bf4127c
commit
d62ee23f2a
@ -100,8 +100,9 @@ export default {
|
||||
thumbnailElement.appendChild(image)
|
||||
// Remove the editor from view
|
||||
editor.parentNode.removeChild(editor)
|
||||
this.$emit('addTeaserImage', blob)
|
||||
})
|
||||
const croppedImageFile = new File([blob], file.name, { type: 'image/jpeg' })
|
||||
this.$emit('addTeaserImage', croppedImageFile)
|
||||
}, 'image/jpeg')
|
||||
})
|
||||
editor.appendChild(confirm)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user