{"id":1482,"url":"https://github.com/dollarshaveclub/ImageButter","last_synced_at":"2025-08-02T04:31:22.060Z","repository":{"id":56915365,"uuid":"41935124","full_name":"dollarshaveclub/ImageButter","owner":"dollarshaveclub","description":"Makes dealing with images buttery smooth.","archived":false,"fork":false,"pushed_at":"2020-06-26T18:10:33.000Z","size":644,"stargazers_count":392,"open_issues_count":4,"forks_count":18,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-07-30T01:57:45.532Z","etag":null,"topics":["cocoapods","ios","swift","webp","webp-images"],"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/dollarshaveclub.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":"2015-09-04T19:55:47.000Z","updated_at":"2025-05-12T08:48:22.000Z","dependencies_parsed_at":"2022-08-21T03:50:28.330Z","dependency_job_id":null,"html_url":"https://github.com/dollarshaveclub/ImageButter","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/dollarshaveclub/ImageButter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarshaveclub%2FImageButter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarshaveclub%2FImageButter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarshaveclub%2FImageButter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarshaveclub%2FImageButter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dollarshaveclub","download_url":"https://codeload.github.com/dollarshaveclub/ImageButter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarshaveclub%2FImageButter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334611,"owners_count":24233793,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cocoapods","ios","swift","webp","webp-images"],"created_at":"2024-01-05T20:15:47.483Z","updated_at":"2025-08-02T04:31:21.710Z","avatar_url":"https://github.com/dollarshaveclub.png","language":"C","funding_links":[],"categories":["Media","HarmonyOS","UI"],"sub_categories":["Image","Windows Manager","Other free courses"],"readme":"# ImageButter\n Image viewer for iOS that supports WebP. What is WebP? Find out more [here](https://developers.google.com/speed/webp/).\n \n You can find more about why we created this [here](http://engineering.dollarshaveclub.com/shaving-our-image-size/).\n\n## Features\n\n- Animated WebP images support\n- Remote fetching and caching\n- Avoids duplicated requests\n- Async decoding\n- Loading/progress view\n- Animated GIFs\n- PNG/JPG/other standard iOS formats\n\n## Example\n\n```objc\nWebPImageView *imgView = [[WebPImageView alloc] initWithFrame:CGRectMake(0, 30, 300, 300)];\n[self.view addSubview:imgView];\nimgView.url = [NSURL URLWithString:@\"https://yourUrl/imageName@3x.webp\"];\n\n//load from disk\n//NSString *path = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@\"randomImage.webp\"];\n//imgView.url = [NSURL fileURLWithPath:path];\n\n//add the loading View.\nWebPLoadingView *loadingView = [[WebPLoadingView alloc] init];\nloadingView.lineColor = [UIColor orangeColor];\nloadingView.lineWidth = 8;\n//add the loading view to the imageView.\nimgView.loadingView = loadingView;\n//if you want to add some inset on the image.\nCGFloat pad = 20;\nimgView.loadingInset = UIEdgeInsetsMake(pad, pad, pad*2, pad*2);\n```\nThat will fetch the image, cache it, and decoding it all asynchronously. It will show a progress view showing the total download and display time. The can see the value of it being a WebP image here:\n\n![graph](https://raw.githubusercontent.com/dollarshaveclub/ImageButter/assets/image-size-graph.jpg)\n\n## Requirements ##\n\nImageButter requires at least iOS 7 or above. \nDependencies are ImageIO, MobileCoreServices, CoreGraphics, and CommonCrypto.\n\n## Installation\n\n### CocoaPods\n\nCheck out [Get Started](https://guides.cocoapods.org/using/getting-started.html) tab on [cocoapods.org](http://cocoapods.org/).\n\nInstall CocoaPods if not already available:\n\n\t$ [sudo] gem install cocoapods\n\t$ pod setup\n\nTo use ImageButter in your project add the following 'Podfile' to your project\n\n\tsource 'https://github.com/CocoaPods/Specs.git'\n\tplatform :ios, '9.0'\n\tpod 'ImageButter'\n\nThen run:\n\n    pod install\n\n## Tests\n\nOne of our TODOs. We would mighty appreciate any PRs in this department.\n\t\n## License\n\nImageButter is Copyright (c)2016, Dollar Shave Club, INC. It is free software, and may be redistributed under the terms specified in the LICENSE file (MIT License).\n\n## Contact\n\n### Dollar Shave Club\n\n* https://www.dollarshaveclub.com\n* https://github.com/dollarshaveclub\n* http://engineering.dollarshaveclub.com\n\n\n### Dalton Cherry\n* https://github.com/daltoniam\n* http://twitter.com/daltoniam\n* http://daltoniam.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdollarshaveclub%2FImageButter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdollarshaveclub%2FImageButter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdollarshaveclub%2FImageButter/lists"}