{"id":18328918,"url":"https://github.com/dollarshaveclub/imagebutter","last_synced_at":"2025-10-05T23:04:47.400Z","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":28,"default_branch":"master","last_synced_at":"2025-03-30T10:07:38.529Z","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":"2024-10-17T02:34:37.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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471521,"owners_count":20944158,"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":["cocoapods","ios","swift","webp","webp-images"],"created_at":"2024-11-05T19:15:39.034Z","updated_at":"2025-10-05T23:04:42.342Z","avatar_url":"https://github.com/dollarshaveclub.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"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"}