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