{"id":25270,"date":"2019-05-15T15:23:16","date_gmt":"2019-05-15T19:23:16","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=25270"},"modified":"2019-05-15T15:23:16","modified_gmt":"2019-05-15T19:23:16","slug":"image-resizing-techniques","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/05\/15\/image-resizing-techniques\/","title":{"rendered":"Image Resizing Techniques"},"content":{"rendered":"<p><a href=\"https:\/\/nshipster.com\/image-resizing\/\">Mattt Thompson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/nshipster.com\/image-resizing\/\">\n<p>There are a number of different approaches to resizing an image, each with different capabilities and performance characteristics. And the examples we&rsquo;re looking at in this article span frameworks both low- and high-level, from Core Graphics, vImage, and Image I\/O to Core Image and UIKit[&#8230;]<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/jnadeau\/status\/1125588341519417349\">Jeff Nadeau<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/jnadeau\/status\/1125588341519417349\">\n<p>If you want to cache a downsampled rendition of some source image, try a block-based <code>NSImage<\/code>. It&rsquo;ll cache for you, and it&rsquo;ll maintain it in the right backing format for display. Pretty low effort for broadly desirable performance characteristics.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Mattt Thompson: There are a number of different approaches to resizing an image, each with different capabilities and performance characteristics. And the examples we&rsquo;re looking at in this article span frameworks both low- and high-level, from Core Graphics, vImage, and Image I\/O to Core Image and UIKit[&#8230;] Jeff Nadeau: If you want to cache a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-05-15T19:23:21Z","apple_news_api_id":"2db66706-d86e-4be6-a73f-da5bac357d18","apple_news_api_modified_at":"2019-05-15T19:23:23Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/ALbZnBthuS-anP9pbrDV9GA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,619,31,1610,30,1609,71],"class_list":["post-25270","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-graphics","tag-ios","tag-ios-12","tag-mac","tag-macos-10-14","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/25270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=25270"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/25270\/revisions"}],"predecessor-version":[{"id":25271,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/25270\/revisions\/25271"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=25270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=25270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=25270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}