This repository was archived by the owner on Jul 28, 2021. It is now read-only.

Description
The orginal filesize is : 400Kbs
but after
var file = this.$refs.tuiImageEditor.invoke("toDataURL", {
format: "jpeg"
})
if no format is given the filesize gets to 13MB for PNG
and 5MB for jpeg.
(If edited or not.)
What Am I missing? how I can maintain the image size to least?
it should not increase way more than the actual size?
this is how I have started the editor
<tui-image-editor
ref="tuiImageEditor"
:include-ui="useDefaultUI"
:options="options"
@redoStackChanged="redoStackChanged"
@undoStackChanged="undoStackChanged"
@addText="addText"
/>
and options are as
return {
useDefaultUI: false,
options: {
cssMaxWidth: "100%",
cssMaxHeight: "100%",
usageStatistics: false,
selectionStyle: {
cornerSize: 50,
rotatingPointOffset: 70
}