mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #1935 from Human-Connection/1932-use-filename-for-cropped-images
Maintain filename for cropped images
This commit is contained in:
commit
8fd1bb28ef
@ -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