Skip to content

feat(image): use cairo conversion for png images, reduce pixbuf overhead#45

Merged
OldUser101 merged 1 commit intomainfrom
OldUser101/push-tplylwtonwwx
Jan 22, 2026
Merged

feat(image): use cairo conversion for png images, reduce pixbuf overhead#45
OldUser101 merged 1 commit intomainfrom
OldUser101/push-tplylwtonwwx

Conversation

@OldUser101
Copy link
Owner

  • cairo natively supports png images, so create cairo surfaces from them directly, instead of going through pixbuf, which is wasteful.
  • add detect_png utility function to determine if a file is png based on file signature

closes #44

- cairo natively supports png images, so create cairo surfaces from
    them directly, instead of going through pixbuf, which is wasteful.
- add `detect_png` utility function to determine if a file is png based
    on file signature

closes #44
@OldUser101 OldUser101 merged commit afb71c5 into main Jan 22, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

Load PNG image files via Cairo directly, instead of going through GDK-Pixbuf

1 participant