[{"data":1,"prerenderedAt":153},["ShallowReactive",2],{"blog-post-imagemagick-create-thumbnail":3,"recent-posts":89},{"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},"av3eShIAACkA6g_I","imagemagick-create-thumbnail",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awVEKhIAACgAG_eO&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av3eShIAACkA6g_I%22%29+%5D%5D",[],"2026-11-23T22:45:19+0000","2026-11-24T08:00:37+0000",[13],"imagemagick-how-to-create-a-thumbnail",[],"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 Create a Thumbnail",[],"ltr","2026-11-23",[26],{"type":27,"text":28,"spans":29,"direction":23},"heading2","Learn how to create a thumbnail from a large 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\u002FIYcSiiAUPXV2JXh4_imagemagick-create-thumbnail.png?auto=format,compress","IYcSiiAUPXV2JXh4",{"x":37,"y":37,"zoom":38,"background":39},0,1,"transparent",[41,45,49,52,55,58,61,64,67,70,86],{"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. To create a thumbnail, run this command:",[],{"type":46,"text":53,"spans":54,"direction":23},"magick input.jpg -thumbnail 200x200 output.jpg",[],{"type":42,"text":56,"spans":57,"direction":23},"Just remember to replace \u003Ccode>input.jpg\u003C\u002Fcode> with your actual filename. The \u003Ccode>200x200\u003C\u002Fcode> is a box, so the longest side ends up at \u003Ccode>200\u003C\u002Fcode> pixels and the image is never stretched. The \u003Ccode>-thumbnail\u003C\u002Fcode> option is made for shrinking big photos quickly.",[],{"type":42,"text":59,"spans":60,"direction":23},"If you need an exact square, run this command instead:",[],{"type":46,"text":62,"spans":63,"direction":23},"magick input.jpg -thumbnail 200x200^ -gravity center -extent 200x200 output.jpg",[],{"type":42,"text":65,"spans":66,"direction":23},"The \u003Ccode>^\u003C\u002Fcode> makes the image fill the whole box, \u003Ccode>-gravity center\u003C\u002Fcode> keeps the middle of the photo, and \u003Ccode>-extent 200x200\u003C\u002Fcode> crops the extra edges. Even for a huge photo, this finishes almost instantly.",[],{"type":42,"text":68,"spans":69,"direction":23},"To make sure everything worked, run \u003Ccode>open output.jpg\u003C\u002Fcode> and check the result.",[],{"type":71,"oembed":72},"embed",{"embed_url":73,"type":74,"version":75,"title":21,"author_name":76,"author_url":77,"provider_name":78,"provider_url":79,"thumbnail_url":80,"thumbnail_width":81,"thumbnail_height":82,"html":83,"height":84,"width":85},"https:\u002F\u002Fyoutu.be\u002FMz4JedpoQoQ","video","1.0","markster","https:\u002F\u002Fwww.youtube.com\u002F@markster1904","YouTube","https:\u002F\u002Fwww.youtube.com\u002F","https:\u002F\u002Fi.ytimg.com\u002Fvi\u002FMz4JedpoQoQ\u002Fhqdefault.jpg",480,360,"\u003Ciframe width=\"200\" height=\"113\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FMz4JedpoQoQ?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 Create a Thumbnail\">\u003C\u002Fiframe>",113,200,{"type":42,"text":87,"spans":88,"direction":23},"One more tip: to make thumbnails for a whole folder, run \u003Ccode>mkdir thumbs\u003C\u002Fcode> and then \u003Ccode>magick mogrify -path thumbs -thumbnail 200x200 *.jpg\u003C\u002Fcode>. If your phone photos come out sideways, add \u003Ccode>-auto-orient\u003C\u002Fcode> before \u003Ccode>-thumbnail\u003C\u002Fcode>.",[],{"results":90,"page":38,"results_per_page":151,"results_size":151,"total_results_size":152,"total_pages":38},[91,111,131],{"id":92,"uid":93,"url":6,"type":7,"href":94,"tags":95,"first_publication_date":10,"last_publication_date":96,"slugs":97,"linked_documents":99,"lang":15,"alternate_languages":100,"data":101},"av3eSRIAACgA6g-_","imagemagick-change-image-dpi","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awVEKhIAACgAG_eO&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av3eSRIAACgA6g-_%22%29+%5D%5D",[],"2026-11-24T08:00:42+0000",[98],"imagemagick-how-to-change-image-dpi",[],[],{"image":102,"title":108},{"dimensions":103,"alt":104,"copyright":6,"url":105,"id":106,"edit":107},{"width":32,"height":33},"ImageMagick: How to Change Image DPI","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FsN99ATT3ChzvJGRH_imagemagick-change-image-dpi.png?auto=format,compress","sN99ATT3ChzvJGRH",{"x":37,"y":37,"zoom":38,"background":39},[109],{"type":20,"text":104,"spans":110,"direction":23},[],{"id":112,"uid":113,"url":6,"type":7,"href":114,"tags":115,"first_publication_date":10,"last_publication_date":116,"slugs":117,"linked_documents":119,"lang":15,"alternate_languages":120,"data":121},"av3eTBIAACgA6g_P","imagemagick-create-sprite-sheet","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awVEKhIAACgAG_eO&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av3eTBIAACgA6g_P%22%29+%5D%5D",[],"2026-11-24T08:00:26+0000",[118],"imagemagick-how-to-create-a-sprite-sheet",[],[],{"image":122,"title":128},{"dimensions":123,"alt":124,"copyright":6,"url":125,"id":126,"edit":127},{"width":32,"height":33},"ImageMagick: How to Create a Sprite Sheet","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FU1LrFvpqX990yCxy_imagemagick-create-sprite-sheet.png?auto=format,compress","U1LrFvpqX990yCxy",{"x":37,"y":37,"zoom":38,"background":39},[129],{"type":20,"text":124,"spans":130,"direction":23},[],{"id":132,"uid":133,"url":6,"type":7,"href":134,"tags":135,"first_publication_date":10,"last_publication_date":136,"slugs":137,"linked_documents":139,"lang":15,"alternate_languages":140,"data":141},"av3eTRIAACgA6g_V","imagemagick-strip-image-metadata","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awVEKhIAACgAG_eO&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22av3eTRIAACgA6g_V%22%29+%5D%5D",[],"2026-11-24T08:00:20+0000",[138],"imagemagick-how-to-strip-metadata-from-an-image",[],[],{"image":142,"title":148},{"dimensions":143,"alt":144,"copyright":6,"url":145,"id":146,"edit":147},{"width":32,"height":33},"ImageMagick: How to Strip Metadata from an Image","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FggNmYjC60Z_XNTpc_imagemagick-strip-image-metadata.png?auto=format,compress","ggNmYjC60Z_XNTpc",{"x":37,"y":37,"zoom":38,"background":39},[149],{"type":20,"text":144,"spans":150,"direction":23},[],3,84,1795515044764]