Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]Can it compress a tif image of 1GB? #171

Open
Ted-bug opened this issue Sep 5, 2024 · 1 comment
Open

[Help]Can it compress a tif image of 1GB? #171

Ted-bug opened this issue Sep 5, 2024 · 1 comment

Comments

@Ted-bug
Copy link

Ted-bug commented Sep 5, 2024

I want to compress a tif image of 1GB or more, but it always returns unknown format .But it can successfully compress 700MB tif image.

f := "E:\\workPlace\\sys-tool\\example\\baidu\\V24080165.tif"
fs, err := os.Open(f)
if err != nil {
fmt.Println(err)
return
}
img, err := imaging.Decode(fs)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(img.Bounds().Dx())

image

@Ted-bug
Copy link
Author

Ted-bug commented Sep 5, 2024

My tif image's magic is II+.This is different with default format(II* or MM*).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant