Skip to content

Commit

Permalink
Merge pull request #52 from symbolss/main
Browse files Browse the repository at this point in the history
reset buf before decode from ipaPng
  • Loading branch information
iineva authored Jan 20, 2025
2 parents 5d9e253 + c11a51a commit 37922da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ipa/ipa.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ func parseIconImage(iconFile *zip.File) (image.Image, error) {
img, err := png.Decode(buf)
if err != nil {
// try fix to std png
if _, err := buf.Seek(0, 0); err != nil{
return nil, err
}
cgbi, err := ipaPng.Decode(buf)
if err != nil {
return nil, err
Expand Down

0 comments on commit 37922da

Please sign in to comment.