I'm developping an mobile application with cordova and ionic and I would like to get the size of the image contained in a string without showing it (no img element in html). I have 2 problem, I've found a solution but with onload event and I don't use jQuery. Is there any working way with angular and ionic?
Angular : get Dimension from Base64 Image
5.1k Views Asked by X4V1 At
1
There are 1 best solutions below
Related Questions in ANGULARJS
- Angular Show All When No Filter Is Supplied
- Using pagination on a table in AngularJS
- State with different subviews
- Getting and passing MVC Model data to AngularJS controller
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- AngularJS, Google App Engine and URLrewrite
- send data from table to another page into forms
- How to write tests for classes with inheritance
- angularJS sending OPTIONS instead of POST
- Receiving POST from external application in AngularJS
- Metaprogramming AngularJS Filters
- Reload List after Closing Modal
- Why is my angularjs site not completely crawlable?
- Why is separation of JavaScript and HTML a good practice?
Related Questions in IMAGE
- Add image to JCheckBoxMenuItem
- Display images on Django Template Site
- How to resize images with PHP PARSE SDK
- Animation in Java on top of JPanel
- Slow performance on ipad erasing image
- What are the pros and cons of the picture element?
- Carrierwave file upload with different file types
- How to use annotorious with angular
- Images not showing when uploaded to server
- ImageView doesn't show up
- Image Resizing adjusts ratio
- Displaying bitmap image on Android (OpenCV)
- Class 'Imagick' not found - PHP and Windows
- Image position - randomly select position
- Replace image 1 with image 2 after 5 sec
Related Questions in SIZE
- can you use c code to read a .txt file size?
- Hiding overflowing element based on its height
- I want to drag an image to my pdf file using itext java
- MySQL error: The maximum column size is 767 bytes
- Increase the maximum size of char array
- Random double free or invalid next_size
- Java Swing JPanel size not working
- Reduce apk size with combine java files
- 1MiB = 1024KiB = 2^10. Nonetheless, why not use just 1000 byte instead 1024 to calculate size?
- Is possible to set hadoop blocksize 24 MB?
- Swift - Checking size of UIImageView
- Objective C - bold and change string text size for drawing text onto pdf
- Predictionio very large task size
- Wordpress select and crop in plugin
- Angular : get Dimension from Base64 Image
Related Questions in BASE64
- Regex to get vCard base64 string (C#)
- writing into file (Converting Base64 to Binary) values Using VFS and ESB 4.8.1
- Can I POST or PUT an image to Django RESTful API using $resource of AngularJs or rather javascript in general?
- Python base32 data decode
- Encode array to base64 in go
- Save Task<string> type to String giving Catastrophic failure
- How to read a Base64 string as a file, on server side, without saving it in web server, directly by PHP?
- Angular base64 video interpolation fail ($sce)
- Gmail API playground: Send method, converted MIME raw header not populating email fields on send
- Convert data to base64 encode in go
- Base64Decode to file - whats missing?
- How can i save base64 to image file on cordova / ionic or upload to server?
- How to save encoded Base64 strings from database, to files, on disk?
- PHP base64 encoding drops incorrect answer
- base64 image open in new tab with fancybox, instead of the classic "popup"
Related Questions in IONIC-FRAMEWORK
- CFBundleDocumentType is not working in myproject-Info.plist file
- ionic build android failure - Execution failed for task processDebugResources
- Android Status Bar Icon Size - Using Cordova / Phonegap Push Plugin
- how to show alert when user scroll to top of div in angular js?
- ionic serve uncaught exception
- Parse.com - setting up push notifications for single users
- Understanding the function of this particular 9 patch image
- CORS in ionic app and django
- How to use embedded Ruby HTML files with Ionic and Cordova
- Ionic cordova build
- Input ng-model not updating in Main view
- ng-click event not getting cleared in Ionic app
- How to show image caption in ionicframework?
- whitelisting a domain in ionic app
- Adding visionmedia/debug to an Ionic/AngularJS application
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 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?
I found the solution :
Extract size from Image loaded
With this way you don't need to use jQuery at all. It is pure JavaScript.