]> source.dussan.org Git - nextcloud-server.git/commit
Don't generate max preview twice
authorRoeland Jago Douma <roeland@famdouma.nl>
Sun, 19 Mar 2017 19:23:23 +0000 (20:23 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 19 Mar 2017 19:23:23 +0000 (20:23 +0100)
commit4cd13e76685f498c4f344bc786ecc8fe2cf91f7a
tree36bd4ee32e18d09f1b2876269b5636ac3a328c25
parent6677963902297d95dd7f73854e2a6b1ea3873a4e
Don't generate max preview twice

If you request a preview of X by Y. And after calculating X and Y are
equal to maxWidth and maxHeight then there is no reason to create a
preview of that size.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Preview/Generator.php