Donmai

[bulk] Resized Images (downscaled, upscaled)

Posted under Tags

Is it really downscaled? There's a thumbnail that is 600x450 but the largest video is 480x360, same as post #2415080.

600x450 .jpg: http://pbs.twimg.com/ext_tw_video_thumb/750308790306639872/pu/img/EsEXsC-0CpQOZ2a5.jpg
480x360 .mp4: https://video.twimg.com/ext_tw_video/750308790306639872/pu/vid/480x360/_ba6QNq_99D63GHV.mp4
240x180 .mp4: https://video.twimg.com/ext_tw_video/750308790306639872/pu/vid/240x180/k3cAYii7O76hu0qu.mp4
??? .m3u8: https://video.twimg.com/ext_tw_video/750308790306639872/pu/pl/rJxNGHjnuz5jR-xe.m3u8
??? .mpd: https://video.twimg.com/ext_tw_video/750308790306639872/pu/pl/rJxNGHjnuz5jR-xe.mpd

Twitter API response
~/src/danbooru $ rails runner 'puts TwitterService.new.client.status(750310569857519623).attrs.to_json' | jq .

{
  "created_at": "Tue Jul 05 12:49:14 +0000 2016",
  "id": 750310569857519600,
  "id_str": "750310569857519623",
  "text": "今日のお絵描き、艦これの朝潮改二。描いたついでにちょっと動かしてみた。 https://t.co/NjtZpKcOLR",
  "truncated": false,
  "entities": {
    "hashtags": [],
    "symbols": [],
    "user_mentions": [],
    "urls": [],
    "media": [
      {
        "id": 750308790306639900,
        "id_str": "750308790306639872",
        "indices": [
          36,
          59
        ],
        "media_url": "http://pbs.twimg.com/ext_tw_video_thumb/750308790306639872/pu/img/EsEXsC-0CpQOZ2a5.jpg",
        "media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/750308790306639872/pu/img/EsEXsC-0CpQOZ2a5.jpg",
        "url": "https://t.co/NjtZpKcOLR",
        "display_url": "pic.twitter.com/NjtZpKcOLR",
        "expanded_url": "https://twitter.com/zzaigo/status/750310569857519623/video/1",
        "type": "photo",
        "sizes": {
          "large": {
            "w": 800,
            "h": 600,
            "resize": "fit"
          },
          "small": {
            "w": 340,
            "h": 255,
            "resize": "fit"
          },
          "medium": {
            "w": 600,
            "h": 450,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          }
        }
      }
    ]
  },
  "extended_entities": {
    "media": [
      {
        "id": 750308790306639900,
        "id_str": "750308790306639872",
        "indices": [
          36,
          59
        ],
        "media_url": "http://pbs.twimg.com/ext_tw_video_thumb/750308790306639872/pu/img/EsEXsC-0CpQOZ2a5.jpg",
        "media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/750308790306639872/pu/img/EsEXsC-0CpQOZ2a5.jpg",
        "url": "https://t.co/NjtZpKcOLR",
        "display_url": "pic.twitter.com/NjtZpKcOLR",
        "expanded_url": "https://twitter.com/zzaigo/status/750310569857519623/video/1",
        "type": "video",
        "sizes": {
          "large": {
            "w": 800,
            "h": 600,
            "resize": "fit"
          },
          "small": {
            "w": 340,
            "h": 255,
            "resize": "fit"
          },
          "medium": {
            "w": 600,
            "h": 450,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          }
        },
        "video_info": {
          "aspect_ratio": [
            4,
            3
          ],
          "duration_millis": 18000,
          "variants": [
            {
              "bitrate": 832000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/ext_tw_video/750308790306639872/pu/vid/480x360/_ba6QNq_99D63GHV.mp4"
            },
            {
              "bitrate": 320000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/ext_tw_video/750308790306639872/pu/vid/240x180/k3cAYii7O76hu0qu.mp4"
            },
            {
              "content_type": "application/x-mpegURL",
              "url": "https://video.twimg.com/ext_tw_video/750308790306639872/pu/pl/rJxNGHjnuz5jR-xe.m3u8"
            },
            {
              "content_type": "application/dash+xml",
              "url": "https://video.twimg.com/ext_tw_video/750308790306639872/pu/pl/rJxNGHjnuz5jR-xe.mpd"
            }
          ]
        },
        "additional_media_info": {
          "monetizable": false
        }
      }
    ]
  },
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "in_reply_to_status_id": null,
  "in_reply_to_status_id_str": null,
  "in_reply_to_user_id": null,
  "in_reply_to_user_id_str": null,
  "in_reply_to_screen_name": null,
  "user": {
    "id": 549294672,
    "id_str": "549294672",
    "name": "イゴオ",
    "screen_name": "zzaigo",
    "location": "",
    "description": "適当にソシャゲなどに手を出しているぬるオタ。たまにしょぼい落書きを放り投げる模様。プレイ中のゲーム→艦これ/花騎士/政マニ",
    "url": null,
    "entities": {
      "description": {
        "urls": []
      }
    },
    "protected": false,
    "followers_count": 2209,
    "friends_count": 35,
    "listed_count": 56,
    "created_at": "Mon Apr 09 13:03:16 +0000 2012",
    "favourites_count": 15,
    "utc_offset": 28800,
    "time_zone": "Irkutsk",
    "geo_enabled": false,
    "verified": false,
    "statuses_count": 99,
    "lang": "ja",
    "contributors_enabled": false,
    "is_translator": false,
    "is_translation_enabled": false,
    "profile_background_color": "000000",
    "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
    "profile_background_tile": false,
    "profile_image_url": "http://pbs.twimg.com/profile_images/754399202893979648/33dutB05_normal.jpg",
    "profile_image_url_https": "https://pbs.twimg.com/profile_images/754399202893979648/33dutB05_normal.jpg",
    "profile_link_color": "700000",
    "profile_sidebar_border_color": "000000",
    "profile_sidebar_fill_color": "000000",
    "profile_text_color": "000000",
    "profile_use_background_image": false,
    "has_extended_profile": false,
    "default_profile": false,
    "default_profile_image": false,
    "following": null,
    "follow_request_sent": null,
    "notifications": null,
    "translator_type": "none"
  },
  "geo": null,
  "coordinates": null,
  "place": null,
  "contributors": null,
  "is_quote_status": false,
  "retweet_count": 3762,
  "favorite_count": 6180,
  "favorited": false,
  "retweeted": false,
  "possibly_sensitive": false,
  "possibly_sensitive_appealable": false,
  "lang": "ja"
}
1 2