[{"data":1,"prerenderedAt":132},["ShallowReactive",2],{"blog-post-imagemagick-pixelate-part-of-image":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},"av4mZRYAACwAwPgc","imagemagick-pixelate-part-of-image",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+%22av4mZRYAACwAwPgc%22%29+%5D%5D",[],"2026-11-24T22:45:19+0000","2026-11-25T09:33:51+0000",[13],"imagemagick-how-to-pixelate-part-of-an-image",[],"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 Pixelate Part of an Image",[],"ltr","2026-11-24",[26],{"type":27,"text":28,"spans":29,"direction":23},"heading2","Learn how to pixelate just one part of an image 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\u002FrwHz9IZ1VSUFV2M4_imagemagick-pixelate-part-of-image.png?auto=format,compress","rwHz9IZ1VSUFV2M4",{"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 photo 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 photo. Pixelating one area takes two steps. First, cut that area out and turn it into big blocks by running this command:",[],{"type":46,"text":53,"spans":54,"direction":23},"magick input.jpg -crop 400x240+430+800 +repage -scale 5% -scale 2000% patch.png",[],{"type":42,"text":56,"spans":57,"direction":23},"The \u003Ccode>-crop\u003C\u002Fcode> option takes the width and height, then how far from the left and from the top, so \u003Ccode>400x240+430+800\u003C\u002Fcode> is a box \u003Ccode>400\u003C\u002Fcode> pixels wide and \u003Ccode>240\u003C\u002Fcode> tall. Then \u003Ccode>-scale 5%\u003C\u002Fcode> shrinks it and \u003Ccode>-scale 2000%\u003C\u002Fcode> blows it back up, which makes the blocks. Just remember to replace \u003Ccode>input.jpg\u003C\u002Fcode> with your actual filename.",[],{"type":42,"text":59,"spans":60,"direction":23},"Now put the patch back on the photo:",[],{"type":46,"text":62,"spans":63,"direction":23},"magick input.jpg patch.png -geometry +430+800 -composite output.jpg",[],{"type":42,"text":65,"spans":66,"direction":23},"The \u003Ccode>-geometry +430+800\u003C\u002Fcode> option says where the patch goes, and \u003Ccode>-composite\u003C\u002Fcode> pastes it on. To make sure everything worked, run \u003Ccode>open output.jpg\u003C\u002Fcode> and check that only that area is pixelated.",[],{"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\u002F5pavXzoCLRg","video","1.0","markster","https:\u002F\u002Fwww.youtube.com\u002F@markster1904","YouTube","https:\u002F\u002Fwww.youtube.com\u002F","https:\u002F\u002Fi.ytimg.com\u002Fvi\u002F5pavXzoCLRg\u002Fhqdefault.jpg",480,360,"\u003Ciframe width=\"200\" height=\"113\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F5pavXzoCLRg?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 Pixelate Part of an Image\">\u003C\u002Fiframe>",113,200,{"type":42,"text":84,"spans":85,"direction":23},"One more tip: for smaller blocks, use \u003Ccode>-scale 10%\u003C\u002Fcode> and \u003Ccode>-scale 1000%\u003C\u002Fcode> instead. Just keep the two percentages as opposites, so the patch stays the same size.",[],{"results":87,"page":38,"results_per_page":130,"results_size":130,"total_results_size":131,"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":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":129},{"image":30,"title":18},3,89,1795608244445]