Open stgogm opened 7 years ago
When resizing an image with a CSP active, the resized image results in stretched and/or malformed images. This is caused by the following line in resize.js:
resize.js
imageElement.setAttribute('style', 'visibility:hidden;position:fixed;z-index:-100000');
This could be solved by allowing a CSP option, maybe ngf-csp="true", to add a class to the element instead of setting the style programmatically.
ngf-csp="true"
I've created a pull request with a working solution in #1921.
When resizing an image with a CSP active, the resized image results in stretched and/or malformed images. This is caused by the following line in
resize.js
:This could be solved by allowing a CSP option, maybe
ngf-csp="true"
, to add a class to the element instead of setting the style programmatically.