diff --git a/MediaToolkit src/MediaToolkit/CommandBuilder.cs b/MediaToolkit src/MediaToolkit/CommandBuilder.cs index 127936e..5b909ef 100644 --- a/MediaToolkit src/MediaToolkit/CommandBuilder.cs +++ b/MediaToolkit src/MediaToolkit/CommandBuilder.cs @@ -39,6 +39,13 @@ private static string GetThumbnail(MediaFile inputFile, MediaFile outputFile, Co commandBuilder.AppendFormat(" -i \"{0}\" ", inputFile.Filename); commandBuilder.AppendFormat(" -vframes {0} ", 1); + + if (conversionOptions != null + && conversionOptions.CustomWidth != null + && conversionOptions.CustomHeight != null) + { + commandBuilder.AppendFormat(" -s {0}*{1} ", conversionOptions.CustomWidth, conversionOptions.CustomHeight); + } return commandBuilder.AppendFormat(" \"{0}\" ", outputFile.Filename).ToString(); }