[{"data":1,"prerenderedAt":132},["ShallowReactive",2],{"blog-post-imagemagick-make-transparent-background":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},"av4mZxYAAC0AwPgo","imagemagick-make-transparent-background",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+%22av4mZxYAAC0AwPgo%22%29+%5D%5D",[],"2026-11-24T22:45:19+0000","2026-11-25T09:34:08+0000",[13],"imagemagick-how-to-make-a-transparent-background",[],"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 Make a Transparent Background",[],"ltr","2026-11-24",[26],{"type":27,"text":28,"spans":29,"direction":23},"heading2","Learn how to remove a background and make it transparent 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\u002FEx5kM9M_6IifcS5Y_imagemagick-make-transparent-background.png?auto=format,compress","Ex5kM9M_6IifcS5Y",{"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 image 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 image. To make the white background transparent, run this command:",[],{"type":46,"text":53,"spans":54,"direction":23},"magick input.jpg -fuzz 10% -transparent white output.png",[],{"type":42,"text":56,"spans":57,"direction":23},"The \u003Ccode>-transparent white\u003C\u002Fcode> option clears every white pixel, and \u003Ccode>-fuzz 10%\u003C\u002Fcode> also catches near white shades, so the edges come out clean. Raise the fuzz value if some white is left behind. Save the result as a \u003Ccode>.png\u003C\u002Fcode>, because a \u003Ccode>.jpg\u003C\u002Fcode> can't be transparent.",[],{"type":42,"text":59,"spans":60,"direction":23},"If your subject has white in it too, run this command instead:",[],{"type":46,"text":62,"spans":63,"direction":23},"magick input.jpg -alpha set -fuzz 10% -fill none -floodfill +0+0 white output.png",[],{"type":42,"text":65,"spans":66,"direction":23},"The \u003Ccode>-floodfill +0+0 white\u003C\u002Fcode> option starts at the top left corner and only clears the white connected to it, so white inside your subject stays. The \u003Ccode>-alpha set\u003C\u002Fcode> option turns on the transparency channel, and \u003Ccode>-fill none\u003C\u002Fcode> is the transparent paint. To make sure everything worked, run \u003Ccode>open output.png\u003C\u002Fcode> and check the result.",[],{"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\u002FCyscOCf3G7U","video","1.0","markster","https:\u002F\u002Fwww.youtube.com\u002F@markster1904","YouTube","https:\u002F\u002Fwww.youtube.com\u002F","https:\u002F\u002Fi.ytimg.com\u002Fvi\u002FCyscOCf3G7U\u002Fhqdefault.jpg",480,360,"\u003Ciframe width=\"200\" height=\"113\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FCyscOCf3G7U?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 Make a Transparent Background\">\u003C\u002Fiframe>",113,200,{"type":42,"text":84,"spans":85,"direction":23},"One more tip: you can clear any color, not just white. Replace \u003Ccode>white\u003C\u002Fcode> with another color name or a hex code like \u003Ccode>\"#00FF00\"\u003C\u002Fcode>.",[],{"results":87,"page":38,"results_per_page":130,"results_size":130,"total_results_size":131,"total_pages":38},[88,90,110],{"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":89},{"image":30,"title":18},{"id":91,"uid":92,"url":6,"type":7,"href":93,"tags":94,"first_publication_date":10,"last_publication_date":95,"slugs":96,"linked_documents":98,"lang":15,"alternate_languages":99,"data":100},"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",[97],"imagemagick-how-to-rotate-an-image",[],[],{"image":101,"title":107},{"dimensions":102,"alt":103,"copyright":6,"url":104,"id":105,"edit":106},{"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},[108],{"type":20,"text":103,"spans":109,"direction":23},[],{"id":111,"uid":112,"url":6,"type":7,"href":113,"tags":114,"first_publication_date":10,"last_publication_date":115,"slugs":116,"linked_documents":118,"lang":15,"alternate_languages":119,"data":120},"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",[117],"imagemagick-how-to-pixelate-part-of-an-image",[],[],{"image":121,"title":127},{"dimensions":122,"alt":123,"copyright":6,"url":124,"id":125,"edit":126},{"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},[128],{"type":20,"text":123,"spans":129,"direction":23},[],3,89,1795608244444]