fullscreener icon indicating copy to clipboard operation
fullscreener copied to clipboard

The background is empty when source image has special characters in its name

Open riverside opened this issue 7 years ago • 0 comments

Please note that the parentheses, commas, whitespace characters, single and double quotes appearing in a URI must be escaped with a backslash. This plugin does not escape the image URI. The result is that images are not displayed when are named like this: my-image (1).jpg

The easiest way to fix it is to enclose the image URI with quotes. So, this line:

'background-image' : 'url(' + $image[0].src + ')',

could be replaced with:

'background-image' : 'url("' + $image[0].src + '")',

riverside avatar Mar 11 '17 07:03 riverside