remove blank image

This commit is contained in:
Celogeek 2023-01-16 08:58:09 +01:00
parent f0673b8f58
commit 84e4d32f72
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -187,7 +187,9 @@ func LoadImages(path string, options *ImageOptions) ([]*Image, error) {
bar := NewBar(imageCount, "Processing", 1, 2)
for image := range imageOutput {
images = append(images, image)
if !(options.NoBlankPage && image.Width == 1 && image.Height == 1) {
images = append(images, image)
}
if image.Part == 0 {
bar.Add(1)
}