tui.image-editor icon indicating copy to clipboard operation
tui.image-editor copied to clipboard

Image size problem

Open bilalmalkoc opened this issue 4 years ago • 10 comments

When i edit any image, it's size will be huge. I put 195KB image, after TUI editor without any filter (just load and downlad) it's size goes 2.2MB.

bilalmalkoc avatar Mar 28 '21 19:03 bilalmalkoc

@bilalmalkoc Thank you for the bug report. I will resolve it after checking.

lja1018 avatar Mar 31 '21 01:03 lja1018

same error in size image

ntehah avatar Apr 03 '21 17:04 ntehah

+1 - Same issue

marcodafonseca avatar Apr 06 '21 03:04 marcodafonseca

+1 2mb > 20mb

haiduong87 avatar Apr 09 '21 06:04 haiduong87

Check this https://github.com/fabricjs/fabric.js/issues/4906 Proposal to fix (https://github.com/nhn/tui.image-editor/blob/master/apps/image-editor/src/js/action.js#L148): image

But I'll stick with my own solution https://github.com/nhn/tui.image-editor/pull/568 I will handle the download in custom function

haiduong87 avatar Apr 09 '21 10:04 haiduong87

+1

talyosha avatar Apr 21 '21 16:04 talyosha

+1

toraji1 avatar May 01 '21 10:05 toraji1

Hello. Any news?

bilalmalkoc avatar Jun 07 '21 11:06 bilalmalkoc

@bilalmalkoc I haven't fixed that bug yet. Can you contribute it?

lja1018 avatar Jun 10 '21 01:06 lja1018

As a temporary solution we can use an instance method toDataUrl link to the method In this method we can reduce the size of the image

It will look something like this: imageEditor.toDataURL({ format: 'jpeg', quality: 0.5 });

serhsavchuk avatar Oct 31 '23 16:10 serhsavchuk