We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I pass in a gif url to find the duration of the gif in a new create-react-app.
Any help would be greatly appreciated
The text was updated successfully, but these errors were encountered:
gify.js
jdataview.js
copy-webpack-plugin
output
<script>
index.html
<script src="./assets/js/gify.min.js"></script>
example.html
const getGifInfo = async file => { return new Promise((resolve, reject) => { const reader = new FileReader() reader.onload = event => { const URL = window.URL || window.webkitURL const blob = new Blob([event.target.result]) const blobURL = URL.createObjectURL(blob) const img = new Image() img.src = blobURL img.onload = () => { const gifInfo = window.gify.getInfo(reader.result) resolve(gifInfo) } img.onerror = event => { reject(event) } } reader.readAsArrayBuffer(file) }) }
Sorry, something went wrong.
No branches or pull requests
How do I pass in a gif url to find the duration of the gif in a new create-react-app.
Any help would be greatly appreciated
The text was updated successfully, but these errors were encountered: