Skip to content

discere-os/gdk-pixbuf.wasm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@discere-os/gdk-pixbuf.wasm

WebAssembly port of GdkPixbuf - Image loading library for various formats including PNG, JPEG, TIFF, TGA, and GIF.

CI/CD JSR npm version License Status

GdkPixbuf: Image loading library

GdkPixbuf is a library that loads image data in various formats and stores it as linear buffers in memory. The buffers can then be scaled, composited, modified, saved, or rendered.

GdkPixbuf can load image data encoded in different formats, such as:

  • PNG
  • JPEG
  • TIFF
  • TGA
  • GIF

Additionally, you can write a GdkPixbuf loader module and install it into a well-known location, in order to load a file format.

GdkPixbuf is used by the GTK toolkit for loading graphical assets.

Building GdkPixbuf

Requirements

In order to build GdkPixbuf you will need to have installed:

Depending on the image formats you want to support you will also need:

  • libpng's development files
  • libjpeg's development files
  • libtiff's development files

Additionally, you may need:

Building and installing

You should use Meson to configure GdkPixbuf's build, and depending on the platform you will be able to use Ninja, Visual Studio, or XCode to build the project; typically, on most platforms, you should be able to use the following commands to build and install GdkPixbuf in the default prefix:

$ meson setup _build .
$ meson compile -C _build
$ meson install -C _build

You can use Meson's --prefix argument to control the installation prefix at configuration time.

You can also use meson configure from within the build directory to check the current build configuration, and change its options.

Build options

You can specify the following options in the command line to meson:

  • -Dgtk_doc=true - Build the API reference documentation
  • -Drelocatable=true - Enable application bundle relocation support

For a complete list of build-time options, see the file meson_options.txt. You can read about Meson options in general in the Meson manual.

Running tests

You can run the test suite by running meson test -C _build, where _build is the build directory you used during the build stage.

License

GdkPixbuf is released under the terms of the GNU Lesser General Public License version 2.1, or, at your option, any later version. See the COPYING file for further details.

💖 Support This Work

This WebAssembly port is part of a larger effort to bring professional desktop applications to browsers with native performance.

👨‍💻 About the Maintainer: Isaac Johnston (@superstructor) - Building foundational browser-native computing infrastructure through systematic C/C++ to WebAssembly porting.

📊 Impact: 70+ open source WASM libraries enabling professional applications like Blender, GIMP, and scientific computing tools to run natively in browsers.

🚀 Your Support Enables:

  • Continued maintenance and updates
  • Performance optimizations
  • New library ports and integrations
  • Documentation and tutorials
  • Cross-browser compatibility testing

💖 Sponsor this work to help build the future of browser-native computing.

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • C 92.4%
  • Meson 2.8%
  • HTML 1.8%
  • JavaScript 1.0%
  • Python 0.7%
  • TypeScript 0.6%
  • Other 0.7%