Comments (1)
I don't think your solution is the best because you change the content format from jpg
to png
. This plugin returns only 'jpg' files, so, if you change the file format to png
you will have to check in your ionic project what platform and output (base64 true or false) is used.
Your link to Stack Overflow has the right answer and here is the implemented solution for the jpg
with white background.
from cordova-plugin-image-resizer.
Related Issues (20)
- Please add the fileName(String) option for IOS too. Currently it only supports android and windows HOT 2
- Image proportion HOT 2
- Unable to create compressed file in Android Oreo (8.0) HOT 13
- Mismatch in ID/Package name causing double addition of plugin to package.json HOT 2
- Build failing (Unknown property `ANDROID_EXIFINTERFACES_VERSION`) HOT 18
- Nested FolderName throwing exception HOT 2
- fileName parameter on iOS does not work the way it is documented? HOT 7
- Always execute the error function
- Build failure HOT 4
- Short on Time HOT 1
- build failed Could not find exifinterface.jar HOT 4
- Failed to resize an image on iOS 12.x HOT 1
- Failed to fetch plugin HOT 5
- IOS gives back an empty base64 string
- Version 0.2 isn't avaliable in NPM HOT 3
- base64: true not work in Android, returns file:/// uri scheme HOT 4
- Anyone got this working using cordova-plugin-camera-preview
- Code executes synchronously. Android HOT 2
- rotating camera captured photo by -90 degree and when selected from galary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-image-resizer.