Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • ristretto ristretto
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • AppsApps
  • ristrettoristretto
  • Merge requests
  • !34

Load images asynchronously

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Gaël Bonithon requested to merge Tamaranch/ristretto:async-image-loading into master Oct 24, 2021
  • Overview 0
  • Commits 4
  • Pipelines 5
  • Changes 1

Testing phase.

Closes #16 (closed), #29 (closed), #32 (closed).

Reading files is already handled asynchronously, but data parsing by the pixbuf loader is blocking. Unfortunately, gdk-pixbuf does not offer an asynchronous API that covers both:

  • loading a single image;
  • loading an animation;
  • loading at reduced scale (the "Limit rendering quality" option of Ristretto).

GdkPixbufLoader is the only object to cover all these possibilities in a unified API, in addition to allowing progressive loading (even if the latter is not really used by Ristretto). So it seems easiest to keep the current implementation, adding the asynchronous character "by hand", via a GTask.

Edited Oct 27, 2021 by Gaël Bonithon
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: async-image-loading