Comments (4)
Nice suggestion! I will take a look at this feature ASAP.
Thanks!!!
from datauri.
How do you imagine a user given a string + mime type? Give me examples using the data uri api including the feature that you'd like to see.
Cheers!
from datauri.
Actually there might be situation where you create image dynamically and want to create data uri to pass it as src attribute for image tag
from datauri.
I've just created a method called "format". It may help your need.
https://github.com/heldr/datauri#create-from-a-string
from datauri.
Related Issues (15)
- [FEATURE] Provide image dimensions in class instance HOT 3
- Cannot find module './old/module' HOT 4
- Encode from stream HOT 1
- -
- datauri 3.0 - RFC 🎉 HOT 4
- Cannot use within webpack HOT 11
- If we pass a data URI to `new DataURI` - should we simply return it? HOT 2
- undefined is not an object (evaluating 'version.trim') HOT 1
- TypeScript support HOT 9
- Remove first line! No JS comment! Webpack cant read file HOT 3
- M4A Audio is not handled HOT 3
- please change 'getCSS' to 'getCss' HOT 2
- Allow passing a custom template for the CSS HOT 2
- How to pass an array of files and write in the same css file ? HOT 2
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 datauri.