support thumbnails in file managers

This commit is contained in:
Milan Nikolic
2016-01-22 17:17:43 +01:00
parent 68e868944b
commit 2c5bc9e21d
6 changed files with 39 additions and 10 deletions

View File

@@ -77,6 +77,7 @@ func parseFlags() (cbconvert.Options, []string) {
thumbnail := kingpin.Command("thumbnail", "Extract cover thumbnail (freedesktop spec.)")
thumbnail.Arg("args", "filename or directory").Required().ExistingFilesOrDirsVar(&args)
thumbnail.Flag("outfile", "Output file").Default("").StringVar(&opts.Outfile)
thumbnail.Flag("width", "Image width").Default(strconv.Itoa(0)).IntVar(&opts.Width)
thumbnail.Flag("height", "Image height").Default(strconv.Itoa(0)).IntVar(&opts.Height)
thumbnail.Flag("fit", "Best fit for required width and height").BoolVar(&opts.Fit)

View File

@@ -3,13 +3,13 @@
{
"FileVersion": {
"Major": 0,
"Minor": 5,
"Minor": 6,
"Patch": 0,
"Build": 0
},
"ProductVersion": {
"Major": 0,
"Minor": 5,
"Minor": 6,
"Patch": 0,
"Build": 0
},
@@ -24,14 +24,14 @@
"Comments": "Comic Book converter",
"CompanyName": "",
"FileDescription": "CBconvert CLI",
"FileVersion": "0.5.0",
"FileVersion": "0.6.0",
"InternalName": "",
"LegalCopyright": "",
"LegalTrademarks": "",
"OriginalFilename": "cbconvert.exe",
"PrivateBuild": "",
"ProductName": "CBconvert",
"ProductVersion": "0.5.0",
"ProductVersion": "0.6.0",
"SpecialBuild": ""
},
"VarFileInfo":