Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries regarding design. #531

Closed
shubhwebkul opened this issue Feb 22, 2021 · 6 comments
Closed

Queries regarding design. #531

shubhwebkul opened this issue Feb 22, 2021 · 6 comments
Labels

Comments

@shubhwebkul
Copy link
Contributor

shubhwebkul commented Feb 22, 2021

I have few queries regarding vue image editor:-

  • I want to disable the image upload section (Load), the user will only edit the existing image. Is it possible (provide default image)(https://prnt.sc/103ug67)?
  • Image is not getting download with a click of the download button. It is just opening in a new tab.
  • How to Remove Toast UI Image Editor logo in the header (https://prnt.sc/103ucn3)
  • How to enable annotations (like long comments and save)
  • How to change the default background color of the Download button (https://prnt.sc/103ucn3)
  • https://prnt.sc/103vhex
  • Images are not editable when I use $refs this.$refs.editor.invoke('loadImageFromURL', url, name);
@shubhwebkul shubhwebkul changed the title Getting the inappropriate design. Queries regarding inappropriate design. Feb 22, 2021
@shubhwebkul shubhwebkul changed the title Queries regarding inappropriate design. Queries regarding design. Feb 22, 2021
@lja1018
Copy link
Contributor

lja1018 commented Feb 24, 2021

@shubhwebkul
Thanks for your questions and bug reports.

I want to disable the image upload section (Load), the user will only edit the existing image. Is it possible (provide default image)(https://prnt.sc/103ug67)?

const theme = {
  ...
  'loadButton.backgroundColor': '#fff',
  ...
};

Image is not getting download with a click of the download button. It is just opening in a new tab.

  • It seems to be a bug. Thanks for the report.

How to Remove Toast UI Image Editor logo in the header (https://prnt.sc/103ucn3)

  • It seems that you need to do it with css. Try using tui-image-editor-header-logo class.

How to enable annotations (like long comments and save)

  • I don't understand annotations means. Can I report it again?

How to change the default background color of the Download button (https://prnt.sc/103ucn3)

const theme = {
  ...
  'downloadButton.backgroundColor': '#fdba3b',
  ...
};

https://prnt.sc/103vhex

  • I don't seem to have this option yet. I'll add it next time.

Images are not editable when I use $refs this.$refs.editor.invoke('loadImageFromURL', url, name);

Thank you again for bug reports and questions.

@shubhwebkul
Copy link
Contributor Author

Thanks for your response. I really appreciate your support.

Annotation is something like this:-
http:https://flipbit.co.uk/jquery-image-annotation.html#

@shubhwebkul
Copy link
Contributor Author

shubhwebkul commented Feb 24, 2021

I have few more queries:-

@shubhwebkul
Copy link
Contributor Author

Do we have any update?

@lja1018
Copy link
Contributor

lja1018 commented Mar 3, 2021

@shubhwebkul
Thanks for your questions.

How to enable annotations (like long comments and save)

  • We do not support the image annotation feature.

how to change default color.(https://prnt.sc/105th1g)

  • The default selected color option will be worked on later.

how to add a custom menu here and listen to the event of that menu (https://prnt.sc/1066wvx)

the custom circle is coming on the download and how to make it draggable (https://prnt.sc/106q2up)

  • Did you add a circle using the addShape API? When I tested it, a circle was also added to the downloaded image.

how to listen to the event of adding the text and get its value?

How to draw Bubble with a number (combined dragged also) https://prnt.sc/108pppq

  • For bubble with number, you must use the bubble icon and text together.

How to add custom icon from code (https://prnt.sc/10a0mx3)

  • Registering a custom icon is an action added to provide our ui, and the API is not open.

@shubhwebkul
Copy link
Contributor Author

shubhwebkul commented Mar 4, 2021

@lja1018 Thank you for providing the solutions. Those were really helpful.

Currently, I am using invoke method to add circle shape, but I didn't understand your point when you mentioned you must use the bubble icon and text together

this.$refs.editor.invoke('addShape', 'circle', {
                        fill        : 'red',
                        stroke      : 'blue',
                        strokeWidth : 3,
                        rx          : 20,
                        ry          : 20,
                        left        : 100,
                        top         : 100,
                        isRegular   : false,
})
  • Also, width is not working with addText
    this.$refs.editor.invoke('addText', "1212", { styles: { fill: '#000', fontSize: 50, stroke: 'blue', strokeWidth : 2, fontWeight: 'bold', width: 50, backgroundColor: '#000', isRegular: false, }, position: { x: 95, y: 90 } })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants