mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
changed thumbnail and preview to be smaller
This commit is contained in:
parent
f77906e01e
commit
f63cdb3515
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
easyimage = require("easyimage")
|
|
||||||
_ = require("underscore")
|
_ = require("underscore")
|
||||||
metrics = require("./metrics")
|
metrics = require("./metrics")
|
||||||
logger = require("logger-sharelatex")
|
logger = require("logger-sharelatex")
|
||||||
|
@ -29,7 +28,7 @@ module.exports =
|
||||||
dst: destPath
|
dst: destPath
|
||||||
width: 424
|
width: 424
|
||||||
height: 300
|
height: 300
|
||||||
args = "nice convert -flatten -background white -resize 300x -density 300 #{sourcePath} #{destPath}"
|
args = "nice convert -flatten -background white -resize 260x -density 300 #{sourcePath} #{destPath}"
|
||||||
exec args, (err, stdout, stderr)->
|
exec args, (err, stdout, stderr)->
|
||||||
callback(err, destPath)
|
callback(err, destPath)
|
||||||
|
|
||||||
|
@ -42,6 +41,6 @@ module.exports =
|
||||||
dst: destPath
|
dst: destPath
|
||||||
width: 600
|
width: 600
|
||||||
height: 849
|
height: 849
|
||||||
args = "nice convert -flatten -background white -resize 600x -density 300 #{sourcePath} #{destPath}"
|
args = "nice convert -flatten -background white -resize 548x -density 300 #{sourcePath} #{destPath}"
|
||||||
exec args, (err, stdout, stderr)->
|
exec args, (err, stdout, stderr)->
|
||||||
callback(err, destPath)
|
callback(err, destPath)
|
||||||
|
|
Loading…
Reference in a new issue