[{"data":1,"prerenderedAt":150},["ShallowReactive",2],{"blog-post-imagemagick-compare-two-images":3,"recent-posts":86},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":11,"slugs":12,"linked_documents":14,"lang":15,"alternate_languages":16,"data":17},"av4maBYAADEAwPgw","imagemagick-compare-two-images",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awarkBIAAC4AjXLF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av4maBYAADEAwPgw%22%29+%5D%5D",[],"2026-11-24T22:45:19+0000","2026-11-25T09:33:56+0000",[13],"imagemagick-how-to-compare-two-images",[],"en-us",[],{"title":18,"date":24,"description":25,"image":30,"content":40},[19],{"type":20,"text":21,"spans":22,"direction":23},"heading1","ImageMagick: How to Compare Two Images",[],"ltr","2026-11-24",[26],{"type":27,"text":28,"spans":29,"direction":23},"heading2","Learn how to compare two images and find the differences using ImageMagick",[],{"dimensions":31,"alt":21,"copyright":6,"url":34,"id":35,"edit":36},{"width":32,"height":33},1280,720,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F4qRVISFJUHaJMu49_imagemagick-compare-two-images.png?auto=format,compress","4qRVISFJUHaJMu49",{"x":37,"y":37,"zoom":38,"background":39},0,1,"transparent",[41,45,49,52,55,58,61,64,67,83],{"type":42,"text":43,"spans":44,"direction":23},"paragraph","Before we start, make sure you have ImageMagick installed on your computer and your two images ready in a folder. If you don't have it yet, run this command:",[],{"type":46,"text":47,"spans":48,"direction":23},"preformatted","brew install imagemagick",[],{"type":42,"text":50,"spans":51,"direction":23},"First, open your terminal and navigate to the folder that has your images. Both images need the same width and height. To see what changed, run this command:",[],{"type":46,"text":53,"spans":54,"direction":23},"magick compare image1.png image2.png diff.png",[],{"type":42,"text":56,"spans":57,"direction":23},"Just remember to replace \u003Ccode>image1.png\u003C\u002Fcode> and \u003Ccode>image2.png\u003C\u002Fcode> with your actual filenames. The \u003Ccode>compare\u003C\u002Fcode> tool saves a new image called \u003Ccode>diff.png\u003C\u002Fcode>, where everything that changed is marked in red on top of a faded copy of the original.",[],{"type":42,"text":59,"spans":60,"direction":23},"If you only want a number, run this command:",[],{"type":46,"text":62,"spans":63,"direction":23},"magick compare -metric RMSE image1.png image2.png null:",[],{"type":42,"text":65,"spans":66,"direction":23},"The \u003Ccode>-metric RMSE\u003C\u002Fcode> option gives a score, and \u003Ccode>null:\u003C\u002Fcode> means nothing gets saved. The number in brackets goes from \u003Ccode>0\u003C\u002Fcode>, which means identical, up to \u003Ccode>1\u003C\u002Fcode>, which means completely different. To make sure everything worked, run \u003Ccode>open diff.png\u003C\u002Fcode> and check the red area.",[],{"type":68,"oembed":69},"embed",{"embed_url":70,"type":71,"version":72,"title":21,"author_name":73,"author_url":74,"provider_name":75,"provider_url":76,"thumbnail_url":77,"thumbnail_width":78,"thumbnail_height":79,"html":80,"height":81,"width":82},"https:\u002F\u002Fyoutu.be\u002FC3PCwX7CO24","video","1.0","markster","https:\u002F\u002Fwww.youtube.com\u002F@markster1904","YouTube","https:\u002F\u002Fwww.youtube.com\u002F","https:\u002F\u002Fi.ytimg.com\u002Fvi\u002FC3PCwX7CO24\u002Fhqdefault.jpg",480,360,"\u003Ciframe width=\"200\" height=\"113\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FC3PCwX7CO24?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen title=\"ImageMagick: How to Compare Two Images\">\u003C\u002Fiframe>",113,200,{"type":42,"text":84,"spans":85,"direction":23},"One more tip: add \u003Ccode>-fuzz 5%\u003C\u002Fcode> before the image names to ignore tiny differences, like JPEG compression noise.",[],{"results":87,"page":38,"results_per_page":148,"results_size":148,"total_results_size":149,"total_pages":38},[88,108,128],{"id":89,"uid":90,"url":6,"type":7,"href":91,"tags":92,"first_publication_date":10,"last_publication_date":93,"slugs":94,"linked_documents":96,"lang":15,"alternate_languages":97,"data":98},"av4mZxYAAC0AwPgo","imagemagick-make-transparent-background","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awarkBIAAC4AjXLF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av4mZxYAAC0AwPgo%22%29+%5D%5D",[],"2026-11-25T09:34:08+0000",[95],"imagemagick-how-to-make-a-transparent-background",[],[],{"image":99,"title":105},{"dimensions":100,"alt":101,"copyright":6,"url":102,"id":103,"edit":104},{"width":32,"height":33},"ImageMagick: How to Make a Transparent Background","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FEx5kM9M_6IifcS5Y_imagemagick-make-transparent-background.png?auto=format,compress","Ex5kM9M_6IifcS5Y",{"x":37,"y":37,"zoom":38,"background":39},[106],{"type":20,"text":101,"spans":107,"direction":23},[],{"id":109,"uid":110,"url":6,"type":7,"href":111,"tags":112,"first_publication_date":10,"last_publication_date":113,"slugs":114,"linked_documents":116,"lang":15,"alternate_languages":117,"data":118},"av4mZhYAAC8AwPgi","imagemagick-rotate-image","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awarkBIAAC4AjXLF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av4mZhYAAC8AwPgi%22%29+%5D%5D",[],"2026-11-25T09:33:44+0000",[115],"imagemagick-how-to-rotate-an-image",[],[],{"image":119,"title":125},{"dimensions":120,"alt":121,"copyright":6,"url":122,"id":123,"edit":124},{"width":32,"height":33},"ImageMagick: How to Rotate an Image","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FtQfifQ3BV4ryUd4H_imagemagick-rotate-image.png?auto=format,compress","tQfifQ3BV4ryUd4H",{"x":37,"y":37,"zoom":38,"background":39},[126],{"type":20,"text":121,"spans":127,"direction":23},[],{"id":129,"uid":130,"url":6,"type":7,"href":131,"tags":132,"first_publication_date":10,"last_publication_date":133,"slugs":134,"linked_documents":136,"lang":15,"alternate_languages":137,"data":138},"av4mZRYAACwAwPgc","imagemagick-pixelate-part-of-image","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awarkBIAAC4AjXLF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av4mZRYAACwAwPgc%22%29+%5D%5D",[],"2026-11-25T09:33:51+0000",[135],"imagemagick-how-to-pixelate-part-of-an-image",[],[],{"image":139,"title":145},{"dimensions":140,"alt":141,"copyright":6,"url":142,"id":143,"edit":144},{"width":32,"height":33},"ImageMagick: How to Pixelate Part of an Image","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FrwHz9IZ1VSUFV2M4_imagemagick-pixelate-part-of-image.png?auto=format,compress","rwHz9IZ1VSUFV2M4",{"x":37,"y":37,"zoom":38,"background":39},[146],{"type":20,"text":141,"spans":147,"direction":23},[],3,89,1795608244446]