I am developing an application that requires editing an image by converting it into a canvas an the save the changes as an Image. So my doubt is that, can this Data URL be passed along the application and save to local storage of the browser to be produced back as an image when the application is loaded ??
Can Data URL value be passed and stored in Local storage for later use?
619 Views Asked by Hemantsom At
1
There are 1 best solutions below
Related Questions in DATA-URI
- How to determine image format from Base64 encoded string without prefix?
- Inline stylings within SVG elements not applied when using data URI
- How can I open a Data URI in an external browser using Android Jetpack Compose?
- after reading a file as text i can't remake a file from it
- I'm trying to send the base64 dataUrl as payload to the backend, but my function is returning an empty string
- React access <canvas/> ref of a child component
- Does JavaScript not work on data URI pages in WebKit?
- Decode .jpeg image from string
- Function button to take a screenshot and download it as an image file
- SVG gradient works as stand alone HTML but not when embeded in CSS
- Is it possible to make a reversible atob from btoa?
- Certain iOS images fail to POST in Capacitor
- How to treat long Data uri in codes
- MongoParseError: Invalid scheme
- Opening a computed document using window.open() and data: scheme
Related Questions in DATA-URL
- Is there a way to have SVG as data URL that contains an image with source from a non-data URL?
- How to convert multiple images to base64 with canvas
- how to detect the MIME type of data URL
- Saving a data URL from Javascript in PHP through Ajax
- jQuery code not running when putting it on an if statement
- Base64 PDF in new tab shows Blank Page before Refresh
- Barba js - Listen on data Attributes?
- Is it possible to add DataUrl Image in RBPDF?
- Display data URL in WPF
- How to get DataUrl of uploaded image?
- How to compress uploaded image for preview using data:URL format?
- Redirect data:text/html with htaccess
- Drawable to data url in android
- Set base64 value as input type= "file"
- iOS10 WkWebView Data URL decoding failed
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, why not.
Only problem is that canvas creates very large filesizes and local storage has a size limit. For production keep limit the use of local storage to 2,5mb. That should cover most browsers.
A better solution would be to post the data url to a server and retrieve it later.
Check it out yourself, compare filesize of your canvas created png to the filesize of optimized png's data url