mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
remove blank image
This commit is contained in:
parent
f0673b8f58
commit
84e4d32f72
@ -187,7 +187,9 @@ func LoadImages(path string, options *ImageOptions) ([]*Image, error) {
|
|||||||
|
|
||||||
bar := NewBar(imageCount, "Processing", 1, 2)
|
bar := NewBar(imageCount, "Processing", 1, 2)
|
||||||
for image := range imageOutput {
|
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 {
|
if image.Part == 0 {
|
||||||
bar.Add(1)
|
bar.Add(1)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user