{"id":23444106,"url":"https://github.com/rphii/c-image-viewer","last_synced_at":"2025-06-11T20:07:27.937Z","repository":{"id":269351038,"uuid":"907139083","full_name":"rphii/c-image-viewer","owner":"rphii","description":"A lightweight image viewer written entirely in C and OpenGL 3.3","archived":false,"fork":false,"pushed_at":"2025-06-06T22:50:29.000Z","size":432,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T23:20:41.303Z","etag":null,"topics":["c","cglm","fast","freetype","glm","image","image-viewer","lightweight","opengl","viewer"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rphii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-22T23:05:05.000Z","updated_at":"2025-06-06T22:50:33.000Z","dependencies_parsed_at":"2024-12-23T00:19:44.494Z","dependency_job_id":"4577d7f0-9761-48c9-b782-971901fab2b9","html_url":"https://github.com/rphii/c-image-viewer","commit_stats":null,"previous_names":["rphii/c-image-viewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rphii/c-image-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rphii%2Fc-image-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rphii%2Fc-image-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rphii%2Fc-image-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rphii%2Fc-image-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rphii","download_url":"https://codeload.github.com/rphii/c-image-viewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rphii%2Fc-image-viewer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259330334,"owners_count":22841610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cglm","fast","freetype","glm","image","image-viewer","lightweight","opengl","viewer"],"created_at":"2024-12-23T18:26:46.143Z","updated_at":"2025-06-11T20:07:27.932Z","avatar_url":"https://github.com/rphii.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# civ - c image viewer. quite lightweight\n\nthe image viewer loads all specified images into memory (and never frees them)\nit will also, once viewed, load them into GPU.\n\n---------------------------------------\n\ndependencies:\n\n- [rphii/rphiic](https://github.com/rphii/rphiic)\n- stb\\_image\n- pthreads\n- cglm\n- opengl\n- freetype\n- glfw\n- (glad - in src)\n- meson (build)\n\nclone:\n\n    git clone https://github.com/rphii/c-image-viewer/\n\nbuild with meson:\n\n    meson setup build   # only need to call once\n    meson compile -C build\n\ninstall with meson:\n\n    meson install -C build\n\nusage:\n\n    civ IMAGE-FILES-HERE\n\nhelp: _(defaults shown will be AFTER loading config and AFTER applying arguments, if any are passed)_\n\n    civ --help\n\ncontrols:\n\n    K                                 : previous image\n    J                                 : next image\n    S                                 : scaling\n    LEFT_SHIFT + S                    : change filter (nearest, linear)\n    MOUSE_LEFT_PAN                    : pan image\n    SCROLL                            : zoom image\n    D                                 : toggle description\n    ARROW_KEY_LEFT  | LEFT_SHIFT + H  : pan left\n    ARROW_KEY_RIGHT | LEFT_SHIFT + J  : pan down\n    ARROW_KEY_UP    | LEFT_SHIFT + K  : pan up\n    ARROW_KEY_DOWN  | LEFT_SHIFT + L  : pan right\n    I | LEFT_SHIFT + AROW_KEY_UP      : zoom in\n    O | LEFT_SHIFT + AROW_KEY_UP      : zoom out\n    Q | ESCAPE                        : quit\n    P                                 : print the filename of the active image to stdout\n\n## Config\n\nfollowing paths get checked for a config file:\n\n    $XDG_CONFIG_HOME/imv/civ.conf\n    $HOME/.config/civ/civ.conf\n    /etc/civ/civ.conf\n\nall options (the ones preceeded with `--`) listed in `--help` can be loaded with a config.\nif e.g. `--help` shows an option `--filter`, the equivalent for the config is `filter = \u003cvalue\u003e`\n\nan example config:\n\n    font-path = /usr/share/fonts/lato/Lato-Regular.ttf\n    font-size = 12\n    show-loaded = false\n    show-description = yes\n    jobs = 4\n    filter = linear\n\n## Wayland\n\nChanging from floating to tiling window can be done via:\n\n    windowrule = tile, title:^civ(\\.out)?$\n\n## Distributions\n\n- [gentoo ebuild](https://github.com/rphii/gentoo-ebuilds/blob/main/media-gfx/civ/civ-9999.ebuild)\n\n##### TODO so I won't forget\n\n- don't load EVERYTHING, but keep some images around the currently active one loaded\n    - CURRENTLY: freeing CPU memory when sent to GPU (as that appears to work?)\n- specify directory, check mime types (magic.h)\n- config file\n    - pan speed\n    - zoom speed\n    - background color\n    - text color\n- fix font - fontconfig ...\n- load font symbols for filename\n- config for key bindings ...\n- better error handling\n- info / verbose\n- make pthreads optional (single core)\n- type numbers -\u003e go-to image\n- wayland - how to set tiling ? -\u003e use wayland window instead of glfw\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frphii%2Fc-image-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frphii%2Fc-image-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frphii%2Fc-image-viewer/lists"}