You can download the latest version from the GitHub repository:
https://github.com/workeffortwaste/consoleimg/<script src="consoleimg.min.js"></script> <script> consoleimg.load('image.jpg', {size: 320, color: '#FFFFFF'}) </script>
All image formats that are supported by CSS background-image should work without issue, including SVGs with animation.
Yes, that does include animated .gifs.
Yes, it also means you could do *that*.
Look at this site's developer console to see an animated SVG example, otherwise use the tool below to instantly see how your images will look in the developer console.
Sorry :-(
The image request uses the fetch API asynchronously, unless you're loading large images there shouldn't be a significant impact.
By default the images will still be downloaded. It's up to you to decide if you want to detect for a mobile device and not push the image to the console.
I did, you can find me on Twitter for more nonsense like this.
@defaced