Skip to content
Snippets Groups Projects
Unverified Commit c52f252b authored by roadscape's avatar roadscape Committed by GitHub
Browse files

Merge pull request #119 from quochuy/autorotate_images

Fix tslint errors
parents cb47e1c0 df38c7a5
No related branches found
No related tags found
No related merge requests found
...@@ -325,7 +325,7 @@ export async function proxyHandler(ctx: KoaContext) { ...@@ -325,7 +325,7 @@ export async function proxyHandler(ctx: KoaContext) {
if (!width) { width = maxWidth } if (!width) { width = maxWidth }
if (!height) { height = maxHeight } if (!height) { height = maxHeight }
image.rotate().resize(width, height).max().withoutEnlargement() image.rotate().resize(width, height, { fit: 'inside', withoutEnlargement: true })
break break
} }
......
...@@ -286,10 +286,10 @@ ...@@ -286,10 +286,10 @@
"@types/express-serve-static-core" "*" "@types/express-serve-static-core" "*"
"@types/mime" "*" "@types/mime" "*"
"@types/sharp@^0.17.6": "@types/sharp@^0.21.0":
version "0.17.10" version "0.21.3"
resolved "https://registry.yarnpkg.com/@types/sharp/-/sharp-0.17.10.tgz#4f546861c53fae2b1bffcdd1ae7e691cc68afa52" resolved "https://registry.yarnpkg.com/@types/sharp/-/sharp-0.21.3.tgz#82f89f99536557e397c0c46f5ea50dcc1529fe35"
integrity sha512-nISitptrYm6hUpiC+vN21cbT8Of54TubXY95N+pcqNCmmXZqd1hRk7fC5HYRRQwWJiKV/NLHx8f4CxPIsIQXqg== integrity sha512-wgCw1OO/iQ3w13WVRhx1fHoo5NDHq+444wqTnKcAWA9YMj1a9stoLlfLjW1mJJkFG1aRjeKd9KYhiYOJ3H7qEg==
dependencies: dependencies:
"@types/node" "*" "@types/node" "*"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment