node build fixed

This commit is contained in:
ra_ma
2025-09-20 14:08:38 +01:00
parent c6ebbe069d
commit 3d298fa434
1516 changed files with 535727 additions and 2 deletions

View 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)
}