fix
This commit is contained in:
parent
d0a64c9cd9
commit
55baf54ab1
|
@ -114,7 +114,8 @@ Lib.prototype.generateThumbs = () => {
|
|||
break;
|
||||
case "image/png":
|
||||
case "image/jpeg":
|
||||
cmd = 'convert -thumbnail 256x256 '+e.dest+' -gravity center -crop 128x128+0+0 +repage '+thumbnail;
|
||||
//cmd = 'convert -thumbnail 256x256 '+e.dest+' -gravity center -crop 128x128+0+0 +repage '+thumbnail;
|
||||
cmd = 'convert '+thumbnail+' -resize "200x200^" -gravity center -crop 128x128+0+0 +repage '+thumbnail;
|
||||
break;
|
||||
}
|
||||
exec(cmd, (error) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user