mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-14 12:38:50 +02:00
fix(webp): fix the actual maximum limit
This commit is contained in:
@@ -21,6 +21,11 @@ func TestConvertChapter(t *testing.T) {
|
||||
genTestChapter: genBigPages,
|
||||
split: true,
|
||||
},
|
||||
{
|
||||
name: "Big Pages, no split",
|
||||
genTestChapter: genBigPages,
|
||||
split: false,
|
||||
},
|
||||
{
|
||||
name: "No split pages",
|
||||
genTestChapter: genSmallPages,
|
||||
@@ -87,7 +92,7 @@ func genBigPages(path string) (*manga.Chapter, error) {
|
||||
|
||||
var pages []*manga.Page
|
||||
for i := 0; i < 5; i++ { // Assuming there are 5 pages for the test
|
||||
img := image.NewRGBA(image.Rect(0, 0, 300, 10000))
|
||||
img := image.NewRGBA(image.Rect(0, 0, 300, 17000))
|
||||
buf := new(bytes.Buffer)
|
||||
err := jpeg.Encode(buf, img, nil)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user