Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gdk-pixbuf
gdk-pixbuf
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 73
    • Issues 73
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • gdk-pixbufgdk-pixbuf
  • Issues
  • #13

Closed
Open
Opened Oct 29, 2007 by bugzilla-migration@bugzilla-migrationReporter

Provide cairo convenience functions inside libgdkpixbuf

Submitted by Owen Taylor

Link to original bug (#491507)

Description

There are a number of missing cairo/gdk-pixbuf convenience functions:

  • Convert GdkPixbuf to cairo surface
  • Convert cairo surface to GdkPixbuf
  • Load file as cairo surface
  • Save cairo surface to file

I think the best place to put these is in gdk-pixbuf. They (especially the load/save bits) are definitely useful without initializing GTK+, so I don't think putting them inside libgtk or libgdk is a good idea. (People are or should be trained to initialize GTK+ before using functions from GTK+ and GDK)

There is clearly some downside to linking libgdkpixbuf against cairo ... you get an implicit dependency on libX11 and so forth, but because gdk-pixbuf is packaged inside the GTK+ package on most systems, that isn't as big as deal as it might be otherwise.

A separate library doesn't make any sense to me, nor does linking cairo against GdkPixbuf.

Version: git master

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/gdk-pixbuf#13