YouTube কীভাবে Short-এর জন্য ভিউ গণনা করে তা মেলাতে আমরা Data API আপডেট করছি।
আরও জানুন
Thumbnails
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি thumbnail
সম্পদ একটি সম্পদের সাথে যুক্ত বিভিন্ন থাম্বনেইল চিত্রের আকার সনাক্ত করে। থাম্বনেইল চিত্রগুলির নিম্নলিখিত বৈশিষ্ট্যগুলি দয়া করে নোট করুন:
- একটি রিসোর্সের
snippet.thumbnails
প্রপার্টি হল একটি অবজেক্ট যা সেই রিসোর্সের জন্য উপলব্ধ থাম্বনেইল ইমেজগুলি সনাক্ত করে৷ - একটি
thumbnail
রিসোর্সে একটি সিরিজ অবজেক্ট থাকে। প্রতিটি বস্তুর নাম ( default
, medium
, high
, ইত্যাদি) থাম্বনেইল চিত্রের আকারকে বোঝায়। - বিভিন্ন ধরণের সংস্থান বিভিন্ন থাম্বনেইল চিত্রের আকার সমর্থন করতে পারে।
- বিভিন্ন ধরনের সম্পদ একই নামের থাম্বনেইল ছবির জন্য বিভিন্ন আকার নির্ধারণ করতে পারে। উদাহরণস্বরূপ, একটি
video
সংস্থানের জন্য default
থাম্বনেইল চিত্রটি সাধারণত 120px x 90px হয় এবং একটি channel
সংস্থানের জন্য default
থাম্বনেইল চিত্রটি সাধারণত 88px x 88px হয়। - ইউটিউবে আপলোড করা আসল চিত্র বা সামগ্রীর রেজোলিউশনের উপর নির্ভর করে একই ধরণের সংস্থানগুলিতে এখনও নির্দিষ্ট ছবির জন্য বিভিন্ন থাম্বনেইল চিত্রের আকার থাকতে পারে। উদাহরণস্বরূপ, একটি HD ভিডিও নন-এইচডি ভিডিওর তুলনায় উচ্চ রেজোলিউশন থাম্বনেল সমর্থন করতে পারে।
- থাম্বনেইল চিত্রের আকার সম্পর্কে তথ্য ধারণ করা প্রতিটি বস্তুর একটি
width
বৈশিষ্ট্য এবং একটি height
বৈশিষ্ট্য রয়েছে। যাইহোক, সেই ছবির জন্য প্রস্থ এবং উচ্চতার বৈশিষ্ট্যগুলি ফেরত দেওয়া যাবে না। - যদি একটি আপলোড করা থাম্বনেইল চিত্র প্রয়োজনীয় মাত্রার সাথে মেলে না, তবে তার আকৃতির অনুপাত পরিবর্তন না করে সঠিক আকারের সাথে মেলে চিত্রটির আকার পরিবর্তন করা হয়। চিত্রটি ক্রপ করা হয়নি, তবে কালো বার অন্তর্ভুক্ত থাকতে পারে যাতে আকারটি সঠিক হয়৷
পদ্ধতি
API thumbnails
সংস্থানগুলির জন্য নিম্নলিখিত পদ্ধতিগুলিকে সমর্থন করে:
- set
- YouTube-এ একটি কাস্টম ভিডিও থাম্বনেল আপলোড করে এবং একটি ভিডিওর জন্য সেট করে।
সম্পদ প্রতিনিধিত্ব
নিম্নলিখিত JSON গঠন একটি thumbnails
সম্পদের বিন্যাস দেখায়:
{
"default": {
"url": string,
"width": unsigned integer,
"height": unsigned integer
},
"medium": {
"url": string,
"width": unsigned integer,
"height": unsigned integer
},
"high": {
"url": string,
"width": unsigned integer,
"height": unsigned integer
},
"standard": {
"url": string,
"width": unsigned integer,
"height": unsigned integer
},
"maxres": {
"url": string,
"width": unsigned integer,
"height": unsigned integer
}
}
বৈশিষ্ট্য
নিম্নলিখিত সারণী এই সম্পদে প্রদর্শিত বৈশিষ্ট্যগুলিকে সংজ্ঞায়িত করে:
বৈশিষ্ট্য |
---|
default | object ডিফল্ট থাম্বনেইল ছবি। একটি ভিডিওর জন্য ডিফল্ট থাম্বনেইল - বা একটি সংস্থান যা একটি ভিডিওকে বোঝায়, যেমন একটি প্লেলিস্ট আইটেম বা অনুসন্ধান ফলাফল - 120px চওড়া এবং 90px লম্বা। একটি চ্যানেলের জন্য ডিফল্ট থাম্বনেইল 88px চওড়া এবং 88px লম্বা। |
default. url | string ছবির URL. |
default. width | unsigned integer ছবিটির প্রস্থ। |
default. height | unsigned integer ছবির উচ্চতা। |
medium | object থাম্বনেইল ছবির একটি উচ্চ রেজোলিউশন সংস্করণ। একটি ভিডিওর জন্য (বা একটি সম্পদ যা একটি ভিডিওকে বোঝায়), এই ছবিটি 320px চওড়া এবং 180px লম্বা। একটি চ্যানেলের জন্য, এই ছবিটি 240px চওড়া এবং 240px লম্বা৷ |
medium. url | string ছবির URL. |
medium. width | unsigned integer ছবিটির প্রস্থ। |
medium. height | unsigned integer ছবিটির উচ্চতা। |
high | object থাম্বনেইল ছবির একটি উচ্চ রেজোলিউশন সংস্করণ। একটি ভিডিওর জন্য (বা একটি সম্পদ যা একটি ভিডিওকে নির্দেশ করে), এই ছবিটি 480px চওড়া এবং 360px লম্বা। একটি চ্যানেলের জন্য, এই চিত্রটি 800px চওড়া এবং 800px লম্বা৷ |
high. url | string ছবির URL. |
high. width | unsigned integer ছবিটির প্রস্থ। |
high. height | unsigned integer ছবিটির উচ্চতা। |
standard | object high রেজোলিউশন ছবির চেয়ে থাম্বনেল ছবির একটি এমনকি উচ্চ রেজোলিউশন সংস্করণ। এই চিত্রটি কিছু ভিডিও এবং অন্যান্য সংস্থানগুলির জন্য উপলব্ধ যা ভিডিওগুলিকে উল্লেখ করে, যেমন প্লেলিস্ট আইটেম বা অনুসন্ধান ফলাফল৷ এই ছবিটি 640px চওড়া এবং 480px লম্বা৷ |
standard. url | string ছবির URL. |
standard. width | unsigned integer ছবিটির প্রস্থ। |
standard. height | unsigned integer ছবিটির উচ্চতা। |
maxres | object থাম্বনেইল ছবির সর্বোচ্চ রেজোলিউশন সংস্করণ। এই চিত্রের আকার কিছু ভিডিও এবং অন্যান্য সংস্থানগুলির জন্য উপলব্ধ যা ভিডিওগুলিকে উল্লেখ করে, যেমন প্লেলিস্ট আইটেম বা অনুসন্ধান ফলাফল৷ এই ছবিটি 1280px চওড়া এবং 720px লম্বা৷ |
maxres. url | string ছবির URL. |
maxres. width | unsigned integer ছবিটির প্রস্থ। |
maxres. height | unsigned integer ছবির উচ্চতা। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eA resource's \u003ccode\u003esnippet.thumbnails\u003c/code\u003e property contains an object, and each of these objects has properties such as \u003ccode\u003edefault\u003c/code\u003e, \u003ccode\u003emedium\u003c/code\u003e, and \u003ccode\u003ehigh\u003c/code\u003e, which identify the different available thumbnail image sizes for that specific resource.\u003c/p\u003e\n"],["\u003cp\u003eThumbnail image sizes can vary significantly between different resource types (e.g., videos vs. channels), and even among resources of the same type, based on the resolution of the original uploaded content.\u003c/p\u003e\n"],["\u003cp\u003eEach thumbnail image size object contains a \u003ccode\u003eurl\u003c/code\u003e, \u003ccode\u003ewidth\u003c/code\u003e, and \u003ccode\u003eheight\u003c/code\u003e property, but the width and height may not always be returned.\u003c/p\u003e\n"],["\u003cp\u003eWhen a custom thumbnail image is uploaded, it's resized to match the required dimensions without changing its aspect ratio, which may result in black bars being added.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ethumbnails\u003c/code\u003e resource offers various image size options, such as \u003ccode\u003edefault\u003c/code\u003e, \u003ccode\u003emedium\u003c/code\u003e, \u003ccode\u003ehigh\u003c/code\u003e, \u003ccode\u003estandard\u003c/code\u003e, and \u003ccode\u003emaxres\u003c/code\u003e, each with distinct resolutions to accommodate different display needs.\u003c/p\u003e\n"]]],["Thumbnail resources define various image sizes (`default`, `medium`, `high`, etc.) for different resource types. Image dimensions vary by resource type and resolution. The `thumbnails` resource is an object within `snippet.thumbnails` that holds size-specific objects, each with `url`, `width`, and `height` properties. The `set` method allows uploading a custom video thumbnail. When the dimensions don't match, the image is resized, maintaining its aspect ratio, with possible added black bars.\n"],null,["# Thumbnails\n\nA **thumbnail** resource identifies different thumbnail image sizes associated with a resource. Please note the following characteristics of thumbnail images:\n\n- A resource's `snippet.thumbnails` property is an object that identifies the thumbnail images available for that resource.\n- A `thumbnail` resource contains a series of objects. The name of each object (`default`, `medium`, `high`, etc.) refers to the thumbnail image size.\n- Different types of resources may support different thumbnail image sizes.\n- Different types of resources may define different sizes for thumbnail images with the same name. For example, the `default` thumbnail image for a `video` resource is typically 120px by 90px, and the `default` thumbnail image for a `channel` resource is typically 88px by 88px.\n- Resources of the same type may still have different thumbnail image sizes for certain images depending on the resolution of the original image or content uploaded to YouTube. For example, an HD video may support higher resolution thumbnails than non-HD videos.\n- Each object that contains information about a thumbnail image size has a `width` property and a `height` property. However, the width and height properties may not be returned for that image.\n- If an uploaded thumbnail image does not match the required dimensions, the image is resized to match the correct size without changing its aspect ratio. The image is not cropped, but may include black bars so that the size is correct.\n\n\u003cbr /\u003e\n\nMethods\n-------\n\nThe API supports the following methods for `thumbnails` resources:\n\n[set](/youtube/v3/docs/thumbnails/set)\n: Uploads a custom video thumbnail to YouTube and sets it for a video.\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `thumbnails` resource: \n\n```text\n{\n \"default\": {\n \"url\": string,\n \"width\": unsigned integer,\n \"height\": unsigned integer\n },\n \"medium\": {\n \"url\": string,\n \"width\": unsigned integer,\n \"height\": unsigned integer\n },\n \"high\": {\n \"url\": string,\n \"width\": unsigned integer,\n \"height\": unsigned integer\n },\n \"standard\": {\n \"url\": string,\n \"width\": unsigned integer,\n \"height\": unsigned integer\n },\n \"maxres\": {\n \"url\": string,\n \"width\": unsigned integer,\n \"height\": unsigned integer\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `default` | `object` The default thumbnail image. The default thumbnail for a video -- or a resource that refers to a video, such as a playlist item or search result -- is 120px wide and 90px tall. The default thumbnail for a channel is 88px wide and 88px tall. |\n| default.`url` | `string` The image's URL. |\n| default.`width` | `unsigned integer` The image's width. |\n| default.`height` | `unsigned integer` The image's height. |\n| `medium` | `object` A higher resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 320px wide and 180px tall. For a channel, this image is 240px wide and 240px tall. |\n| medium.`url` | `string` The image's URL. |\n| medium.`width` | `unsigned integer` The image's width. |\n| medium.`height` | `unsigned integer` The image's height. |\n| `high` | `object` A high resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 480px wide and 360px tall. For a channel, this image is 800px wide and 800px tall. |\n| high.`url` | `string` The image's URL. |\n| high.`width` | `unsigned integer` The image's width. |\n| high.`height` | `unsigned integer` The image's height. |\n| `standard` | `object` An even higher resolution version of the thumbnail image than the `high` resolution image. This image is available for some videos and other resources that refer to videos, like playlist items or search results. This image is 640px wide and 480px tall. |\n| standard.`url` | `string` The image's URL. |\n| standard.`width` | `unsigned integer` The image's width. |\n| standard.`height` | `unsigned integer` The image's height. |\n| `maxres` | `object` The highest resolution version of the thumbnail image. This image size is available for some videos and other resources that refer to videos, like playlist items or search results. This image is 1280px wide and 720px tall. |\n| maxres.`url` | `string` The image's URL. |\n| maxres.`width` | `unsigned integer` The image's width. |\n| maxres.`height` | `unsigned integer` The image's height. |"]]