owncloud/core — pull request #8455 by icewind1991 (2014-05-05 13:00:47+00:00)
Title: Dont create borders around previews when scaling up is disabled

Previously, when requesting a preview that is larger than the source image a border added to the preview to create an image of the requested size even if scaling up is disabled.

This leads to white borders being shown around images in the slideshow (since using previews for slideshows was introduced) and wastes bandwith and disk space with previews that are larger then the original image.

To test: `owncloud/index.php/core/preview.png?file=/path/to/small/image&x=3000&a=true&scalingup=0`

cc @DeepDiver1975 @PVince81 @georgehrke