nhn / toast-ui.vue-image-editor

Toast UI Image Editor for Vue
MIT License
186 stars 41 forks source link

File size is being increased to 13Mb without any change. #34

Open ijunaid8989 opened 4 years ago

ijunaid8989 commented 4 years ago

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
        }
craigrileyuk commented 3 years ago

Have you tried using numbers for your cssMaxWidth and cssMaxHeight values rather than percentages?

swtalk commented 3 years ago

Dooray! 메일 발송 실패 안내

메일 발송 실패 안내

박시우(viewrain@nhn.com) 님께 보낸 메일이 전송되지 못하였습니다.

      실패 사유를 확인해보세요.

        * 받는 사람 : 

박시우(viewrain@nhn.com)

        * 발송 시간 : 

2021-03-03T11:33:52

        * 메일 제목 : 

Re: [nhn/toast-ui.vue-image-editor] File size is being increased to 13Mb without any change. (#34)

            * 실패 사유 : 

받는 사람이 회원님의 메일을 수신차단 하였습니다.

      이 메일은 발신전용으로 회신되지 않습니다.
      더 궁금하신 사항은
      dooray@nhn.com
      으로 문의해 주시기 바랍니다.

    © Dooray!.
florianmarical commented 3 years ago

Hello, I have the same problem. My image is 700Kb, if I save it in JPEG format, without making any modification, it weighs 3Mb

swtalk commented 3 years ago

Dooray! 메일 발송 실패 안내

메일 발송 실패 안내

@.***) 님께 보낸 메일이 전송되지 못하였습니다.

      실패 사유를 확인해보세요.

        * 받는 사람 : 

@.***)

        * 발송 시간 : 

2021-07-22T22:56:35

        * 메일 제목 : 

Re: [nhn/toast-ui.vue-image-editor] File size is being increased to 13Mb without any change. (#34)

            * 실패 사유 : 

받는 사람이 회원님의 메일을 수신차단 하였습니다.

      이 메일은 발신전용으로 회신되지 않습니다.
      더 궁금하신 사항은
      ***@***.***
      으로 문의해 주시기 바랍니다.

    © Dooray!.