{"id":19805706,"url":"https://github.com/remirobert/imagedownloader","last_synced_at":"2025-02-28T12:19:20.808Z","repository":{"id":21799279,"uuid":"25121822","full_name":"remirobert/ImageDownloader","owner":"remirobert","description":"UIImage downloader from url with cache.","archived":false,"fork":false,"pushed_at":"2014-10-13T10:53:11.000Z","size":152,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T06:13:18.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/remirobert.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-10-12T14:34:26.000Z","updated_at":"2016-07-13T02:45:00.000Z","dependencies_parsed_at":"2022-08-17T19:55:23.245Z","dependency_job_id":null,"html_url":"https://github.com/remirobert/ImageDownloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FImageDownloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FImageDownloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FImageDownloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FImageDownloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remirobert","download_url":"https://codeload.github.com/remirobert/ImageDownloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241150244,"owners_count":19918334,"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-11-12T09:05:02.315Z","updated_at":"2025-02-28T12:19:20.769Z","avatar_url":"https://github.com/remirobert.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003eImageDownloader\u003c/h1\u003e\n\u003c/p\u003e\n\nImageDownloader allows you to download image from url on asynchronous thread.\nAll images after download are stored in memory.\nThe next time the image will be loaded from the disk, it's faster ! Very usefull for a photo app, or social app like Facebook.\n\nImageDownloader uses **MD5** for store the image according to the url.\nFor use ImageDownloader, you have to add the following line to your **Bridging Header**:\n\n```Objective-c\n#import \u003cCommonCrypto/CommonCrypto.h\u003e\n```\n\n\n\u003cp align=\"center\"\u003e\n  \u003ch2 align=\"center\"\u003eHow to use it\u003c/h2\u003e\n\u003c/p\u003e\n\nUse the block completion for get the UIImage and do whatever you want with it.\n\n```Swift\nlet urlImage = \"http://fc01.deviantart.net/fs70/i/2014/284/2/0/raiden_by_keprion-d82epij.jpg\"\n\nImageDownloader.downloadImage(urlImage: urlImage) { (imageDownloaded) -\u003e () in\n  imageView.image = imageDownloaded\n}\n```\n\nYou can use a another method for fit the UIImage with a size:\n\n```Swift\nImageDownloader.downloadImageWithSize(urlImage: \"http://fc01.deviantart.net/fs70/i/2014/284/2/0/raiden_by_keprion-d82epij.jpg\", sizeImage: CGSizeMake(200, 200))\n{ (imageDownloaded) -\u003e () in\n  imageView.image = imageDownloaded\n  imageView.contentMode = UIViewContentMode.ScaleAspectFill\n}\n```\n\nYou can use a UIImageView extension for download a image as well. The image will be displayed on the UIImageView automatically after completion.\n\n```Swift\nimageView.downloadImage(\"http://fc01.deviantart.net/fs70/i/2014/284/2/0/raiden_by_keprion-d82epij.jpg\")\n```\n\n\u003ch1 align=\"center\"\u003eAuthor\u003c/h1\u003e\nRémi ROBERT, remirobert33530@gmail.com\n\nImageDownloader 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%2Fremirobert%2Fimagedownloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremirobert%2Fimagedownloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremirobert%2Fimagedownloader/lists"}