mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 07:42:37 +02:00
with compressed files, size should be ok
This commit is contained in:
parent
f794b37c18
commit
3f6de1b0ea
@ -265,7 +265,7 @@ func (e *EPub) GetParts() []*EpubPart {
|
||||
}
|
||||
|
||||
maxSize := e.LimitMb * 1024 * 1024
|
||||
currentSize := 512*1024 + len(cover.Data)
|
||||
currentSize := len(cover.Data)
|
||||
currentImages := make([]*Image, 0)
|
||||
part := 1
|
||||
|
||||
@ -276,7 +276,7 @@ func (e *EPub) GetParts() []*EpubPart {
|
||||
Images: currentImages,
|
||||
})
|
||||
part += 1
|
||||
currentSize = 512*1024 + len(cover.Data)
|
||||
currentSize = len(cover.Data)
|
||||
currentImages = make([]*Image, 0)
|
||||
}
|
||||
currentSize += len(img.Data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user