toast-ui.vue-image-editor icon indicating copy to clipboard operation
toast-ui.vue-image-editor copied to clipboard

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

Open ijunaid8989 opened this issue 5 years ago • 4 comments

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
        }

ijunaid8989 avatar Mar 04 '20 12:03 ijunaid8989

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

craigrileyuk avatar Mar 03 '21 02:03 craigrileyuk

Dooray! 메일 발송 실패 안내

메일 발송 실패 안내

박시우([email protected]) 님께 보낸 메일이 전송되지 못하였습니다.

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




  
    
      
        * 받는 사람 : 

박시우([email protected])

        * 발송 시간 : 

2021-03-03T11:33:52

        * 메일 제목 : 

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

            * 실패 사유 : 

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

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




    © Dooray!.

swtalk avatar Mar 03 '21 02:03 swtalk

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

florianmarical avatar Jul 22 '21 13:07 florianmarical

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!.

swtalk avatar Jul 22 '21 13:07 swtalk