NiftyImages JavaScript SDK

The NiftyImages JavaScript SDK works in all major browsers, giving you and your users intuitive tools for creating dynamic images and countdown timers.

View Demo View Documentation

NiftyImages Widget Boilerplate

Integrating NiftyImages in your website can be as simple as copy and paste! Use the following boilerplate to get started.

<!-- Load NiftyImages Code -->
<script type="text/javascript" src="https://widget.niftyimages.com/js/niftywidget.js"></script>

<!-- Instantiate Widget -->
<script type='text/javascript'>
var niftyWidget = new NiftyImages.NiftyWidget({
    widgetKey: 'YOUR WIDGET KEY',           // Required
    userID: 'User ID',                      // Required
    imageName: 'Image Name',                // Required
    appendTo: '',
    theme: 'light',
    fields: [
        ['First Name', '|*FNAME*|'],
        ['Last Name', '|*LNAME*|']
    ],
    onSave: function(newURL) {
        alert(newURL);
    },
    onError: function(errorObj) {
        alert(errorObj.message);
    }
});

</script>

<!-- Personalize an imaage -->
<button type='button' onclick="niftyWidget.personalize('http://widget.niftyimages.com/imgs/ex/1.jpg');">Personalize</button>

<!-- Create a timer -->
<button type='button' onclick="niftyWidget.timer();">Create Timer</button>