{"id":2607,"date":"2019-10-21T05:42:25","date_gmt":"2019-10-20T20:42:25","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=2607"},"modified":"2019-10-27T00:31:27","modified_gmt":"2019-10-26T15:31:27","slug":"upload-to-google-photo-in-heic-format-to-avoid-the-16mp-limit","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2019\/10\/21\/upload-to-google-photo-in-heic-format-to-avoid-the-16mp-limit\/","title":{"rendered":"Google Photo\u306bHEIC\u5f62\u5f0f\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u306616MP\u5236\u9650\u3092\u56de\u907f\u3059\u308b"},"content":{"rendered":"<div class=\"exampleblock\">\n<div class=\"content\">\n<blockquote>\n<div class=\"paragraph\">\n\u203b\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u66f8\u3044\u3066\u308b\u3046\u3061\u306bHEIC\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u7e2e\u5c0f\u3055\u308c\u306a\u3044\u306e\u306f\u30d0\u30b0\u3060\u3068\u3044\u3046\u8a18\u4e8b\u304c\u3067\u3066\u304d\u307e\u3057\u305f\uff0e\u305d\u306e\u3046\u3061\u4fee\u6b63\u3055\u308c\u3066\u3053\u306e\u56de\u907f\u65b9\u6cd5\u306f\u4f7f\u3048\u306a\u304f\u306a\u308b\u306f\u305a\u3067\u3059\uff0e<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/www.androidpolice.com\/2019\/10\/20\/google-aware-of-free-original-quality-heic-photo-backups-for-iphones-says-its-a-bug\/\">Google aware of free original quality HEIC photo backups for iPhones, says it\u2019s a &#8216;bug&#8217;<\/a><\/li>\n<\/ul>\n<\/div>\n<\/blockquote>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>Google Photo\u306e\u8a2d\u5b9a\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b5\u30a4\u30ba\u3092\u300c\u9ad8\u753b\u8cea\u300d\u306b\u3057\u3066\u304a\u304f\u306816MP\u3092\u8d85\u3048\u308b\u30b5\u30a4\u30ba\u306e\u753b\u50cf\u306f16MP\u306b\u7e2e\u5c0f\u3055\u308c\u307e\u3059\u304c\u5bb9\u91cf\u3092\u6c17\u306b\u305b\u305a\u7121\u5236\u9650\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\uff0e<br \/>\n\u6700\u8fd1iPhone\u306e\u5199\u771f\u306f16MP\u3092\u8d8a\u3048\u3066\u3044\u3066\u3082\u7121\u5236\u9650\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3068\u8a71\u984c\u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u3053\u308c\u306fiPhone\u306e\u5199\u771f\u306fHEIF\u5f62\u5f0f\u3067\u4fdd\u5b58\u3055\u308c\uff0c\u3053\u308c\u309216MP\u306b\u3059\u308b\u305f\u3081\u306b\u30c7\u30b3\u30fc\u30c9&amp;\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\u3068\u5143\u306e\u753b\u50cf\u3088\u308a\u5927\u304d\u304f\u306a\u308b\u306e\u3067\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8a00\u308f\u308c\u305f\u308a\u3057\u3066\u3044\u307e\u3059\uff0e<\/p>\n<ul>\n<li><a href=\"https:\/\/www.reddit.com\/r\/apple\/comments\/dio8w4\/til_because_iphones_shoot_photos_in_heic_format\/\">TIL Because iPhones shoot photos in HEIC format and not JPG, you get free unlimited original quality backups to Google Photos due to HEIC being smaller and more efficient than JPG so Google doesn\u2019t touch the files. : apple<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u306e\u7406\u7531\u304c\u6b63\u3057\u3044\u306e\u3067\u3042\u308c\u3070iPhone\u3067\u306a\u304f\u3068\u3082HEIF\u5f62\u5f0f\u306b\u5909\u63db\u3057\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u30b5\u30a4\u30ba\u3067\u4fdd\u5b58\u3055\u308c\u308b\u3067\u306f\u306a\u3044\u304b\u3068\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/gnusocial.matoken.org\/conversation\/1399082\">matoken HEIC\u3067GooglePhoto\u306b\u6295\u3052\u3066\u307f\u308b\u3068\u3069\u3046\u306a\u308b\u3060\u308d\u3046?<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\u5148\u305a\u624b\u6301\u3061\u306e\u30ab\u30e1\u30e9(Pentax K-5)\u3067RAW\u64ae\u5f71\u3057\u3066\u73fe\u50cf\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ identify .\/H-IIBF8_HTV8.TIFF\n.\/H-IIBF8_HTV8.TIFF TIFF 4942x3276 4942x3276+0+0 16-bit sRGB 73.7626MiB 0.000u 0:00.000\n$ echo $(($(identify -format \"%w*%h\" .\/H-IIBF8_HTV8.TIFF)))\n16189992<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>4942 x 3276 = 16189992\u30d4\u30af\u30bb\u30eb\u3067\u5236\u9650\u306e16MP\u3092\u5c11\u3057\u8d85\u3048\u3066\u3044\u305d\u3046\u3067\u3059\uff0e<br \/>\n2**20*16 = 16777216 \u3088\u308a\u306f\u5c0f\u3055\u3044(MiP?)<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u306e\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u307f\u307e\u3059\uff0e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u306fgpup\u3092\u4f7f\u3044\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ gpup .\/H-IIBF8_HTV8.TIFF<\/pre>\n<\/div>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/github.com\/int128\/gpup\">int128\/gpup: A command to upload photos and movies to Google Photos Library using the official Google Photos Library API<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u3092\u898b\u308b\u3068\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e16.2MP\u3067\u7e2e\u5c0f\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>H-IIBF8_HTV8.TIFF\n16.2 MP\n4942 \u00d7 3276\n77.3 MB<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u5ff5\u306e\u70ba\u8a2d\u5b9a\u3092\u78ba\u8a8d\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u8a2d\u5b9a\u753b\u9762( <a href=\"https:\/\/photos.google.com\/settings\" class=\"bare\">https:\/\/photos.google.com\/settings<\/a> )\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\uff0c\u300c\u9ad8\u753b\u8cea \uff08\u5bb9\u91cf\u5236\u9650\u306a\u3057\u3001\u7121\u6599\uff09\u300d\u306b\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u554f\u984c\u306a\u3044\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"exampleblock\">\n<div class=\"content\">\n<blockquote>\n<div class=\"paragraph\">\n<p>\u3061\u306a\u307f\u306b\uff0c\u300c\u5143\u306e\u30b5\u30a4\u30ba\u300d\u306b\u8a2d\u5b9a\u3057\u305f\u72b6\u614b\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u52d5\u753b\u3092\u300c\u5bb9\u91cf\u3092\u89e3\u653e\u300d\u3059\u308b\u3053\u3068\u306716MP\u306b\u5909\u63db\u3057\u3066Google\u30c9\u30e9\u30a4\u30d6\u306e\u5bb9\u91cf\u3092\u89e3\u653e\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/matoken.org\/blog\/2017\/12\/03\/convert-google-drive-photos-to-high-image-quality-and-free-up-capacity\/\">Google\u30c9\u30e9\u30a4\u30d6\u306e\u5199\u771f\u3092\u9ad8\u753b\u8cea\u306b\u5909\u63db\u3057\u3066\u5bb9\u91cf\u3092\u958b\u653e\u3059\u308b\u30e1\u30e2 \u2013 matoken\u2019s meme<\/a><\/li>\n<\/ul>\n<\/div>\n<\/blockquote>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>HEIC\u3068JPEG\u3082\u540c\u69d8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u307f\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ convert .\/H-IIBF8_HTV8.TIFF .\/H-IIBF8_HTV8.heic\n$ convert .\/H-IIBF8_HTV8.TIFF .\/H-IIBF8_HTV8.jpg\n$ ls -1HSs .\/H-IIBF8_HTV8.*\n75536 .\/H-IIBF8_HTV8.TIFF\n 2632 .\/H-IIBF8_HTV8.jpg\n  688 .\/H-IIBF8_HTV8.heic\n$ gpup .\/H-IIBF8_HTV8.heic .\/H-IIBF8_HTV8.jpg<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u308c\u3082\u7e2e\u5c0f\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u306e\u753b\u50cf\u306f16MP\u3092\u5c11\u3057\u8d85\u3048\u3066\u3044\u308b\u7a0b\u5ea6\u306a\u306e\u3067\u7e2e\u5c0f\u3055\u308c\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e\u3082\u3063\u3068\u5927\u304d\u306a\u753b\u50cf\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3068\u3044\u3063\u3066\u3082\u81ea\u5206\u306e\u624b\u6301\u3061\u306e\u30ab\u30e1\u30e9\u3067\u306f\u3053\u308c\u304c\u6700\u5927\u306a\u306e\u3067\uff0c\u753b\u50cf\u3092\u7d50\u5408\u3057\u3066\u4f5c\u6210\u3057\u307e\u3059\uff0e(\u3061\u306a\u307f\u306b\u51e6\u7406\u6642\u9593\u306fHEIC:56s, JPEG:3s)<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ convert -append H-IIBF8_HTV8.heic H-IIBF8_HTV8.heic 32MP.heic\n$ convert -append H-IIBF8_HTV8.heic H-IIBF8_HTV8.heic 32MP.jpg\n$ ls -1Ss 32MP.*\n3572 32MP.jpg\n1260 32MP.heic\n$ identify 32MP.*\n32MP.heic HEIC 4942x6552 4942x6552+0+0 8-bit YCbCr 0.010u 0:00.000\n32MP.jpg JPEG 4942x6552 4942x6552+0+0 8-bit sRGB 3.4858MiB 0.000u 0:00.000\n$ gpup 32MP.heic 32MP.jpg<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u7d50\u679c\u306fHEIC\u306f\u7d0432MP\u306e\u307e\u307e <strong>\u672a\u5727\u7e2e<\/strong> \uff0cJPEG\u306f <code>16 MP 3473 \u00d7 4605<\/code> \u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u540c\u69d8\u306b\u500d\u3092\u8a66\u3057\u3066\u307f\u308b\u3068 <code>HEIC 64.8 MP(9884 \u00d7 6552)<\/code> \u3082 <strong>\u672a\u5727\u7e2e<\/strong> \u3068\u306a\u308a\u307e\u3057\u305f\uff0e<br \/>\n<a href=\"https:\/\/matoken.org\/blog\/2019\/10\/20\/imagemagick-fails-due-to-lack-of-cache-resources-when-converting-images\/\">convert\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u30ea\u30bd\u30fc\u30b9\u304c\u8db3\u308a\u306a\u304f\u3066\u8ee2\u3051<\/a>\u305f\u308a\u3057\u3064\u3064\u66f4\u306b\u500d( 9884 x 13104 )\u3092\u8a66\u3057\u3066\u307f\u308b\u3068gpup\u3067\u306f\u300cFailed: There was an error while trying to create this media item. (code=3)\u300d\uff0cChromium\u3067\u306f\u300c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u5931\u6557\u3057\u307e\u3057\u305f\uff0e<br \/>\n\u5bb9\u91cf\u306f4.3MB\u307b\u3069\u3057\u304b\u306a\u3044\u306e\u3067\u305d\u306e\u3042\u305f\u308a\u306f\u554f\u984c\u306a\u3044\u306f\u305a\u3067\u89e3\u50cf\u5ea6\u306e\u30ea\u30df\u30c3\u30c8\u304c\u3042\u308a\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3066\u3053\u3068\u3067\uff0c\u5c11\u306a\u304f\u3068\u3082 <code>HEIC 64.8 MP(9884 x 6552)<\/code> \u307e\u3067\u306f\u672a\u5727\u7e2e\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u53ef\u80fd\u3067\u306a\u3088\u3046\u3067\u3059\uff0e<br \/>\n64.8 MP\u301c129.6MP \u306e\u9593\u306b\u6700\u5927\u5024\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u4eca\u306e\u6240\u624b\u6301\u3061\u306e\u6a5f\u6750\u3067\u306f\u95a2\u4fc2\u304c\u306a\u3044\u306e\u3067\u78ba\u8a8d\u3057\u3066\u3044\u307e\u305b\u3093\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/matoken.org\/blog\/2019\/10\/20\/imagemagick-fails-due-to-lack-of-cache-resources-when-converting-images\/\">Imagemagick\u3067\u753b\u50cf\u5909\u63db\u6642\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u30ea\u30bd\u30fc\u30b9\u304c\u8db3\u308a\u306a\u304f\u3066\u8ee2\u3051\u308b \u2013 matoken\u2019s meme<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"ulist\">\n<div class=\"title\">\u95a2\u9023URL<\/div>\n<ul>\n<li><a href=\"https:\/\/nokiatech.github.io\/heif\/\">HEIF &#8211; High Efficiency Image File Format<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/nokiatech\/heif\">nokiatech\/heif: High Efficiency Image File Format<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/strukturag\/libheif\">strukturag\/libheif: libheif is a ISO\/IEC 23008\\-12:2017 HEIF file format decoder and encoder\\.<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W imagemagick chromium\nchromium        76.0.3809.100-1\nimagemagick     8:6.9.10.23+dfsg-2.1+b2\n$ gpup -h 2&gt;&amp;1|grep Version\nVersion 1.x\n$ git -C ~\/go\/src\/github.com\/int128\/gpup\/ log --oneline -1\nfb48ce5 (HEAD -&gt; master, origin\/master, origin\/HEAD) Merge pull request #27 from harupong\/patch-1\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux bullseye\/sid\nRelease:        unstable\n$ uname -m\nx86_64<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u66f8\u3044\u3066\u308b\u3046\u3061\u306bHEIC\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u7e2e\u5c0f\u3055\u308c\u306a\u3044\u306e\u306f\u30d0\u30b0\u3060\u3068\u3044\u3046\u8a18\u4e8b\u304c\u3067\u3066\u304d\u307e\u3057\u305f\uff0e\u305d\u306e\u3046\u3061\u4fee\u6b63\u3055\u308c\u3066\u3053\u306e\u56de\u907f\u65b9\u6cd5\u306f\u4f7f\u3048\u306a\u304f\u306a\u308b\u306f\u305a\u3067\u3059\uff0e Google aware of free original q [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6,199],"tags":[348,497],"class_list":["post-2607","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-google-photos","tag-heic"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=2607"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2607\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=2607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=2607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=2607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}