1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Center to 48x48

This commit is contained in:
Reinhard Pointner 2019-05-05 00:35:11 +07:00
parent ea583295f3
commit b7339a711b

View File

@ -24,7 +24,7 @@ File getThumbnailPath(db, id) {
void createThumbnail(original, thumb) {
thumb.dir.mkdirs()
execute 'convert', original, '-strip', '-thumbnail', '48x48>', 'PNG8:' + thumb
execute 'convert', original, '-thumbnail', '48x48', '-gravity', 'center', '-background', 'transparent', '-extent', '48x48', 'PNG8:' + thumb
}