{"id":18357049,"url":"https://github.com/gumob/imageextract","last_synced_at":"2025-08-26T15:20:15.082Z","repository":{"id":68352189,"uuid":"158862043","full_name":"gumob/ImageExtract","owner":"gumob","description":"A Swift library to allows you to extract the size of an image without downloading.","archived":false,"fork":false,"pushed_at":"2021-02-08T07:33:46.000Z","size":1577,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T12:40:55.795Z","etag":null,"topics":["bitmap","bytecode","carthage","image-processing","scraping","swift4"],"latest_commit_sha":null,"homepage":"https://gumob.github.io/ImageExtract/","language":"Swift","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/gumob.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}},"created_at":"2018-11-23T17:38:03.000Z","updated_at":"2023-09-07T14:10:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"453a37c4-5b04-4a63-85ba-fd2c1e8a395d","html_url":"https://github.com/gumob/ImageExtract","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gumob/ImageExtract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FImageExtract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FImageExtract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FImageExtract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FImageExtract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gumob","download_url":"https://codeload.github.com/gumob/ImageExtract/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FImageExtract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272233526,"owners_count":24896831,"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-26T02:00:07.904Z","response_time":60,"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":["bitmap","bytecode","carthage","image-processing","scraping","swift4"],"created_at":"2024-11-05T22:12:41.646Z","updated_at":"2025-08-26T15:20:15.071Z","avatar_url":"https://github.com/gumob.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/gumob/ImageExtract)\n[![Build Status](https://travis-ci.com/gumob/ImageExtract.svg?branch=master)](https://travis-ci.com/gumob/ImageExtract)\n[![codecov](https://codecov.io/gh/gumob/ImageExtract/branch/master/graph/badge.svg)](https://codecov.io/gh/gumob/ImageExtract)\n[![Platform](https://img.shields.io/badge/platform-ios%20|%20tvos%20|%20watchos%20|%20osx-lightgrey.svg)](https://github.com/gumob/ImageExtract)\n![Language](https://img.shields.io/badge/Language-Swift%205.0-orange.svg)\n![Language](https://img.shields.io/badge/Language-Swift%204.2-orange.svg)\n![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)\n\n# ImageExtract\nA Swift library to allows you to extract the size of an image without downloading.\n\n## Requirements\n\nImageExtract supports multiple platforms\n- iOS 10.0 or later\n- macOS 10.11 or later\n- Swift 5.0 or later\n\n## Supported image format\n\n- JPEG\n- PNG\n- GIF\n- BMP\n- WebP\n\n## Installation\n\n### Carthage\n\nAdd the following to your `Cartfile` and follow [these instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application).\n\n```\ngithub \"gumob/ImageExtract\"\n```\n\nDo not forget to include WebP.framework. Otherwise it will fail to build the application.\u003cbr/\u003e\n\n\u003cimg src=\"Metadata/carthage-xcode-config.jpg\" alt=\"drawing\" width=\"480\" style=\"width:100%; max-width: 480px;\"/\u003e\n\n\n\u003c!--\n### CocoaPods\n\nTo integrate ImageExtract into your project, add the following to your `Podfile`.\n\n```ruby\nplatform :ios, '10.0'\nuse_frameworks!\n\npod 'ImageExtract'\n```\n--\u003e\n\n## Usage\n\nRead the [usage](https://gumob.github.io/ImageExtract/usage.html) and the [API reference](https://gumob.github.io/ImageExtract/Classes/ImageExtract.html) for detailed information.\n\n### Initialization\n\nJust import ImageExtract framework:\n```swift\nimport ImageExtract\n```\n\n### Synchronous and asynchronous request\n\nGet the size of an image synchronously:\n```swift\nlet url: String = \"https://example.com/image.jpg\"\nlet extractor: ImageExtract = ImageExtract()\nlet result: (size: CGSize, isFinished: Bool) = extractor.extract(url)\nprint(result.size) // (800.0, 600.0)\n```\n\nGet the size of an image asynchronously:\n```swift\nlet url: String = \"https://example.com/image.jpg\"\nlet extractor: ImageExtract = ImageExtract()\nextractor.extract(request) { (url: String?, size: CGSize, isFinished: Bool) in\n    print(size) // (800.0, 600.0)\n}\n```\n\n## Copyright\n\nImageExtract is released under MIT license, which means you can modify it, redistribute it or use it however you like.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumob%2Fimageextract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgumob%2Fimageextract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumob%2Fimageextract/lists"}