FEATURE allow force resampling on images
Better encoding of javascript
Fixes #2988
Merge pull request #3269 from tractorcow/pulls/3.1/convert-js-enhancements

Better encoding of javascript
Merge pull request #3265 from stevie-mayhew/images-force-resample

FEATURE allow force resampling on images