question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

addImage createDataURIFromElement/getImageDataFromElement canvas image format

See original GitHub issue

Hello, I noticed something with the version 1.5.3 in addImage createDataURIFromElement where the format parameter is ignored if the nodeName is canvas. In 1.4.1 the format was set depending on this parameter.

Now in recent updates: #2374 the format parameter has been removed which removes the ability to define what format you’d like to specify for the data.

I am working on trying to get a reproducible code snippet but it’s proving difficult as the use case is kind of hard to isolate. However I do think this regresses the behaviour from 1.4.1. What do you think?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Uzlopakcommented, Apr 12, 2019

clone project locally npm run-script build npm start

open in browser http://localhost:8000

Do it again.

1reaction
Uzlopakcommented, Apr 12, 2019

@es11400 This Tuesday MrRio wrote me that today is the day (of release) and I responded, that I found a huge bug (pages lose orientation when starting with landscape mode) and that I want to fix that. Tbh, last release was kind of emberassing. So I want to have a good version this time.

But I am now kind of sure, that most of the bugs are fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

addImage createDataURIFromElement ... - GitHub
Hello, I noticed something with the version 1.5.3 in addImage createDataURIFromElement where the format parameter is ignored if the nodeName ...
Read more >
addImage - Documentation - GitHub Pages
imageData as base64 encoded DataUrl or Image-HTMLElement or Canvas-HTMLElement. format, string. format of file if filetype-recognition fails, e.g. 'JPEG'.
Read more >
How to add image to canvas - javascript - Stack Overflow
You need to wait until the image is loaded before you draw it. Try this instead: var canvas = document.getElementById('viewport'), context = canvas....
Read more >
Using images - Canvas API - MDN Web Docs
External images can be used in any format supported by the browser, such as PNG, GIF, or JPEG. You can even use the...
Read more >
HTML5 add Image Canvas upload image using JavaScript ...
How to use HTML5 with Canvas element uploading an image within the canvas element with coding exampleModern Web Design Beginners HTML CSS ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found