{"id":4504,"date":"2017-01-27T23:22:03","date_gmt":"2017-01-27T15:22:03","guid":{"rendered":"http:\/\/1darray.com\/blog\/?p=4504"},"modified":"2017-01-27T23:22:03","modified_gmt":"2017-01-27T15:22:03","slug":"using-imagemagick-with-unity","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2017\/01\/27\/using-imagemagick-with-unity\/","title":{"rendered":"Using ImageMagick with Unity"},"content":{"rendered":"<div id=\"attachment_4506\" style=\"width: 610px\" class=\"wp-caption alignnone\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4506\" data-attachment-id=\"4506\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2017\/01\/27\/using-imagemagick-with-unity\/communications\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/01\/FujiFilmFinePixS1Pro-watermark.jpg?fit=600%2C400&amp;ssl=1\" data-orig-size=\"600,400\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0.64&quot;,&quot;credit&quot;:&quot;Ian Britton&quot;,&quot;camera&quot;:&quot;FinePixS1Pro&quot;,&quot;caption&quot;:&quot;Communications&quot;,&quot;created_timestamp&quot;:&quot;1026575908&quot;,&quot;copyright&quot;:&quot;ian Britton - FreeFoto.com&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;Communications&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Communications\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Communications&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/01\/FujiFilmFinePixS1Pro-watermark.jpg?fit=600%2C400&amp;ssl=1\" class=\"size-full wp-image-4506\" src=\"https:\/\/i0.wp.com\/1darray.com\/blog\/wp-content\/uploads\/2017\/01\/FujiFilmFinePixS1Pro-watermark.jpg?resize=600%2C400\" alt=\"\" width=\"600\" height=\"400\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/01\/FujiFilmFinePixS1Pro-watermark.jpg?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/01\/FujiFilmFinePixS1Pro-watermark.jpg?resize=300%2C200&amp;ssl=1 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><p id=\"caption-attachment-4506\" class=\"wp-caption-text\"><em>(result image: add watermark\/logo stamp to image)<\/em><\/p><\/div>\n<p>Using ImageMagick with Unity is now possible with the .NET wrapper (<a href=\"https:\/\/github.com\/dlemstra\/Magick.NET\/\" target=\"_blank\">github<\/a>)<\/p>\n<h3><strong>Tutorial: Add watermark to image<br \/>\n<\/strong><\/h3>\n<p>&#8211; Download required DLL files from <a href=\"https:\/\/magick.codeplex.com\/releases\/view\/630360\" target=\"_blank\">https:\/\/magick.codeplex.com\/releases\/view\/630360<\/a> (I used <a href=\"https:\/\/magick.codeplex.com\/downloads\/get\/1630141\" target=\"_blank\">Magick.NET-7.0.4.400-Q8-x64.zip<\/a>)<br \/>\n&#8211; From the zip file, copy &#8220;net20\\Magick.NET\\Magick.NET-Q8-x64.dll&#8221; into your Unity project Assets\/Plugins\/-folder<br \/>\n&#8211; From the zip file, copy &#8220;net20\\Magick.NET\\Magick.NET-Q8-x64.Native.dll&#8221; into your Unity project <strong>root<\/strong> folder (where the project .sln file is also)<br \/>\n&#8211; Copy &#8220;System.Drawing.dll&#8221; (v2.0) from your c: drive into your Unity project Assets\/Plugins\/-folder (I founded mine from C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\)<br \/>\n&#8211; Download few sample images from <a href=\"https:\/\/github.com\/dlemstra\/Magick.NET\/tree\/master\/Samples\/Magick.NET.Samples\/Samples\/Magick.NET\/Files\" target=\"_blank\">Magick.NET examples here<\/a> and copy those image files into your &#8216;Assets\/Images\/&#8217; folder (or adjust the script below to point into correct image path)<br \/>\n&#8211; Add the c# script below to your scene and test it!<br \/>\n&#8211; See more tutorial sources at\u00a0Magick <a href=\"https:\/\/github.com\/dlemstra\/Magick.NET\/blob\/master\/Samples\/Magick.NET.Samples\/Samples\/Magick.NET\/Watermark.cs\" target=\"_blank\">github samples directory<\/a><\/p>\n<p><strong>example script (c#)<\/strong><\/p>\n<style>.gist table { margin-bottom: 0; }<\/style>\n<div style=\"tab-size: 8\" id=\"gist44190521\" class=\"gist\">\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-imagemagick-cs\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-c  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"ImageMagick.cs content, created by unitycoder on 11:11AM on January 26, 2017.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"ImageMagick.cs\">\n<tr>\n<td id=\"file-imagemagick-cs-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-imagemagick-cs-LC1\" class=\"blob-code blob-code-inner js-file-line\">\/\/ using ImageMagick with unity : http:\/\/1darray.com\/blog\/2017\/01\/27\/using-imagemagick-with-unity\/<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-imagemagick-cs-LC2\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-imagemagick-cs-LC3\" class=\"blob-code blob-code-inner js-file-line\">using System.Collections;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-imagemagick-cs-LC4\" class=\"blob-code blob-code-inner js-file-line\">using System.Collections.Generic;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-imagemagick-cs-LC5\" class=\"blob-code blob-code-inner js-file-line\">using UnityEngine;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-imagemagick-cs-LC6\" class=\"blob-code blob-code-inner js-file-line\">using ImageMagick;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-imagemagick-cs-LC7\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-imagemagick-cs-LC8\" class=\"blob-code blob-code-inner js-file-line\">public class ImageMagickTest : MonoBehaviour<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-imagemagick-cs-LC9\" class=\"blob-code blob-code-inner js-file-line\">{<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n<td id=\"file-imagemagick-cs-LC10\" class=\"blob-code blob-code-inner js-file-line\">    void Start()<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n<td id=\"file-imagemagick-cs-LC11\" class=\"blob-code blob-code-inner js-file-line\">    {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n<td id=\"file-imagemagick-cs-LC12\" class=\"blob-code blob-code-inner js-file-line\">        CreateWatermark();<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n<td id=\"file-imagemagick-cs-LC13\" class=\"blob-code blob-code-inner js-file-line\">    }<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n<td id=\"file-imagemagick-cs-LC14\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n<td id=\"file-imagemagick-cs-LC15\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n<td id=\"file-imagemagick-cs-LC16\" class=\"blob-code blob-code-inner js-file-line\">    public void CreateWatermark()<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n<td id=\"file-imagemagick-cs-LC17\" class=\"blob-code blob-code-inner js-file-line\">    {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n<td id=\"file-imagemagick-cs-LC18\" class=\"blob-code blob-code-inner js-file-line\">        \/\/ our image paths<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n<td id=\"file-imagemagick-cs-LC19\" class=\"blob-code blob-code-inner js-file-line\">        var sourcePath = Application.dataPath + &quot;\/Images\/FujiFilmFinePixS1Pro.jpg&quot;;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n<td id=\"file-imagemagick-cs-LC20\" class=\"blob-code blob-code-inner js-file-line\">        var watermarkPath = Application.dataPath + &quot;\/Images\/Snakeware.png&quot;;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n<td id=\"file-imagemagick-cs-LC21\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n<td id=\"file-imagemagick-cs-LC22\" class=\"blob-code blob-code-inner js-file-line\">        \/\/ Read image that needs a watermark<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n<td id=\"file-imagemagick-cs-LC23\" class=\"blob-code blob-code-inner js-file-line\">        using (MagickImage image = new MagickImage(sourcePath))<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n<td id=\"file-imagemagick-cs-LC24\" class=\"blob-code blob-code-inner js-file-line\">        {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n<td id=\"file-imagemagick-cs-LC25\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n<td id=\"file-imagemagick-cs-LC26\" class=\"blob-code blob-code-inner js-file-line\">            \/\/ Read the watermark that will be put on top of the image<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L27\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"27\"><\/td>\n<td id=\"file-imagemagick-cs-LC27\" class=\"blob-code blob-code-inner js-file-line\">            using (MagickImage watermark = new MagickImage(watermarkPath))<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L28\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"28\"><\/td>\n<td id=\"file-imagemagick-cs-LC28\" class=\"blob-code blob-code-inner js-file-line\">            {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L29\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"29\"><\/td>\n<td id=\"file-imagemagick-cs-LC29\" class=\"blob-code blob-code-inner js-file-line\">                \/\/ Draw the watermark in the bottom right corner<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L30\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"30\"><\/td>\n<td id=\"file-imagemagick-cs-LC30\" class=\"blob-code blob-code-inner js-file-line\">                image.Composite(watermark, Gravity.Southeast, CompositeOperator.Over);<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L31\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"31\"><\/td>\n<td id=\"file-imagemagick-cs-LC31\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L32\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"32\"><\/td>\n<td id=\"file-imagemagick-cs-LC32\" class=\"blob-code blob-code-inner js-file-line\">                \/\/ Optionally make the watermark more transparent<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L33\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"33\"><\/td>\n<td id=\"file-imagemagick-cs-LC33\" class=\"blob-code blob-code-inner js-file-line\">                watermark.Evaluate(Channels.Alpha, EvaluateOperator.Divide, 4);<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L34\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"34\"><\/td>\n<td id=\"file-imagemagick-cs-LC34\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L35\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"35\"><\/td>\n<td id=\"file-imagemagick-cs-LC35\" class=\"blob-code blob-code-inner js-file-line\">                \/\/ Or draw the watermark at a specific location<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L36\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"36\"><\/td>\n<td id=\"file-imagemagick-cs-LC36\" class=\"blob-code blob-code-inner js-file-line\">                image.Composite(watermark, 200, 50, CompositeOperator.Over);<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L37\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"37\"><\/td>\n<td id=\"file-imagemagick-cs-LC37\" class=\"blob-code blob-code-inner js-file-line\">            }<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L38\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"38\"><\/td>\n<td id=\"file-imagemagick-cs-LC38\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L39\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"39\"><\/td>\n<td id=\"file-imagemagick-cs-LC39\" class=\"blob-code blob-code-inner js-file-line\">            \/\/ Save the result<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L40\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"40\"><\/td>\n<td id=\"file-imagemagick-cs-LC40\" class=\"blob-code blob-code-inner js-file-line\">            image.Write(Application.dataPath + &quot;\/Images\/&quot; + &quot;FujiFilmFinePixS1Pro-watermark.jpg&quot;);<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L41\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"41\"><\/td>\n<td id=\"file-imagemagick-cs-LC41\" class=\"blob-code blob-code-inner js-file-line\">        }<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L42\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"42\"><\/td>\n<td id=\"file-imagemagick-cs-LC42\" class=\"blob-code blob-code-inner js-file-line\">    }<\/td>\n<\/tr>\n<tr>\n<td id=\"file-imagemagick-cs-L43\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"43\"><\/td>\n<td id=\"file-imagemagick-cs-LC43\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/c7849ab37b7b5851da672c19e316c41f\/raw\/64837668d4fd2d10ba8e02d457a59fb3680efc69\/ImageMagick.cs\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/c7849ab37b7b5851da672c19e316c41f#file-imagemagick-cs\" class=\"Link--inTextBlock\"><br \/>\n          ImageMagick.cs<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Using ImageMagick with Unity is now possible with the .NET wrapper (github) Tutorial: Add watermark to image &#8211; Download required DLL files from https:\/\/magick.codeplex.com\/releases\/view\/630360 (I used Magick.NET-7.0.4.400-Q8-x64.zip) &#8211; From the zip file, copy &#8220;net20\\Magick.NET\\Magick.NET-Q8-x64.dll&#8221; into your Unity project Assets\/Plugins\/-folder &#8211; From the zip file, copy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":"Using ImageMagick with Unity","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},"jetpack_post_was_ever_published":false},"categories":[420,1,3],"tags":[971,389,840,954,51,969,970],"class_list":["post-4504","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-uncategorized","category-unity3d","tag-net","tag-convert","tag-dll","tag-edit","tag-image","tag-imagemagick","tag-processing"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/01\/FujiFilmFinePixS1Pro-watermark.jpg?fit=600%2C400&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1aE","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4504"}],"version-history":[{"count":2,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4504\/revisions"}],"predecessor-version":[{"id":4507,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4504\/revisions\/4507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4506"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}