{"id":14068087,"url":"https://github.com/zumbov2/colorizer","last_synced_at":"2025-08-03T18:32:09.307Z","repository":{"id":56935465,"uuid":"306308869","full_name":"zumbov2/colorizer","owner":"zumbov2","description":"An R wrapper for the DeOldify image colorization API on DeepAI.","archived":false,"fork":false,"pushed_at":"2020-11-09T22:29:04.000Z","size":19243,"stargazers_count":21,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T15:19:06.974Z","etag":null,"topics":["colorization","deoldify","image","rstats-package"],"latest_commit_sha":null,"homepage":"https://deepai.org/machine-learning-model/colorizer","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zumbov2.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":"2020-10-22T11:01:31.000Z","updated_at":"2025-02-10T21:22:10.000Z","dependencies_parsed_at":"2022-08-21T05:50:13.873Z","dependency_job_id":null,"html_url":"https://github.com/zumbov2/colorizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zumbov2/colorizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2Fcolorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2Fcolorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2Fcolorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2Fcolorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zumbov2","download_url":"https://codeload.github.com/zumbov2/colorizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumbov2%2Fcolorizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268594187,"owners_count":24275733,"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-03T02:00:12.545Z","response_time":2577,"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":["colorization","deoldify","image","rstats-package"],"created_at":"2024-08-13T07:05:56.266Z","updated_at":"2025-08-03T18:32:08.249Z","avatar_url":"https://github.com/zumbov2.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/colorizer)](https://cran.r-project.org/package=colorizer)\n![Lifecycle](https://img.shields.io/badge/lifecycle-maturing-orange.svg)\n[![Build Status](https://travis-ci.org/zumbov2/colorizer.svg?branch=master)](https://travis-ci.org/zumbov2/colorizer)\n[![cranlogs](https://cranlogs.r-pkg.org/badges/grand-total/colorizer)](http://cran.rstudio.com/web/packages/colorizer/index.html)\n\n# colorizer\nThis R package is an interface to the awesome [DeOldify image colorization API](https://github.com/jantic/DeOldify) on [DeepAI](https://deepai.org/machine-learning-model/colorizer), providing the possibility to **colorize and restore old images**. More about the NoGAN learning method used to train DeOldify can be found [here](https://www.fast.ai/2019/05/03/decrappify/).\n \nThe default api-key can be used to make a **few requests**. After [registration on DeepAI](https://deepai.org/), around **5000 requests** are currently (Oct 2020) possible within the **free service**.\n\n## Installation\nVersion 0.1.0 is on CRAN and can be installed as follows:\n```r\ninstall.packages(\"colorizer\")\n```\nInstall from GitHub for a regularly updated version (latest: 0.1.0):\n```r\ninstall.packages(\"devtools\")\ndevtools::install_github(\"zumbov2/colorizer\")\n```\n# Functions\nThe package provides **three functions/verbs**: `colorize()` to perform API requests, `juxtapose()` to create different comparisons of original and colorized images, and `clsave()` to save colorized images and comparisons.\n\n## Examples\n### Breadfruit, approx. 1870\n```r\n# API call\ncolorizer::colorize(\n  img = \"https://upload.wikimedia.org/wikipedia/commons/9/9e/Breadfruit.jpg\", \n  key = my_key\n  ) %\u003e%\n  \n  # Saving colorized image\n  colorizer::clsave(destfile = \"colorized.png\") %\u003e% \n  \n  # Comparing colorized image to original\n  colorizer::juxtapose(type = \"side-by-side\") %\u003e% \n  \n  # Saving comparsion\n  colorizer::clsave(destfile = \"comparison.png\") \n ```\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/colorized.png\" width=\"300\"\u003e  \n\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comaprison.png\" width=\"600\"\u003e  \n\n### Children, 1920s\n```r\ncolorizer::colorize(\n  img = \"https://cdn.pixabay.com/photo/2013/02/13/22/38/children-81487_1280.jpg\", \n  key = my_key,\n  ) %\u003e% \n  juxtapose(\"side-by-side\") %\u003e% \n  clsave(\"children1920.jpg\")\n ```\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/children1920.jpg\" width=\"600\"\u003e  \n\n### My Grandpa, 1936\n```r\ncolorizer::colorize(\n  img = \"diskus1936.jpg\", \n  key = my_key\n  ) %\u003e%\n  colorizer::juxtapose(\"side-by-side\") %\u003e% \n  colorizer::clsave(\"HansZumbach.jpg\") \n ```\n\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/HansZumbach.jpg\" width=\"600\"\u003e  \n\n### John Wayne and Gail Russell, 1940s\n```r\ncolorizer::colorize(\n  img = \"https://cdn.pixabay.com/photo/2014/07/16/03/49/john-wayne-394468_1280.jpg\", \n  key = my_key\n  ) %\u003e%\n  colorizer::juxtapose(\"side-by-side\") %\u003e% \n  colorizer::clsave(\"Wayne-Russel.jpg\") \n ```\n\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/Wayne-Russel.jpg\" width=\"600\"\u003e  \n  \n## Types of juxtaposition\nThe comparisons are made using the [magick package](https://github.com/ropensci/magick) – for platform-specific dependencies please see the section [Installation](https://github.com/ropensci/magick#Installation). The following **juxtaposition types** are currently available:\n\n### `type = \"side-by-side\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison1.png\" width=\"150\"\u003e  \n\n### `type = \"stacked\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison2.png\" width=\"150\"\u003e  \n\n### `type = \"c-focus\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison3.png\" width=\"150\"\u003e  \n\n### `type = \"h-focus\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison4.png\" width=\"150\"\u003e \n\n### `type = \"v-focus\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison5.png\" width=\"150\"\u003e \n\n### `type = \"h-split\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison6.png\" width=\"150\"\u003e \n\n### `type = \"v-split\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison7.png\" width=\"150\"\u003e \n\n### `type = \"d-split\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison8.png\" width=\"150\"\u003e \n\n### `type = \"u-animate\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison9.gif\" width=\"150\"\u003e \n\n### `type = \"s-animate\"`\n\u003cimg src=\"https://github.com/zumbov2/colorizer/blob/master/img/comparison10.gif\" width=\"150\"\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzumbov2%2Fcolorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzumbov2%2Fcolorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzumbov2%2Fcolorizer/lists"}