{"id":13546394,"url":"https://github.com/mattt/WebPImageSerialization","last_synced_at":"2025-04-02T18:30:48.119Z","repository":{"id":14517189,"uuid":"17231076","full_name":"mattt/WebPImageSerialization","owner":"mattt","description":"Complete WebP Support for iOS, with Functions, NSJSONSerialization-style Class, and (Optional) UIImage Swizzling","archived":true,"fork":false,"pushed_at":"2021-04-06T17:44:16.000Z","size":6218,"stargazers_count":282,"open_issues_count":0,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-08T05:16:42.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mattt.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}},"created_at":"2014-02-27T00:32:46.000Z","updated_at":"2024-10-29T16:33:39.000Z","dependencies_parsed_at":"2022-08-27T10:01:23.895Z","dependency_job_id":null,"html_url":"https://github.com/mattt/WebPImageSerialization","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FWebPImageSerialization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FWebPImageSerialization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FWebPImageSerialization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FWebPImageSerialization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/WebPImageSerialization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246869657,"owners_count":20847171,"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":[],"created_at":"2024-08-01T12:00:36.493Z","updated_at":"2025-04-02T18:30:45.306Z","avatar_url":"https://github.com/mattt.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# WebPImageSerialization\n\n`WebPImageSerialization` encodes and decodes between `UIImage`\nand [WebP](https://developers.google.com/speed/webp/) images,\nfollowing the API conventions of Foundation's `NSJSONSerialization` class.\n\nBy default, `UIImage` initializers can't decode animated images from GIF files.\nThis library uses swizzling to provide this functionality for you.\nTo opt out of this behavior,\nset `WEBP_NO_UIIMAGE_INITIALIZER_SWIZZLING` in your build environment.\nIf you're using CocoaPods,\nyou can add this build setting to your `Podfile`:\n\n```ruby\npost_install do |r|\n  r.pods_project.targets.each do |target|\n    if target.name == 'WebPImageSerialization' then\n      target.build_configurations.each do |config|\n        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||=\n          ['$(inherited)', 'WEBP_NO_UIIMAGE_INITIALIZER_SWIZZLING=1']\n      end\n    end\n  end\nend\n```\n\n## Usage\n\n### Decoding\n\n```objective-c\nUIImageView *imageView = ...;\nimageView.image = [UIImage imageNamed:@\"image.webp\"];\n```\n\n### Encoding\n\n```objective-c\nNSData *data = UIImageWebPRepresentation(imageView.image);\n```\n\n---\n\n## Contact\n\nMattt ([@mattt](https://twitter.com/mattt))\n\n## License\n\nWebPImageSerialization is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FWebPImageSerialization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2FWebPImageSerialization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FWebPImageSerialization/lists"}