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

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

@ijunaid8989

Description

@ijunaid8989

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
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions