-
Notifications
You must be signed in to change notification settings - Fork 39
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
using markerArea.renderState(oldState) my image lose quality #174
Comments
Are you setting rendering options according to your needs? Doesn't look like you do based on the provided sample. Hope this helps. |
with this.imgElement.src = e.target.result;
|
Not sure about the sequence of events here, but you should try to open the same instance after calling Try creating a |
everything is here. open() {
|
|
ok so i misunderstood how to use it. my use case is, show the old state when i enter in the page, but i can still edit it |
Yeah, so if you don't store the rendered image anywhere, you may use |
Just wanted to drop a quick thank you for all your help with my issue. Your effort didn't go unnoticed, and I really appreciate it |
Hi. I am facing this issue in a React app. At first I was using useRef to reuse the markerArea but the old state was shown but not editable. Then switched to creating a new instance on click but it still has the same issue. I realized that it shows a saved image after looking at the network tab in browser console. May I know how you were able to achieve this? TIA. |
I realized the main issue. The image src is being set to event.dataUrl. So the original image is not kept and replaced with the annotated version. I removed this part and it works correctly but had to use two image tags using the same ref to make it work. |
hello everybody , i'm using "markerjs2": "^2.31.4", with angular 15
and my code is this
ngAfterViewInit(): void {
}
and html is
<img id="ciccio" [height]="250" [width]="250" (click)="open()">
but when i restore the old state it seems that my picture lose quality, but when i open and edit it without renderState the quality stays good
do you know why? and how can i fix it?
thanks
The text was updated successfully, but these errors were encountered: