Transformation UI Customization
Configure language, menus, filters, and adjustments, as well as output file type, name, and format.
Try it yourself:
Using setConfig
you can pass entire configuration object (dictionary) or only part of it.
Result
HTML
CSS
.uploaded-img{
width:300px;
height:auto
}
JavaScript
const apiKey = "YOUR_API_KEY";
const tr = new FilestackTransform(apiKey);
//Customize Transformation UI
tr.setConfig({
editor: {
transforms: {
lockRotation: false,
},
filters: {
// enabled: true - enable all adjustments or false to disable this module
enabled: [
'blackWhite',
'brownie',
'autumn',
'milkyWay',
],
},
adjustments: {
enabled: ['brightness', 'gamma', 'saturation', 'contrast', 'hue', 'noise', 'blur', 'pixelate'],
// enabled: true - enable all adjustments or false to disable this module
},
},
output: {
format: 'png',
quality: 1,
blob: false, // export file as blob or url
name: null, // output file name if null name will be extracted from url or file element
},
});
// apply listener with Transformations UI on input file change
document.querySelector('#demoFile').addEventListener('change', (res) => {
tr.open(res.target.files[0]).then(res => {
document.getElementById('result').src = res;
storeImg(res);
});
});
function storeImg(res){
console.log(res);
}
Related Examples:
Start building your own file upload solution today.
PREVIEW
Users can preview their uploaded files directly inside the File Picker.
CONNECT TO 20+ CLOUD DRIVES
Connect your app directly to AWS, Facebook, Dropbox, Instagram, and more.
PROGRESS BAR UPLOADS
Give your users confidence that their files are on the way to the right destination.
MULTI-FILE UPLOADS
Let your users upload multiple files at one time for speed and simplicity.
CUSTOM CSS
Filestack blends seamlessly into your website or app. Ask about white-labeling.
CLIENT-SIDE CROP
Users can crop files to perfection before sending them to your website or app.
UNLIMITED UPLOADING
Upload any file type, from any local or cloud source, at any scale.
WEBSITES & HTML
Filestack can even load web content from any public URL and capture the rendered page as an image. Perfect for generating screenshots, previews, or converting HTML-based content into other formats.
SECURE CLOUD STORAGE
Store uploads directly in your cloud storage for ease and accessibility.
"Being smart here, in my opinion, is seriously looking at Filestack to give you a fantastic uploading experience, while you spend your time on your product vision, not already-solved problems."
— CHRIS COYIER, FOUNDER OF CSS-TRICKS & CODEPEN