node build fixed
This commit is contained in:
18
seanime-2.9.10/internal/manga/image_size_test.go
Normal file
18
seanime-2.9.10/internal/manga/image_size_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package manga
|
||||
|
||||
import (
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
_ "image/jpeg" // Register JPEG format
|
||||
_ "image/png" // Register PNG format
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetImageNaturalSize(t *testing.T) {
|
||||
// Test the function
|
||||
width, height, err := getImageNaturalSize("https://scans-hot.leanbox.us/manga/One-Piece/1090-001.png")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
spew.Dump(width, height)
|
||||
}
|
||||
Reference in New Issue
Block a user