{"id":26790,"date":"2022-03-20T00:23:01","date_gmt":"2022-03-20T04:23:01","guid":{"rendered":"https:\/\/www.dannyadam.com\/blog\/?p=26790"},"modified":"2023-07-20T10:56:48","modified_gmt":"2023-07-20T14:56:48","slug":"colortrans","status":"publish","type":"post","link":"https:\/\/www.dannyadam.com\/blog\/2022\/03\/colortrans\/","title":{"rendered":"colortrans"},"content":{"rendered":"\n<p><code>colortrans<\/code> is a <em>color transfer<\/em> Python library that I recently implemented. It includes an assortment of algorithms for transferring the colors from a reference image to a content image while preserving the qualitative appearance of the content image.<\/p>\n\n\n\n<style>\n.flex-wrap {\n  width: 100%;\n  display: flex;\n  max-width: 500px;\n}\n<\/style>\n<div id=\"mobile-gallery\" style=\"padding: 3px\" align=\"center\">\n  <div class=\"flex-wrap\">\n    <div class=\"flex\" style=\"flex: calc(4719\/2714);\">\n      <a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2022\/03\/colortrans_content.jpg\" style=\"text-decoration: none;\">\n        <img decoding=\"async\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2022\/03\/colortrans_content_thumbnail.jpg\">\n      <\/a>\n    <\/div>\n    <div class=\"flex\" style=\"padding-left: 5px; flex: calc(5472\/3648);\">\n      <a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2022\/03\/colortrans_reference.jpg\" style=\"text-decoration: none;\">\n        <img decoding=\"async\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2022\/03\/colortrans_reference_thumbnail.jpg\">\n      <\/a>\n    <\/div>\n  <\/div>\n  <div class=\"flex-wrap\">\n    <div class=\"flex\" style=\"padding-top: 5px; flex: calc(4719\/2714);\">\n      <a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2022\/03\/colortrans_output.jpg\" style=\"text-decoration: none;\">\n        <img decoding=\"async\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2022\/03\/colortrans_output_thumbnail.jpg\">\n      <\/a>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<p>I&#8217;ve written a document, <a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2022\/03\/colortrans.pdf\">colortrans.pdf<\/a>, that describes the implemented algorithms.<\/p>\n\n\n\n<p>The library&nbsp;is <a href=\"https:\/\/pypi.org\/project\/colortrans\/\">available<\/a>&nbsp;on PyPI and can be installed with <em>pip<\/em>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ pip3 install colortrans<\/code><\/pre>\n\n\n\n<p>The source code and documentation is available on GitHub:<br><a href=\"https:\/\/github.com\/dstein64\/colortrans\">https:\/\/github.com\/dstein64\/colortrans<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>colortrans is a color transfer Python library that I recently implemented. It includes an assortment of algorithms for transferring the colors from a reference image to a content image while preserving the qualitative appearance of the content image. I&#8217;ve written a document, colortrans.pdf, that describes the implemented algorithms. The library&nbsp;is available&nbsp;on PyPI and can be [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[91],"class_list":["post-26790","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-color-transfer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1sCC6-6Y6","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/26790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/comments?post=26790"}],"version-history":[{"count":69,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/26790\/revisions"}],"predecessor-version":[{"id":26928,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/26790\/revisions\/26928"}],"wp:attachment":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/media?parent=26790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/categories?post=26790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/tags?post=26790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}