{"id":18147437,"url":"https://github.com/thestaticturtle/php-gpf","last_synced_at":"2025-04-06T21:27:54.600Z","repository":{"id":236995232,"uuid":"792021517","full_name":"TheStaticTurtle/php-gpf","owner":"TheStaticTurtle","description":"PHP extension for decoding the PGF image","archived":false,"fork":false,"pushed_at":"2024-04-29T12:55:01.000Z","size":1645,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T15:53:37.679Z","etag":null,"topics":["image","pgf","php-extension","php8"],"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/TheStaticTurtle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-04-25T20:27:29.000Z","updated_at":"2024-10-13T11:44:47.000Z","dependencies_parsed_at":"2024-04-29T15:38:07.104Z","dependency_job_id":null,"html_url":"https://github.com/TheStaticTurtle/php-gpf","commit_stats":null,"previous_names":["thestaticturtle/php-gpf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheStaticTurtle%2Fphp-gpf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheStaticTurtle%2Fphp-gpf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheStaticTurtle%2Fphp-gpf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheStaticTurtle%2Fphp-gpf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheStaticTurtle","download_url":"https://codeload.github.com/TheStaticTurtle/php-gpf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247553166,"owners_count":20957420,"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":["image","pgf","php-extension","php8"],"created_at":"2024-11-01T22:06:33.083Z","updated_at":"2025-04-06T21:27:54.577Z","avatar_url":"https://github.com/TheStaticTurtle.png","language":"C++","readme":"# PHP-PGF\n\nThis repository is a PHP extension for decoding the [PGF](https://en.wikipedia.org/wiki/Progressive_Graphics_File) image format to either their raw bitmap form or directly re-encoded to PNG for ease of use.\n\nThe main goal of this library was to provide a simple way of fetching the thumbnails from a shared [digiKam](https://en.wikipedia.org/wiki/Digikam) database directly from said database instead of re-generating them.\n\nAs of now only these function used for decode are implemented:\n  - `pgf_decode_to_rgba(string $pgfData, int $level = 0): string`\n  - `pgf_decode_to_png(string $pgfData, int $level = 0): string`\n\nAs this extension was written purely for decoding images, I am not planing to implement the encode functions for now, if someone wants to, PRs are appreciated!\n\nThis extension depends on:\n  - [libpgf](https://github.com/TheStaticTurtle/libpgf) (tested with `7.21.7`) \n  - [lodepng](https://github.com/lvandeve/lodepng) (tested with `ed3c5f1`)\n\n\nSome checks were done to ensure that it wil not crash everything if an invalid use case is detected but please note that while libpgf does use c++ excpetions that are catchable it also contains calls to `assert` which will crash the php executable if reached.\n\nThe library has been successfully tested to decode digiKam thumbnails with:\n  - `PHP-8.2-Win32-TS`\n  - `PHP-8.1-Win32-NTS`\n  - `PHP-8.3-Win32-NTS`\n\nLinux build has not been tested!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthestaticturtle%2Fphp-gpf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthestaticturtle%2Fphp-gpf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthestaticturtle%2Fphp-gpf/lists"}