{ "action": "resize", "status": "error", "code": 312, "message": "Invalid extension type. Extension: null. Please verify the extension is one of the following: png, jpg, jpeg and the file is accessible."}
Media
Thay đổi kích thước Hình ảnh
Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.
{ "action": "resize", "status": "error", "code": 312, "message": "Invalid extension type. Extension: null. Please verify the extension is one of the following: png, jpg, jpeg and the file is accessible."}
Các mạng xã hội có yêu cầu cụ thể đối với hình ảnh trên mạng xã hội. Endpoint resize cho phép bạn chọn kích thước hình ảnh tương thích với mạng xã hội, thêm watermark, thay đổi nền, thêm hiệu ứng, cắt hình và nhiều hơn nữa.Theo mặc định, việc thay đổi kích thước sẽ thay đổi kích thước của hình ảnh, nhưng không cắt hình ảnh. Thay vào đó, bạn có thể cắt hình ảnh. Xem chi tiết bên dưới.
Tham số Header
Tham số Body
string
URL của hình ảnh cần thay đổi kích thước. Phải bắt đầu bằng https://. Bắt buộc nếu file không có mặt.
imageUrl cũng hoạt động. Nếu gửi cả hai, imageUrl sẽ được sử dụng.
string
Một nền tảng để thay đổi kích thước, ví dụ "instagram". Bắt buộc nếu dimensions không có mặt, ngoại trừ các yêu cầu chỉ thêm watermark hoặc chỉ đổi định dạng (convertToJpg, convertToWebP). Xem tùy chọn nền
tảng để biết chi tiết.
object
Gửi tệp media dưới dạng đối tượng multipart form-data. Bắt buộc nếu mediaUrl không có mặt.
object
URL và vị trí tùy chọn của watermark sẽ được áp dụng lên hình ảnh đã thay đổi kích thước. Watermark sẽ xuất hiện
ở góc dưới bên phải của hình ảnh theo mặc định. Xem watermark
để biết chi tiết.
object
Thay đổi độ mờ, màu sắc, v.v. Xem tùy chọn hiệu ứng để biết
chi tiết.
object
Đối tượng chỉ định width và height để thay đổi kích thước. Nếu cắt hình, bạn có thể tùy chọn chỉ định tọa độ trung tâm x và y.
Mặc định là trung tâm của hình ảnh.
Dimensions
{ "width": 500, "height": 500, "xCoordinate": 35, // tùy chọn cho chế độ cắt "yCoordinate": 50 // tùy chọn cho chế độ cắt}
Width và height bắt buộc nếu không chỉ định platform.
string
mặc định:"resize"
Giá trị: resize, blur, hoặc crop. Xem mode để biết chi tiết.
boolean
Tự động chuyển đổi sang tệp JPG, chẳng hạn từ PNG sang tệp JPG. Chất lượng 75% sẽ được sử dụng.
Xem convert to a JPG để biết chi tiết.
boolean
Tự động chuyển đổi sang tệp WebP, chẳng hạn từ PNG sang tệp WebP. Chất lượng 75% sẽ được sử dụng.
Xem convert to a WebP để biết chi tiết.
Tùy chọn Nền tảng
Chỉ định một platform dưới dạng String để sử dụng kích thước được định nghĩa trước của hình ảnh, hoặc bạn có thể chỉ định kích thước của riêng mình bằng trường dimensions.Ví dụ "platform": "facebook" sẽ đặt kích thước của hình ảnh là width 1200px và height 630px.
facebook: width 1200px, height 630px.
instagram: width 1080px, height 1080px.
instagram_landscape: width 1080px, height 680px.
instagram_portrait: width 1080px, height 1920px.
instagram_special: width 1080px, height 800px.
linkedin: width 1200px, height 627px.
pinterest: width 1080px, height 1920px.
tiktok: width 1080px, height 1920px.
twitter: width 1600px, height 900px.
Lưu ý rằng thay đổi kích thước theo các kích thước này sẽ không cắt hình ảnh.
Nếu bạn muốn cắt hình ảnh, bạn có thể sử dụng tham số mode đặt thành crop với các trường dimensions và xCoordinate và yCoordinate.
Mode
Resize
Resize là chế độ mặc định sẽ thay đổi kích thước của hình ảnh trong khi vẫn giữ nguyên tỷ lệ khung hình.
Thay đổi kích thước hình ảnh theo kích thước được chỉ định mà không cắt bất kỳ nội dung nào.Ví dụ JSON:
Bắt buộc phải chỉ định platform hoặc các trường width và height trong dimensions.
Crop
Crop sẽ cắt bỏ hình ảnh theo kích thước được chỉ định. Theo mặc định, tọa độ trung tâm sẽ là trung tâm của hình ảnh. Bạn cũng có thể chỉ định tọa độ x/y của riêng mình.Ví dụ JSON:
Bắt buộc phải chỉ định platform hoặc các trường width và height trong dimensions.Đối với các cắt vuông, nếu width hoặc height nhỏ hơn kích thước của hình ảnh được cung cấp, giá trị nhỏ hơn giữa width hoặc height sẽ được sử dụng. Ví dụ, nếu hình ảnh là 1200x800 và yêu cầu cắt là 1080x1080, hình ảnh trả về sẽ là 800x800.
Blur
Hiệu ứng blur sẽ nhân đôi hình ảnh làm nền và làm mờ hình ảnh.Ví dụ JSON blur:
Bạn có thể thêm watermark vào hình ảnh bằng cách cung cấp URL, phải bắt đầu bằng https:// và một vị trí tùy chọn.
Watermark sẽ mặc định xuất hiện ở góc dưới bên phải của hình ảnh - southeast.Chúng tôi khuyến nghị một tệp PNG với nền trong suốt.Ví dụ JSON watermark:
Bạn có thể thay đổi màu chính của hình ảnh bằng cách chỉ định grayscale, sepia, hoặc invert. Trường "blur": true không bắt buộc và không nên được sử dụng nếu bạn không muốn có nền.Ví dụ JSON grayscale:
Đặt độ mờ của hình ảnh. Phạm vi giá trị số: 0 - 1.Ví dụ JSON opacity:
Opacity
{ "effects": { "opacity": 0.2 }}
Quality
Đối với hình ảnh JPG hoặc JPEG, chỉ định chất lượng, hoặc mức độ nén, của hình ảnh.
Số càng thấp thì độ nén càng cao, nhưng chất lượng hình ảnh càng thấp.
Số càng cao thì độ nén càng thấp, nhưng chất lượng hình ảnh càng cao. Phạm vi giá trị số: 0 - 100.Ví dụ JSON quality:
Quality
{ "effects": { "quality": 20 }}
Chuyển đổi sang JPG hoặc WebP
Các tùy chọn convertToJpg và convertToWebP cho phép bạn chuyển đổi hình ảnh từ định dạng ban đầu (như PNG) sang định dạng JPG hoặc WebP tương ứng.
Theo mặc định, các hình ảnh đã chuyển đổi sẽ có cài đặt chất lượng 75%.Bạn có thể tùy chỉnh mức độ nén bằng tham số quality trong đối tượng effects.Lưu ý rằng nếu hình ảnh gốc của bạn đã là JPG và bạn sử dụng convertToJpg, API sẽ chỉ đơn giản thay đổi kích thước hình ảnh theo kích thước bạn chỉ định mà không thay đổi định dạng.Ví dụ chuyển đổi sang JPG:
{ "action": "resize", "status": "error", "code": 312, "message": "Invalid extension type. Extension: null. Please verify the extension is one of the following: png, jpg, jpeg and the file is accessible."}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ayrshare Docs","colors":{"primary":"#2266C2","light":"#4985D8","dark":"#1A4E9A"},"logo":{"light":"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=8d23367f493d06599eecbbfa2b6325cf","dark":"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-dark.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=77590acef2781d2fec9a1b14b6e09b73","href":"https://www.ayrshare.com/docs"},"favicon":"https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/logos/icon-docs.png?fit=max\u0026auto=format\u0026n=dKBti0xVDJrOZ19f\u0026q=85\u0026s=9704762afaad78a9cfdd90a20cb1d253","api":{"playground":{"display":"simple"},"examples":{"languages":["bash","javascript","python","php","go","java"]},"mdx":{"auth":{"method":"bearer"},"server":"https://api.ayrshare.com/api"}},"appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://www.ayrshare.com/blog","label":"Blog"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.ayrshare.com"}},"footer":{"socials":{"github":"https://github.com/ayrshare","x":"https://x.com/ayrshare","bluesky":"https://bsky.app/profile/ayrshare.com","facebook":"https://www.facebook.com/Ayrshare","linkedin":"https://www.linkedin.com/company/ayrshare","youtube":"https://www.youtube.com/@ayrshare"}},"seo":{"indexing":"navigable"},"styling":{"codeblocks":"system","latex":true},"integrations":{"gtm":{"tagId":"GTM-P23WG8W"},"plausible":{"domain":"docs.ayrshare.com"}},"contextual":{"options":["copy","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"navigation":{"languages":[{"language":"en","href":"introduction"},{"language":"es","href":"es/introduction"},{"language":"cn","hidden":true,"href":"cn/introduction"},{"language":"zh","hidden":true,"href":"zh/introduction"},{"language":"pt-BR","href":"pt-BR/introduction"},{"language":"fr","href":"fr/introduction"},{"language":"de","href":"de/introduction"},{"language":"vi","href":"vi/introduction"},{"language":"ja","href":"ja/introduction"},{"language":"uk","href":"uk/introduction"},{"language":"hi","href":"hi/introduction"},{"language":"ar","href":"ar/introduction"},{"language":"zh-Hans","href":"zh-Hans/introduction"},{"language":"zh-Hant","href":"zh-Hant/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ayrshare-docs","hasAudioNarration":false,"actualSubdomain":"ayrshare-docs","customDomains":["www.ayrshare.com"],"gitSource":{"type":"github","owner":"ayrshare","repo":"ayrshare_3","deployBranch":"docs-prod","contentDirectory":"apps/mintlify","isPrivate":true,"mountPath":"","label":"","_id":"6aec8a4b6de9d64b11a45855"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b098ef4e61e2696e7016ed3","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"en","tag":"Documentation","count":262},{"language":"ar","tag":"Documentation","count":262},{"language":"de","tag":"Documentation","count":262},{"language":"es","tag":"Documentation","count":262},{"language":"fr","tag":"Documentation","count":262},{"language":"hi","tag":"Documentation","count":262},{"language":"ja","tag":"Documentation","count":262},{"language":"pt-BR","tag":"Documentation","count":262},{"language":"uk","tag":"Documentation","count":262},{"language":"vi","tag":"Documentation","count":262},{"language":"zh-Hans","tag":"Documentation","count":262},{"language":"zh-Hant","tag":"Documentation","count":262},{"language":"en","tag":"API Endpoints","count":183},{"language":"ar","tag":"API Endpoints","count":183},{"language":"de","tag":"API Endpoints","count":183},{"language":"es","tag":"API Endpoints","count":183},{"language":"fr","tag":"API Endpoints","count":183},{"language":"hi","tag":"API Endpoints","count":183},{"language":"ja","tag":"API Endpoints","count":183},{"language":"pt-BR","tag":"API Endpoints","count":183},{"language":"uk","tag":"API Endpoints","count":183},{"language":"vi","tag":"API Endpoints","count":183},{"language":"zh-Hans","tag":"API Endpoints","count":183},{"language":"zh-Hant","tag":"API Endpoints","count":183},{"language":"en","tag":"Help Center","count":126},{"language":"ar","tag":"Help Center","count":126},{"language":"de","tag":"Help Center","count":126},{"language":"es","tag":"Help Center","count":126},{"language":"fr","tag":"Help Center","count":126},{"language":"hi","tag":"Help Center","count":126},{"language":"ja","tag":"Help Center","count":126},{"language":"pt-BR","tag":"Help Center","count":126},{"language":"uk","tag":"Help Center","count":126},{"language":"vi","tag":"Help Center","count":126},{"language":"zh-Hans","tag":"Help Center","count":126},{"language":"zh-Hant","tag":"Help Center","count":126},{"language":"en","tag":"Ads","count":43},{"language":"ar","tag":"Ads","count":43},{"language":"de","tag":"Ads","count":43},{"language":"es","tag":"Ads","count":43},{"language":"fr","tag":"Ads","count":43},{"language":"hi","tag":"Ads","count":43},{"language":"ja","tag":"Ads","count":43},{"language":"pt-BR","tag":"Ads","count":43},{"language":"uk","tag":"Ads","count":43},{"language":"vi","tag":"Ads","count":43},{"language":"zh-Hans","tag":"Ads","count":43},{"language":"zh-Hant","tag":"Ads","count":43},{"language":"en","tag":"Additional","count":41},{"language":"ar","tag":"Additional","count":41},{"language":"de","tag":"Additional","count":41},{"language":"es","tag":"Additional","count":41},{"language":"fr","tag":"Additional","count":41},{"language":"hi","tag":"Additional","count":41},{"language":"ja","tag":"Additional","count":41},{"language":"pt-BR","tag":"Additional","count":41},{"language":"uk","tag":"Additional","count":41},{"language":"vi","tag":"Additional","count":41},{"language":"zh-Hans","tag":"Additional","count":41},{"language":"zh-Hant","tag":"Additional","count":41},{"language":"en","tag":"Technical Support","count":40},{"language":"ar","tag":"Technical Support","count":40},{"language":"de","tag":"Technical Support","count":40},{"language":"es","tag":"Technical Support","count":40},{"language":"fr","tag":"Technical Support","count":40},{"language":"hi","tag":"Technical Support","count":40},{"language":"ja","tag":"Technical Support","count":40},{"language":"pt-BR","tag":"Technical Support","count":40},{"language":"uk","tag":"Technical Support","count":40},{"language":"vi","tag":"Technical Support","count":40},{"language":"zh-Hans","tag":"Technical Support","count":40},{"language":"zh-Hant","tag":"Technical Support","count":40},{"language":"en","tag":"Post","count":22},{"language":"ar","tag":"Post","count":22},{"language":"de","tag":"Post","count":22},{"language":"es","tag":"Post","count":22},{"language":"fr","tag":"Post","count":22},{"language":"hi","tag":"Post","count":22},{"language":"ja","tag":"Post","count":22},{"language":"pt-BR","tag":"Post","count":22},{"language":"uk","tag":"Post","count":22},{"language":"vi","tag":"Post","count":22},{"language":"zh-Hans","tag":"Post","count":22},{"language":"zh-Hant","tag":"Post","count":22},{"language":"en","tag":"Dashboard","count":21},{"language":"ar","tag":"Dashboard","count":21},{"language":"de","tag":"Dashboard","count":21},{"language":"es","tag":"Dashboard","count":21},{"language":"fr","tag":"Dashboard","count":21},{"language":"hi","tag":"Dashboard","count":21},{"language":"ja","tag":"Dashboard","count":21},{"language":"pt-BR","tag":"Dashboard","count":21},{"language":"uk","tag":"Dashboard","count":21},{"language":"vi","tag":"Dashboard","count":21},{"language":"zh-Hans","tag":"Dashboard","count":21},{"language":"zh-Hant","tag":"Dashboard","count":21},{"language":"en","tag":"Product","count":16},{"language":"ar","tag":"Product","count":16},{"language":"de","tag":"Product","count":16},{"language":"es","tag":"Product","count":16},{"language":"fr","tag":"Product","count":16},{"language":"hi","tag":"Product","count":16},{"language":"ja","tag":"Product","count":16},{"language":"pt-BR","tag":"Product","count":16},{"language":"uk","tag":"Product","count":16},{"language":"vi","tag":"Product","count":16},{"language":"zh-Hans","tag":"Product","count":16},{"language":"zh-Hant","tag":"Product","count":16},{"language":"en","tag":"Facebook Ads","count":15},{"language":"ar","tag":"Facebook Ads","count":15},{"language":"de","tag":"Facebook Ads","count":15},{"language":"es","tag":"Facebook Ads","count":15},{"language":"fr","tag":"Facebook Ads","count":15},{"language":"hi","tag":"Facebook Ads","count":15},{"language":"ja","tag":"Facebook Ads","count":15},{"language":"pt-BR","tag":"Facebook Ads","count":15},{"language":"uk","tag":"Facebook Ads","count":15},{"language":"vi","tag":"Facebook Ads","count":15},{"language":"zh-Hans","tag":"Facebook Ads","count":15},{"language":"zh-Hant","tag":"Facebook Ads","count":15}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".center{display:block;margin-left:auto;margin-right:auto;max-width:100%;height:auto}.welcome-banner{margin-left:auto;margin-right:auto;max-width:100%;height:auto;border-radius:12px}.custom-bullets{padding-left:0}.custom-bullets li{position:relative;padding-left:1.5em;margin-bottom:0.75em;list-style-type:none;line-height:1.4}.custom-bullets li::before{content:\"\\2022\";color:#2266c2;position:absolute;left:0.5em;top:0}.custom-bullets li:last-child{margin-bottom:0}.custom-bullets li>*{margin-top:0;margin-bottom:0}ul ul{margin-left:20px}.custom-bullets li::after,.custom-bullets li::before{border:none!important;background:none!important}.button{background-color:#2266c2;color:#fff;padding:16px 24px;border-radius:8px;border:none;transition-duration:0.2s;margin-top:100px}.button:hover{background-color:#133e76;color:white}.button2{background-color:#fff;color:#2266c2;padding:16px 24px;border-radius:8px;border:1px solid #2266c2;transition-duration:0.2s}.button2:hover{background-color:#133e76;color:white}.video-container{width:100%;max-width:560px;margin:0 auto}.video-container iframe{width:100%;height:auto;aspect-ratio:16 / 9}.plan-tag-light{font-family:\"JetBrains Mono\", monospace;display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;color:#ffffff;background-color:#16171b;margin-right:10px}.plan-tag-dark{font-family:\"JetBrains Mono\", monospace;display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;color:#3f4144;background-color:#b7b9bb;margin-right:10px}@media (min-width: 768px){.video-container{display:flex;justify-content:center;align-items:center}}code{font-size:0.96em;line-height:1.7em}dialog.ayr-playground{padding:0;border:none;background:transparent;width:min(1100px, calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;overflow-y:auto}dialog.ayr-playground::backdrop{background:rgb(3 7 18 / 0.6);backdrop-filter:blur(2px)}.ayr-playground-card{--ayr-border: rgb(3 7 18 / 0.1);--ayr-muted-bg: rgb(3 7 18 / 0.03);border:1px solid var(--ayr-border);border-radius:16px;background:rgb(var(--background-light));box-shadow:0 24px 48px -12px rgb(0 0 0 / 0.35)}.dark .ayr-playground-card{--ayr-border: rgb(255 255 255 / 0.1);--ayr-muted-bg: rgb(255 255 255 / 0.04);background:rgb(var(--background-dark))}.ayr-playground-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1rem 0.75rem 1.25rem}.ayr-playground-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;color:rgb(107 114 128)}.ayr-playground-close:hover{background:var(--ayr-muted-bg);color:inherit}.ayr-playground-request{display:flex;align-items:stretch;gap:0.75rem;padding:0 1.25rem 1rem;border-bottom:1px solid var(--ayr-border)}.ayr-playground-url{display:flex;flex:1;min-width:0;align-items:center;gap:0.75rem;min-height:44px;padding:0 0.875rem;border:1px solid var(--ayr-border);border-radius:10px;background:var(--ayr-muted-bg)}.ayr-playground-send{flex-shrink:0;padding:0 1.25rem;border-radius:10px}.ayr-playground-url code{padding:0;border:none;background:none}.ayr-playground-method{flex-shrink:0;padding:0.125rem 0.5rem;border-radius:6px;background:rgb(34 197 94 / 0.15);color:rgb(21 128 61);font-size:0.75rem;font-weight:700}.dark .ayr-playground-method{color:rgb(74 222 128)}.ayr-playground-body{display:grid;gap:1.75rem;padding:1.25rem}@media (min-width: 768px){.ayr-playground-body{grid-template-columns:minmax(0, 5fr) minmax(0, 7fr)}}.ayr-playground-fields,.ayr-playground-output{display:flex;flex-direction:column;gap:1.5rem;min-width:0}.ayr-playground-section-title{display:flex;align-items:center;gap:0.5rem;margin-bottom:0.75rem;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:rgb(107 114 128)}.ayr-playground-output .code-block,.ayr-playground-output .code-group{margin-top:0;margin-bottom:0}.ayr-playground-status{padding:0.0625rem 0.5rem;border-radius:9999px;font-size:0.75rem;letter-spacing:normal;text-transform:none}.ayr-playground-status.is-ok{background:rgb(34 197 94 / 0.15);color:rgb(21 128 61)}.ayr-playground-status.is-error{background:rgb(239 68 68 / 0.15);color:rgb(185 28 28)}.dark .ayr-playground-status.is-ok{color:rgb(74 222 128)}.dark .ayr-playground-status.is-error{color:rgb(248 113 113)}.ayr-playground-empty{padding:1.5rem 1rem;border:1px dashed var(--ayr-border);border-radius:12px;text-align:center;font-size:0.875rem;color:rgb(107 114 128)}.ayr-playground-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.dark .ayr-playground-section-title,.dark .ayr-playground-empty,.dark .ayr-playground-close{color:rgb(156 163 175)}.dark .ayr-playground-close:hover{color:inherit}"}]}
{"page":{"pagePath":"vi/apis/media/resize","slug":"/vi/apis/media/resize","pageMetadata":{"title":"Thay đổi kích thước Hình ảnh","description":"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.","api":"POST /media/resize","href":"/vi/apis/media/resize"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const HeaderAPI=({noProfileKey,profileKeyRequired})=>{const _components={a:`a`,..._provideComponents()},{ParamField}=_components;if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,children:[_jsx(_components.a,{href:`/apis/overview#authorization`,children:`API Key`}),` of the Primary Profile.`,_jsx(`br`,{}),_jsx(`br`,{}),`Format: `,_jsx(`code`,{children:`Authorization: Bearer API_KEY`})]}),!noProfileKey\u0026\u0026(profileKeyRequired?_jsxs(ParamField,{header:`Profile-Key`,type:`string`,required:true,children:[_jsx(_components.a,{href:`/apis/overview#profile-key-format`,children:`Profile Key`}),` of a User Profile.`,_jsx(`br`,{}),_jsx(`br`,{}),`Format: `,_jsx(`code`,{children:`Profile-Key: PROFILE_KEY`})]}):_jsxs(ParamField,{header:`Profile-Key`,type:`string`,children:[_jsx(_components.a,{href:`/apis/overview#profile-key-format`,children:`Profile Key`}),` of a User Profile.`,_jsx(`br`,{}),_jsx(`br`,{}),`Format: `,_jsx(`code`,{children:`Profile-Key: PROFILE_KEY`})]}))]})};const PlansAvailable=({plans=[],maxPackRequired})=>{const{Note}=_provideComponents()||{};if(!Note)_missingMdxReference(`Note`,true);let displayPlans=plans;if(plans\u0026\u0026plans.length===1){const lowerCasePlan=plans[0].toLowerCase();if(lowerCasePlan===`business`){displayPlans=[`Launch`,`Business`,`Enterprise`]}else if(lowerCasePlan===`premium`){displayPlans=[`Premium`,`Launch`,`Business`,`Enterprise`]}}return _jsxs(Note,{children:[`Available on `,displayPlans.length===1?`the `:``,displayPlans.join(`, `).replace(/\\b\\w/g,l=>l.toUpperCase()),` `,displayPlans.length>1?`plans`:`plan`,`.`,maxPackRequired\u0026\u0026_jsx(`span`,{onClick:()=>window.open(`https://www.ayrshare.com/docs/additional/maxpack`,`_self`),className:`mint-flex mint-items-center mint-mt-2 mint-cursor-pointer`,children:_jsx(`span`,{className:`mint-px-1.5 mint-py-0.5 mint-rounded mint-text-sm`,style:{backgroundColor:`#C264B6`,color:`white`,fontSize:`12px`},children:`Max Pack required`})})]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,OptimizedImage,ParamField,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`PlansAvailable`,children:_jsx(PlansAvailable,{plans:[`premium`],maxPackRequired:true})}),`\n`,_jsxs(_components.p,{children:[`Các mạng xã hội có `,_jsx(_components.a,{href:`/media-guidelines/overview`,children:`yêu cầu cụ thể`}),` đối với hình ảnh trên mạng xã hội. Endpoint resize cho phép bạn chọn kích thước hình ảnh tương thích với mạng xã hội, thêm watermark, thay đổi nền, thêm hiệu ứng, cắt hình và nhiều hơn nữa.`]}),`\n`,_jsx(_components.p,{children:`Theo mặc định, việc thay đổi kích thước sẽ thay đổi kích thước của hình ảnh, nhưng không cắt hình ảnh. Thay vào đó, bạn có thể cắt hình ảnh. Xem chi tiết bên dưới.`}),`\n`,_jsx(Heading,{level:`2`,id:`tham-số-header`,children:`Tham số Header`}),`\n`,_jsx(_MdxComponentBoundary,{name:`HeaderAPI`,children:_jsx(HeaderAPI,{noProfileKey:true})}),`\n`,_jsx(Heading,{level:`2`,id:`tham-số-body`,children:`Tham số Body`}),`\n`,_jsx(ParamField,{body:`mediaUrl`,type:`string`,id:`param-media-url`,children:_jsxs(_components.p,{children:[`URL của hình ảnh cần thay đổi kích thước. Phải bắt đầu bằng `,_jsx(_components.code,{children:`https://`}),`. Bắt buộc nếu `,_jsx(_components.code,{children:`file`}),` không có mặt.\n`,_jsx(_components.code,{children:`imageUrl`}),` cũng hoạt động. Nếu gửi cả hai, `,_jsx(_components.code,{children:`imageUrl`}),` sẽ được sử dụng.`]})}),`\n`,_jsx(ParamField,{body:`platform`,type:`string`,id:`param-platform`,children:_jsxs(_components.p,{children:[`Một nền tảng để thay đổi kích thước, ví dụ `,_jsx(_components.code,{children:`\"instagram\"`}),`. Bắt buộc nếu `,_jsx(_components.code,{children:`dimensions`}),` không có mặt, ngoại trừ các yêu cầu chỉ thêm watermark hoặc chỉ đổi định dạng (`,_jsx(_components.code,{children:`convertToJpg`}),`, `,_jsx(_components.code,{children:`convertToWebP`}),`). Xem `,_jsx(_components.a,{href:`/apis/media/resize#platform-options`,children:`tùy chọn nền\ntảng`}),` để biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`file`,type:`object`,id:`param-file`,children:_jsxs(_components.p,{children:[`Gửi tệp media dưới dạng đối tượng multipart form-data. Bắt buộc nếu `,_jsx(_components.code,{children:`mediaUrl`}),` không có mặt.`]})}),`\n`,_jsx(ParamField,{body:`watermark`,type:`object`,id:`param-watermark`,children:_jsxs(_components.p,{children:[`URL và vị trí tùy chọn của watermark sẽ được áp dụng lên hình ảnh đã thay đổi kích thước. Watermark sẽ xuất hiện\nở góc dưới bên phải của hình ảnh theo mặc định. Xem `,_jsx(_components.a,{href:`/apis/media/resize#watermark`,children:`watermark`}),`\nđể biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`effects`,type:`object`,id:`param-effects`,children:_jsxs(_components.p,{children:[`Thay đổi độ mờ, màu sắc, v.v. Xem `,_jsx(_components.a,{href:`/apis/media/resize#effects-options`,children:`tùy chọn hiệu ứng`}),` để biết\nchi tiết.`]})}),`\n`,_jsxs(ParamField,{body:`dimensions`,type:`object`,id:`param-dimensions`,children:[_jsxs(_components.p,{children:[`Đối tượng chỉ định `,_jsx(_components.code,{children:`width`}),` và `,_jsx(_components.code,{children:`height`}),` để thay đổi kích thước. Nếu cắt hình, bạn có thể tùy chọn chỉ định tọa độ trung tâm `,_jsx(_components.code,{children:`x`}),` và `,_jsx(_components.code,{children:`y`}),`.\nMặc định là trung tâm của hình ảnh.`]}),_jsx(CodeBlock,{filename:`Dimensions`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"xCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// tùy chọn cho chế độ cắt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"yCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // tùy chọn cho chế độ cắt`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Note,{children:`Width và height bắt buộc nếu không chỉ định platform.`})]}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,default:`resize`,id:`param-mode`,children:_jsxs(_components.p,{children:[`Giá trị: `,_jsx(_components.code,{children:`resize`}),`, `,_jsx(_components.code,{children:`blur`}),`, hoặc `,_jsx(_components.code,{children:`crop`}),`. Xem `,_jsx(_components.a,{href:`/apis/media/resize#mode`,children:`mode`}),` để biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`convertToJpg`,type:`boolean`,id:`param-convert-to-jpg`,children:_jsxs(_components.p,{children:[`Tự động chuyển đổi sang tệp JPG, chẳng hạn từ PNG sang tệp JPG. Chất lượng 75% sẽ được sử dụng.\nXem `,_jsx(_components.a,{href:`/apis/media/resize#convert-to-a-jpg-or-webp`,children:`convert to a JPG`}),` để biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`convertToWebP`,type:`boolean`,id:`param-convert-to-web-p`,children:_jsxs(_components.p,{children:[`Tự động chuyển đổi sang tệp WebP, chẳng hạn từ PNG sang tệp WebP. Chất lượng 75% sẽ được sử dụng.\nXem `,_jsx(_components.a,{href:`/apis/media/resize#convert-to-a-jpg-or-webp`,children:`convert to a WebP`}),` để biết chi tiết.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`platform-options`,children:`Tùy chọn Nền tảng`}),`\n`,_jsxs(_components.p,{children:[`Chỉ định một platform dưới dạng String để sử dụng kích thước được định nghĩa trước của hình ảnh, hoặc bạn có thể chỉ định kích thước của riêng mình bằng trường `,_jsx(_components.code,{children:`dimensions`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Ví dụ `,_jsx(_components.code,{children:`\"platform\": \"facebook\"`}),` sẽ đặt kích thước của hình ảnh là width 1200px và height 630px.`]}),`\n`,_jsxs(`ul`,{class:`custom-bullets`,children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`facebook`}),`: width 1200px, height 630px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram`}),`: width 1080px, height 1080px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram_landscape`}),`: width 1080px, height 680px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram_portrait`}),`: width 1080px, height 1920px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram_special`}),`: width 1080px, height 800px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`linkedin`}),`: width 1200px, height 627px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`pinterest`}),`: width 1080px, height 1920px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`tiktok`}),`: width 1080px, height 1920px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`twitter`}),`: width 1600px, height 900px.`]})]}),`\n`,_jsxs(_components.p,{children:[`Lưu ý rằng thay đổi kích thước theo các kích thước này sẽ không cắt hình ảnh.\nNếu bạn muốn cắt hình ảnh, bạn có thể sử dụng tham số `,_jsx(_components.code,{children:`mode`}),` đặt thành `,_jsx(_components.code,{children:`crop`}),` với các trường `,_jsx(_components.code,{children:`dimensions`}),` và `,_jsx(_components.code,{children:`xCoordinate`}),` và `,_jsx(_components.code,{children:`yCoordinate`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`mode`,children:`Mode`}),`\n`,_jsx(Heading,{level:`4`,id:`resize`,children:`Resize`}),`\n`,_jsx(_components.p,{children:`Resize là chế độ mặc định sẽ thay đổi kích thước của hình ảnh trong khi vẫn giữ nguyên tỷ lệ khung hình.\nThay đổi kích thước hình ảnh theo kích thước được chỉ định mà không cắt bất kỳ nội dung nào.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON:`}),`\n`,_jsx(CodeBlock,{filename:`Resize`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resize\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bạn cũng có thể chỉ định kích thước tùy chỉnh bằng trường `,_jsx(_components.code,{children:`dimensions`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:`Resize with Dimensions`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dimensions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`600`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bắt buộc phải chỉ định `,_jsx(_components.code,{children:`platform`}),` hoặc các trường `,_jsx(_components.code,{children:`width`}),` và `,_jsx(_components.code,{children:`height`}),` trong dimensions.`]}),`\n`,_jsx(Heading,{level:`4`,id:`crop`,children:`Crop`}),`\n`,_jsx(_components.p,{children:`Crop sẽ cắt bỏ hình ảnh theo kích thước được chỉ định. Theo mặc định, tọa độ trung tâm sẽ là trung tâm của hình ảnh. Bạn cũng có thể chỉ định tọa độ x/y của riêng mình.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON:`}),`\n`,_jsx(CodeBlock,{filename:`Crop`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"crop\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bạn cũng có thể chỉ định kích thước tùy chỉnh và tọa độ cắt tùy chọn bằng trường `,_jsx(_components.code,{children:`dimensions`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:`Crop with Dimensions`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"crop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dimensions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1080`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1080`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"xCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"yCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bắt buộc phải chỉ định `,_jsx(_components.code,{children:`platform`}),` hoặc các trường `,_jsx(_components.code,{children:`width`}),` và `,_jsx(_components.code,{children:`height`}),` trong dimensions.`]}),`\n`,_jsxs(_components.p,{children:[`Đối với các cắt vuông, nếu `,_jsx(_components.code,{children:`width`}),` hoặc `,_jsx(_components.code,{children:`height`}),` nhỏ hơn kích thước của hình ảnh được cung cấp, giá trị nhỏ hơn giữa `,_jsx(_components.code,{children:`width`}),` hoặc `,_jsx(_components.code,{children:`height`}),` sẽ được sử dụng. Ví dụ, nếu hình ảnh là 1200x800 và yêu cầu cắt là 1080x1080, hình ảnh trả về sẽ là 800x800.`]}),`\n`,_jsx(Heading,{level:`4`,id:`blur`,children:`Blur`}),`\n`,_jsx(_components.p,{children:`Hiệu ứng blur sẽ nhân đôi hình ảnh làm nền và làm mờ hình ảnh.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON blur:`}),`\n`,_jsx(CodeBlock,{filename:`Blur`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blur\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh blur:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=8877f9f348f319fc683bc7928d767dbb`,alt:`Background with Blur`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/blur.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=a3f7d0cfddf0aa46cb5d959086ed0850 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=d8aec671e316e7091977317dd5a81440 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=fed5618cdb417856c99dfab88a99bb5f 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=2707bd4343e6e44e205a90181e9161c7 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=a4b509bc01d11a1196006198f67e4b58 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=53390a2035aec583185d1c11628b9ccb 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`watermark`,children:`Watermark`}),`\n`,_jsx(Heading,{level:`4`,id:`tổng-quan-về-watermark`,children:`Tổng quan về Watermark`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể thêm watermark vào hình ảnh bằng cách cung cấp URL, phải bắt đầu bằng `,_jsx(_components.code,{children:`https://`}),` và một vị trí tùy chọn.\nWatermark sẽ mặc định xuất hiện ở góc dưới bên phải của hình ảnh - `,_jsx(_components.code,{children:`southeast`}),`.`]}),`\n`,_jsx(_components.p,{children:`Chúng tôi khuyến nghị một tệp PNG với nền trong suốt.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON watermark:`}),`\n`,_jsx(CodeBlock,{filename:`Watermark`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/random/photo-13.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"watermark\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/100-percent.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"position\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"northeast\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // tùy chọn`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh watermark ở vị trí southeast:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=7794b66e76cfa988131ab99232af9081`,alt:`Add Watermark`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/watermark.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=40b9c934c27d4ef8381425f6bd4fee6a 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=2d0884961f47d17ac4ef59a451d0ecc4 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=02f53f8570f55366c5b061e2fdd004f3 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=145ce9971e08a1a94c2b7cefb63596b1 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=8e16795fa67b0707552f28168a23ab08 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=69b2c98353982c315c048979b755d56c 2500w`}),`\n`,_jsx(Heading,{level:`4`,id:`watermark-position`,children:`Vị trí Watermark`}),`\n`,_jsx(_components.p,{children:`Vị trí của watermark có thể là một trong các giá trị sau:`}),`\n`,_jsxs(`ul`,{class:`custom-bullets`,children:[_jsx(`li`,{children:_jsx(_components.code,{children:`north`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`northeast`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`east`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`southeast`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`south`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`southwest`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`west`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`northwest`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`center`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`effects-options`,children:`Tùy chọn Hiệu ứng`}),`\n`,_jsx(Heading,{level:`4`,id:`màu-hexadecimal`,children:`Màu Hexadecimal`}),`\n`,_jsxs(_components.p,{children:[`Giá trị hexadecimal cho màu nền của blur. Chỉ áp dụng nếu `,_jsx(_components.code,{children:`\"mode\": \"blur\"`}),`. Giá trị chuỗi, ví dụ `,_jsx(_components.code,{children:`\"#A020F0\"`})]}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON nền màu:`}),`\n`,_jsx(CodeBlock,{filename:`Color Background`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blur\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#A020F0\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh nền màu:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=07c06abcfac8e792c361cc8eaa9884a1`,alt:`Add Colored Background`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/color-background.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=b9cc90ef5e389dbdf2e44d6eea1f4203 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=4b58bd638ac270fc3e2516ea85eaf61b 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=2fd56ca2b8235170145847f0a12b1a69 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=bc234dc561daf487fe63843d3228e3cc 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=890ad5d6306508b8d8de52b3efcfbb26 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=52eb236496b849f5b182e99718a7d988 2500w`}),`\n`,_jsx(Heading,{level:`4`,id:`màu-grayscale-sepia-invert`,children:`Màu: Grayscale, Sepia, Invert`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể thay đổi màu chính của hình ảnh bằng cách chỉ định `,_jsx(_components.code,{children:`grayscale`}),`, `,_jsx(_components.code,{children:`sepia`}),`, hoặc `,_jsx(_components.code,{children:`invert`}),`. Trường `,_jsx(_components.code,{children:`\"blur\": true`}),` không bắt buộc và không nên được sử dụng nếu bạn không muốn có nền.`]}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON grayscale:`}),`\n`,_jsx(CodeBlock,{filename:`Grayscale`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/random/photo-13.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"grayscale\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh grayscale:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=c654e1485a00be0d421d4ffa19ebfbc7`,alt:`Add Grayscale`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/grayscale.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=56c1ff6fa81a68824d7a87ebaf1bdab4 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=bd418b99aafef3fc2864e619fef738e6 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=1f1a3fc8853e15421ae072a21ad189fc 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=0bca6558bc3dc54e43b2364f75722f59 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=4ca639fa93e735cc4216e89667158eb3 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=6e3758d33131ebcd1325a13fd8c15cd5 2500w`}),`\n`,_jsx(Heading,{level:`4`,id:`opacity`,children:`Opacity`}),`\n`,_jsx(_components.p,{children:`Đặt độ mờ của hình ảnh. Phạm vi giá trị số: 0 - 1.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON opacity:`}),`\n`,_jsx(CodeBlock,{filename:`Opacity`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"opacity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`quality`,children:`Quality`}),`\n`,_jsx(_components.p,{children:`Đối với hình ảnh JPG hoặc JPEG, chỉ định chất lượng, hoặc mức độ nén, của hình ảnh.\nSố càng thấp thì độ nén càng cao, nhưng chất lượng hình ảnh càng thấp.\nSố càng cao thì độ nén càng thấp, nhưng chất lượng hình ảnh càng cao. Phạm vi giá trị số: 0 - 100.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON quality:`}),`\n`,_jsx(CodeBlock,{filename:`Quality`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`convert-to-a-jpg-or-webp`,children:`Chuyển đổi sang JPG hoặc WebP`}),`\n`,_jsxs(_components.p,{children:[`Các tùy chọn `,_jsx(_components.code,{children:`convertToJpg`}),` và `,_jsx(_components.code,{children:`convertToWebP`}),` cho phép bạn chuyển đổi hình ảnh từ định dạng ban đầu (như PNG) sang định dạng JPG hoặc WebP tương ứng.\nTheo mặc định, các hình ảnh đã chuyển đổi sẽ có cài đặt chất lượng 75%.`]}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể tùy chỉnh mức độ nén bằng tham số `,_jsx(_components.a,{href:`/apis/media/resize#quality`,children:`quality`}),` trong đối tượng effects.`]}),`\n`,_jsxs(_components.p,{children:[`Lưu ý rằng nếu hình ảnh gốc của bạn đã là JPG và bạn sử dụng `,_jsx(_components.code,{children:`convertToJpg`}),`, API sẽ chỉ đơn giản thay đổi kích thước hình ảnh theo kích thước bạn chỉ định mà không thay đổi định dạng.`]}),`\n`,_jsx(_components.p,{children:`Ví dụ chuyển đổi sang JPG:`}),`\n`,_jsx(CodeBlock,{filename:`Convert to JPG`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"convertToJpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ chuyển đổi sang WebP:`}),`\n`,_jsx(CodeBlock,{filename:`Convert to WebP`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"convertToWebP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{HeaderAPI,PlansAvailable,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Thay đổi kích thước Hình ảnh","description":"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.","api":"POST /media/resize","href":"/vi/apis/media/resize"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const HeaderAPI=()=>null;const PlansAvailable=()=>null;function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,OptimizedImage,ParamField,RequestExample,ResponseExample,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`PlansAvailable`,children:_jsx(PlansAvailable,{plans:[`premium`],maxPackRequired:true})}),`\n`,_jsxs(_components.p,{children:[`Các mạng xã hội có `,_jsx(_components.a,{href:`/media-guidelines/overview`,children:`yêu cầu cụ thể`}),` đối với hình ảnh trên mạng xã hội. Endpoint resize cho phép bạn chọn kích thước hình ảnh tương thích với mạng xã hội, thêm watermark, thay đổi nền, thêm hiệu ứng, cắt hình và nhiều hơn nữa.`]}),`\n`,_jsx(_components.p,{children:`Theo mặc định, việc thay đổi kích thước sẽ thay đổi kích thước của hình ảnh, nhưng không cắt hình ảnh. Thay vào đó, bạn có thể cắt hình ảnh. Xem chi tiết bên dưới.`}),`\n`,_jsx(Heading,{level:`2`,id:`tham-số-header`,children:`Tham số Header`}),`\n`,_jsx(_MdxComponentBoundary,{name:`HeaderAPI`,children:_jsx(HeaderAPI,{noProfileKey:true})}),`\n`,_jsx(Heading,{level:`2`,id:`tham-số-body`,children:`Tham số Body`}),`\n`,_jsx(ParamField,{body:`mediaUrl`,type:`string`,id:`param-media-url`,children:_jsxs(_components.p,{children:[`URL của hình ảnh cần thay đổi kích thước. Phải bắt đầu bằng `,_jsx(_components.code,{children:`https://`}),`. Bắt buộc nếu `,_jsx(_components.code,{children:`file`}),` không có mặt.\n`,_jsx(_components.code,{children:`imageUrl`}),` cũng hoạt động. Nếu gửi cả hai, `,_jsx(_components.code,{children:`imageUrl`}),` sẽ được sử dụng.`]})}),`\n`,_jsx(ParamField,{body:`platform`,type:`string`,id:`param-platform`,children:_jsxs(_components.p,{children:[`Một nền tảng để thay đổi kích thước, ví dụ `,_jsx(_components.code,{children:`\"instagram\"`}),`. Bắt buộc nếu `,_jsx(_components.code,{children:`dimensions`}),` không có mặt, ngoại trừ các yêu cầu chỉ thêm watermark hoặc chỉ đổi định dạng (`,_jsx(_components.code,{children:`convertToJpg`}),`, `,_jsx(_components.code,{children:`convertToWebP`}),`). Xem `,_jsx(_components.a,{href:`/apis/media/resize#platform-options`,children:`tùy chọn nền\ntảng`}),` để biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`file`,type:`object`,id:`param-file`,children:_jsxs(_components.p,{children:[`Gửi tệp media dưới dạng đối tượng multipart form-data. Bắt buộc nếu `,_jsx(_components.code,{children:`mediaUrl`}),` không có mặt.`]})}),`\n`,_jsx(ParamField,{body:`watermark`,type:`object`,id:`param-watermark`,children:_jsxs(_components.p,{children:[`URL và vị trí tùy chọn của watermark sẽ được áp dụng lên hình ảnh đã thay đổi kích thước. Watermark sẽ xuất hiện\nở góc dưới bên phải của hình ảnh theo mặc định. Xem `,_jsx(_components.a,{href:`/apis/media/resize#watermark`,children:`watermark`}),`\nđể biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`effects`,type:`object`,id:`param-effects`,children:_jsxs(_components.p,{children:[`Thay đổi độ mờ, màu sắc, v.v. Xem `,_jsx(_components.a,{href:`/apis/media/resize#effects-options`,children:`tùy chọn hiệu ứng`}),` để biết\nchi tiết.`]})}),`\n`,_jsxs(ParamField,{body:`dimensions`,type:`object`,id:`param-dimensions`,children:[_jsxs(_components.p,{children:[`Đối tượng chỉ định `,_jsx(_components.code,{children:`width`}),` và `,_jsx(_components.code,{children:`height`}),` để thay đổi kích thước. Nếu cắt hình, bạn có thể tùy chọn chỉ định tọa độ trung tâm `,_jsx(_components.code,{children:`x`}),` và `,_jsx(_components.code,{children:`y`}),`.\nMặc định là trung tâm của hình ảnh.`]}),_jsx(CodeBlock,{filename:`Dimensions`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"xCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// tùy chọn cho chế độ cắt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"yCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // tùy chọn cho chế độ cắt`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Note,{children:`Width và height bắt buộc nếu không chỉ định platform.`})]}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,default:`resize`,id:`param-mode`,children:_jsxs(_components.p,{children:[`Giá trị: `,_jsx(_components.code,{children:`resize`}),`, `,_jsx(_components.code,{children:`blur`}),`, hoặc `,_jsx(_components.code,{children:`crop`}),`. Xem `,_jsx(_components.a,{href:`/apis/media/resize#mode`,children:`mode`}),` để biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`convertToJpg`,type:`boolean`,id:`param-convert-to-jpg`,children:_jsxs(_components.p,{children:[`Tự động chuyển đổi sang tệp JPG, chẳng hạn từ PNG sang tệp JPG. Chất lượng 75% sẽ được sử dụng.\nXem `,_jsx(_components.a,{href:`/apis/media/resize#convert-to-a-jpg-or-webp`,children:`convert to a JPG`}),` để biết chi tiết.`]})}),`\n`,_jsx(ParamField,{body:`convertToWebP`,type:`boolean`,id:`param-convert-to-web-p`,children:_jsxs(_components.p,{children:[`Tự động chuyển đổi sang tệp WebP, chẳng hạn từ PNG sang tệp WebP. Chất lượng 75% sẽ được sử dụng.\nXem `,_jsx(_components.a,{href:`/apis/media/resize#convert-to-a-jpg-or-webp`,children:`convert to a WebP`}),` để biết chi tiết.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`platform-options`,children:`Tùy chọn Nền tảng`}),`\n`,_jsxs(_components.p,{children:[`Chỉ định một platform dưới dạng String để sử dụng kích thước được định nghĩa trước của hình ảnh, hoặc bạn có thể chỉ định kích thước của riêng mình bằng trường `,_jsx(_components.code,{children:`dimensions`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Ví dụ `,_jsx(_components.code,{children:`\"platform\": \"facebook\"`}),` sẽ đặt kích thước của hình ảnh là width 1200px và height 630px.`]}),`\n`,_jsxs(`ul`,{class:`custom-bullets`,children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`facebook`}),`: width 1200px, height 630px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram`}),`: width 1080px, height 1080px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram_landscape`}),`: width 1080px, height 680px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram_portrait`}),`: width 1080px, height 1920px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram_special`}),`: width 1080px, height 800px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`linkedin`}),`: width 1200px, height 627px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`pinterest`}),`: width 1080px, height 1920px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`tiktok`}),`: width 1080px, height 1920px.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`twitter`}),`: width 1600px, height 900px.`]})]}),`\n`,_jsxs(_components.p,{children:[`Lưu ý rằng thay đổi kích thước theo các kích thước này sẽ không cắt hình ảnh.\nNếu bạn muốn cắt hình ảnh, bạn có thể sử dụng tham số `,_jsx(_components.code,{children:`mode`}),` đặt thành `,_jsx(_components.code,{children:`crop`}),` với các trường `,_jsx(_components.code,{children:`dimensions`}),` và `,_jsx(_components.code,{children:`xCoordinate`}),` và `,_jsx(_components.code,{children:`yCoordinate`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`mode`,children:`Mode`}),`\n`,_jsx(Heading,{level:`4`,id:`resize`,children:`Resize`}),`\n`,_jsx(_components.p,{children:`Resize là chế độ mặc định sẽ thay đổi kích thước của hình ảnh trong khi vẫn giữ nguyên tỷ lệ khung hình.\nThay đổi kích thước hình ảnh theo kích thước được chỉ định mà không cắt bất kỳ nội dung nào.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON:`}),`\n`,_jsx(CodeBlock,{filename:`Resize`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resize\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bạn cũng có thể chỉ định kích thước tùy chỉnh bằng trường `,_jsx(_components.code,{children:`dimensions`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:`Resize with Dimensions`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dimensions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`600`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bắt buộc phải chỉ định `,_jsx(_components.code,{children:`platform`}),` hoặc các trường `,_jsx(_components.code,{children:`width`}),` và `,_jsx(_components.code,{children:`height`}),` trong dimensions.`]}),`\n`,_jsx(Heading,{level:`4`,id:`crop`,children:`Crop`}),`\n`,_jsx(_components.p,{children:`Crop sẽ cắt bỏ hình ảnh theo kích thước được chỉ định. Theo mặc định, tọa độ trung tâm sẽ là trung tâm của hình ảnh. Bạn cũng có thể chỉ định tọa độ x/y của riêng mình.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON:`}),`\n`,_jsx(CodeBlock,{filename:`Crop`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"crop\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bạn cũng có thể chỉ định kích thước tùy chỉnh và tọa độ cắt tùy chọn bằng trường `,_jsx(_components.code,{children:`dimensions`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:`Crop with Dimensions`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"crop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dimensions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1080`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1080`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"xCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"yCoordinate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Bắt buộc phải chỉ định `,_jsx(_components.code,{children:`platform`}),` hoặc các trường `,_jsx(_components.code,{children:`width`}),` và `,_jsx(_components.code,{children:`height`}),` trong dimensions.`]}),`\n`,_jsxs(_components.p,{children:[`Đối với các cắt vuông, nếu `,_jsx(_components.code,{children:`width`}),` hoặc `,_jsx(_components.code,{children:`height`}),` nhỏ hơn kích thước của hình ảnh được cung cấp, giá trị nhỏ hơn giữa `,_jsx(_components.code,{children:`width`}),` hoặc `,_jsx(_components.code,{children:`height`}),` sẽ được sử dụng. Ví dụ, nếu hình ảnh là 1200x800 và yêu cầu cắt là 1080x1080, hình ảnh trả về sẽ là 800x800.`]}),`\n`,_jsx(Heading,{level:`4`,id:`blur`,children:`Blur`}),`\n`,_jsx(_components.p,{children:`Hiệu ứng blur sẽ nhân đôi hình ảnh làm nền và làm mờ hình ảnh.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON blur:`}),`\n`,_jsx(CodeBlock,{filename:`Blur`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blur\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh blur:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=8877f9f348f319fc683bc7928d767dbb`,alt:`Background with Blur`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/blur.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=a3f7d0cfddf0aa46cb5d959086ed0850 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=d8aec671e316e7091977317dd5a81440 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=fed5618cdb417856c99dfab88a99bb5f 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=2707bd4343e6e44e205a90181e9161c7 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=a4b509bc01d11a1196006198f67e4b58 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/blur.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=53390a2035aec583185d1c11628b9ccb 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`watermark`,children:`Watermark`}),`\n`,_jsx(Heading,{level:`4`,id:`tổng-quan-về-watermark`,children:`Tổng quan về Watermark`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể thêm watermark vào hình ảnh bằng cách cung cấp URL, phải bắt đầu bằng `,_jsx(_components.code,{children:`https://`}),` và một vị trí tùy chọn.\nWatermark sẽ mặc định xuất hiện ở góc dưới bên phải của hình ảnh - `,_jsx(_components.code,{children:`southeast`}),`.`]}),`\n`,_jsx(_components.p,{children:`Chúng tôi khuyến nghị một tệp PNG với nền trong suốt.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON watermark:`}),`\n`,_jsx(CodeBlock,{filename:`Watermark`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/random/photo-13.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"watermark\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/100-percent.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"position\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"northeast\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // tùy chọn`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh watermark ở vị trí southeast:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=7794b66e76cfa988131ab99232af9081`,alt:`Add Watermark`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/watermark.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=40b9c934c27d4ef8381425f6bd4fee6a 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=2d0884961f47d17ac4ef59a451d0ecc4 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=02f53f8570f55366c5b061e2fdd004f3 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=145ce9971e08a1a94c2b7cefb63596b1 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=8e16795fa67b0707552f28168a23ab08 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/watermark.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=69b2c98353982c315c048979b755d56c 2500w`}),`\n`,_jsx(Heading,{level:`4`,id:`watermark-position`,children:`Vị trí Watermark`}),`\n`,_jsx(_components.p,{children:`Vị trí của watermark có thể là một trong các giá trị sau:`}),`\n`,_jsxs(`ul`,{class:`custom-bullets`,children:[_jsx(`li`,{children:_jsx(_components.code,{children:`north`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`northeast`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`east`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`southeast`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`south`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`southwest`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`west`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`northwest`})}),_jsx(`li`,{children:_jsx(_components.code,{children:`center`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`effects-options`,children:`Tùy chọn Hiệu ứng`}),`\n`,_jsx(Heading,{level:`4`,id:`màu-hexadecimal`,children:`Màu Hexadecimal`}),`\n`,_jsxs(_components.p,{children:[`Giá trị hexadecimal cho màu nền của blur. Chỉ áp dụng nếu `,_jsx(_components.code,{children:`\"mode\": \"blur\"`}),`. Giá trị chuỗi, ví dụ `,_jsx(_components.code,{children:`\"#A020F0\"`})]}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON nền màu:`}),`\n`,_jsx(CodeBlock,{filename:`Color Background`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blur\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#A020F0\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh nền màu:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=07c06abcfac8e792c361cc8eaa9884a1`,alt:`Add Colored Background`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/color-background.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=b9cc90ef5e389dbdf2e44d6eea1f4203 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=4b58bd638ac270fc3e2516ea85eaf61b 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=2fd56ca2b8235170145847f0a12b1a69 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=bc234dc561daf487fe63843d3228e3cc 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=890ad5d6306508b8d8de52b3efcfbb26 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/color-background.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=52eb236496b849f5b182e99718a7d988 2500w`}),`\n`,_jsx(Heading,{level:`4`,id:`màu-grayscale-sepia-invert`,children:`Màu: Grayscale, Sepia, Invert`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể thay đổi màu chính của hình ảnh bằng cách chỉ định `,_jsx(_components.code,{children:`grayscale`}),`, `,_jsx(_components.code,{children:`sepia`}),`, hoặc `,_jsx(_components.code,{children:`invert`}),`. Trường `,_jsx(_components.code,{children:`\"blur\": true`}),` không bắt buộc và không nên được sử dụng nếu bạn không muốn có nền.`]}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON grayscale:`}),`\n`,_jsx(CodeBlock,{filename:`Grayscale`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://img.ayrshare.com/random/photo-13.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"grayscale\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ hình ảnh grayscale:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=c654e1485a00be0d421d4ffa19ebfbc7`,alt:`Add Grayscale`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`1080`,height:`1080`,\"data-path\":`images/apis/media/grayscale.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=280\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=56c1ff6fa81a68824d7a87ebaf1bdab4 280w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=560\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=bd418b99aafef3fc2864e619fef738e6 560w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=840\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=1f1a3fc8853e15421ae072a21ad189fc 840w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=0bca6558bc3dc54e43b2364f75722f59 1100w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=4ca639fa93e735cc4216e89667158eb3 1650w, https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/media/grayscale.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=Nmrhj2Gh7WSf62Bh\u0026q=85\u0026s=6e3758d33131ebcd1325a13fd8c15cd5 2500w`}),`\n`,_jsx(Heading,{level:`4`,id:`opacity`,children:`Opacity`}),`\n`,_jsx(_components.p,{children:`Đặt độ mờ của hình ảnh. Phạm vi giá trị số: 0 - 1.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON opacity:`}),`\n`,_jsx(CodeBlock,{filename:`Opacity`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"opacity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`quality`,children:`Quality`}),`\n`,_jsx(_components.p,{children:`Đối với hình ảnh JPG hoặc JPEG, chỉ định chất lượng, hoặc mức độ nén, của hình ảnh.\nSố càng thấp thì độ nén càng cao, nhưng chất lượng hình ảnh càng thấp.\nSố càng cao thì độ nén càng thấp, nhưng chất lượng hình ảnh càng cao. Phạm vi giá trị số: 0 - 100.`}),`\n`,_jsx(_components.p,{children:`Ví dụ JSON quality:`}),`\n`,_jsx(CodeBlock,{filename:`Quality`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`convert-to-a-jpg-or-webp`,children:`Chuyển đổi sang JPG hoặc WebP`}),`\n`,_jsxs(_components.p,{children:[`Các tùy chọn `,_jsx(_components.code,{children:`convertToJpg`}),` và `,_jsx(_components.code,{children:`convertToWebP`}),` cho phép bạn chuyển đổi hình ảnh từ định dạng ban đầu (như PNG) sang định dạng JPG hoặc WebP tương ứng.\nTheo mặc định, các hình ảnh đã chuyển đổi sẽ có cài đặt chất lượng 75%.`]}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể tùy chỉnh mức độ nén bằng tham số `,_jsx(_components.a,{href:`/apis/media/resize#quality`,children:`quality`}),` trong đối tượng effects.`]}),`\n`,_jsxs(_components.p,{children:[`Lưu ý rằng nếu hình ảnh gốc của bạn đã là JPG và bạn sử dụng `,_jsx(_components.code,{children:`convertToJpg`}),`, API sẽ chỉ đơn giản thay đổi kích thước hình ảnh theo kích thước bạn chỉ định mà không thay đổi định dạng.`]}),`\n`,_jsx(_components.p,{children:`Ví dụ chuyển đổi sang JPG:`}),`\n`,_jsx(CodeBlock,{filename:`Convert to JPG`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"convertToJpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ví dụ chuyển đổi sang WebP:`}),`\n`,_jsx(CodeBlock,{filename:`Convert to WebP`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"convertToWebP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` curl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"mediaUrl\": \"https://img.ayrshare.com/012/gb.jpg\", \"platform\": \"instagram\"}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.ayrshare.com/api/media/resize`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`16`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.ayrshare.com/api/media/resize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mediaUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// bắt buộc`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` platform:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instagram\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'mediaUrl'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://img.ayrshare.com/012/gb.jpg'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'platform'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'instagram'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.ayrshare.com/api/media/resize'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(r.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`27`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`27`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c?`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`php`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mediaUrl\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://img.ayrshare.com/012/gb.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instagram\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt_array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.ayrshare.com/api/media/resize'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_RETURNTRANSFER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_ENCODING`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_MAXREDIRS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_TIMEOUT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_FOLLOWLOCATION`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_HTTP_VERSION`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURL_HTTP_VERSION_1_1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_CUSTOMREQUEST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_POSTFIELDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` http_build_query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_HTTPHEADER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Accept-Encoding: gzip'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_exec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`C#`,numberOfLines:`52`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`52`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Net`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Threading`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Tasks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AyrshareApiClient`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` readonly`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` HttpClient`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` _httpClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` readonly`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` _apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` BaseUrl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.ayrshare.com/api\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AyrshareApiClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` _apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ArgumentNullException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`nameof`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` _httpClient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` HttpClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` _httpClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DefaultRequestHeaders`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`$\"Bearer `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_apiKey`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ResizeMediaAsync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` mediaUrl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` platform`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` requestData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mediaUrl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mediaUrl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` platform`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` platform`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` content`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` StringContent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` JsonSerializer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Serialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`requestData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Encoding`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`UTF8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` _httpClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`PostAsync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`$\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`BaseUrl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/media/resize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`EnsureSuccessStatusCode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` jsonResponse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ReadAsStringAsync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` jsonResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`HttpRequestException`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` ex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Exception`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`$\"Failed to resize media: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Message`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Dispose`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` _httpClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Dispose`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200: Success`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://media.ayrshare.com/9abf1426d6ce9122ef11c72bd62e59807c5cc083/8UbyBjHTxgHkAC1I37e6O.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blur\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#A020F0\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400: Failed Resize`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`312`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid extension type. Extension: null. Please verify the extension is one of the following: png, jpg, jpeg and the file is accessible.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{HeaderAPI,PlansAvailable,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Thay đổi kích thước Hình ảnh","description":"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.","api":"POST /media/resize","href":"/vi/apis/media/resize"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Tham số Header","slug":"tham-số-header","depth":2,"children":[]},{"title":"Tham số Body","slug":"tham-số-body","depth":2,"children":[{"title":"Tùy chọn Nền tảng","slug":"platform-options","depth":3,"children":[]},{"title":"Mode","slug":"mode","depth":3,"children":[]},{"title":"Resize","slug":"resize","depth":4,"children":[]},{"title":"Crop","slug":"crop","depth":4,"children":[]},{"title":"Blur","slug":"blur","depth":4,"children":[]},{"title":"Watermark","slug":"watermark","depth":3,"children":[]},{"title":"Tổng quan về Watermark","slug":"tổng-quan-về-watermark","depth":4,"children":[]},{"title":"Vị trí Watermark","slug":"watermark-position","depth":4,"children":[]},{"title":"Tùy chọn Hiệu ứng","slug":"effects-options","depth":3,"children":[]},{"title":"Màu Hexadecimal","slug":"màu-hexadecimal","depth":4,"children":[]},{"title":"Màu: Grayscale, Sepia, Invert","slug":"màu-grayscale-sepia-invert","depth":4,"children":[]},{"title":"Opacity","slug":"opacity","depth":4,"children":[]},{"title":"Quality","slug":"quality","depth":4,"children":[]},{"title":"Chuyển đổi sang JPG hoặc WebP","slug":"convert-to-a-jpg-or-webp","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\"> curl\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\"mediaUrl\": \"https://img.ayrshare.com/012/gb.jpg\", \"platform\": \"instagram\"}'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.ayrshare.com/api/media/resize\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> API_KEY\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.ayrshare.com/api/media/resize\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> mediaUrl:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://img.ayrshare.com/012/gb.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// bắt buộc\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> platform:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"instagram\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">})\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">then\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">((\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">())\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">then\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">((\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">))\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">catch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'mediaUrl'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://img.ayrshare.com/012/gb.jpg'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'platform'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'instagram'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'application/json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Bearer API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">r \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://api.ayrshare.com/api/media/resize'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(r.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"PHP","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"php\">\u003ccode language=\"php\" numberOfLines=\"27\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">\u0026#x3C;?\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">php\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_init\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> array\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"mediaUrl\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://img.ayrshare.com/012/gb.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"platform\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"instagram\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt_array\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">array\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_URL\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.ayrshare.com/api/media/resize'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_RETURNTRANSFER\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_ENCODING\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ''\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_MAXREDIRS\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_TIMEOUT\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_FOLLOWLOCATION\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_HTTP_VERSION\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURL_HTTP_VERSION_1_1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_CUSTOMREQUEST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_POSTFIELDS\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> http_build_query\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_HTTPHEADER\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> array\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Accept-Encoding: gzip'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">));\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_exec\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_close\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">echo\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> $response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"C#","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"csharp\">\u003ccode language=\"csharp\" numberOfLines=\"52\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> System\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> System\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Net\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Http\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> System\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Text\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> System\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Text\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> System\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Threading\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Tasks\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> class\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> AyrshareApiClient\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> private\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> readonly\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> HttpClient\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> _httpClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> private\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> readonly\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> string\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> _apiKey\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> private\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> const\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> string\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> BaseUrl\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.ayrshare.com/api\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> public\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> AyrshareApiClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">string\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> apiKey\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> _apiKey\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> apiKey\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> ??\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> ArgumentNullException\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">nameof\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">apiKey\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">));\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> _httpClient\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> HttpClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> _httpClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">DefaultRequestHeaders\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Add\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">$\"Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">_apiKey\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> async\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Task\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\u0026#x3C;\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">> \u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">ResizeMediaAsync\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">string\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> mediaUrl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">string\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> platform\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> try\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> requestData\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> mediaUrl\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> mediaUrl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> platform\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> platform\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> };\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> content\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> StringContent\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> JsonSerializer\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Serialize\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">requestData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Encoding\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">UTF8\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> );\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> _httpClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">PostAsync\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">$\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">BaseUrl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/media/resize\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">content\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">EnsureSuccessStatusCode\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> jsonResponse\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Content\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">ReadAsStringAsync\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> return\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> jsonResponse\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> catch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">HttpRequestException\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> ex\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Exception\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">$\"Failed to resize media: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ex\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Message\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ex\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> void\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Dispose\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> _httpClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Dispose\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200: Success","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://media.ayrshare.com/9abf1426d6ce9122ef11c72bd62e59807c5cc083/8UbyBjHTxgHkAC1I37e6O.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"platform\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"instagram\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"mode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"blur\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"effects\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"color\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"#A020F0\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400: Failed Resize","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"resize\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">312\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid extension type. Extension: null. Please verify the extension is one of the following: png, jpg, jpeg and the file is accessible.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Thay đổi kích thước Hình ảnh","path":"/media/resize","servers":[{"url":"https://api.ayrshare.com/api"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"mediaUrl":[{"type":"string","description":"URL của hình ảnh cần thay đổi kích thước. Phải bắt đầu bằng `https://` . Bắt buộc nếu `file` không có mặt. `imageUrl` cũng hoạt động. Nếu gửi cả hai, `imageUrl` sẽ được sử dụng."}],"platform":[{"type":"string","description":"Một nền tảng để thay đổi kích thước, ví dụ `\"instagram\"` . Bắt buộc nếu `dimensions` không có mặt, ngoại trừ các yêu cầu chỉ thêm watermark hoặc chỉ đổi định dạng ( `convertToJpg` , `convertToWebP` ). Xem tùy chọn nền tảng để biết chi tiết."}],"file":[{"type":"object","properties":{},"description":"Gửi tệp media dưới dạng đối tượng multipart form-data. Bắt buộc nếu `mediaUrl` không có mặt."}],"watermark":[{"type":"object","properties":{},"description":"URL và vị trí tùy chọn của watermark sẽ được áp dụng lên hình ảnh đã thay đổi kích thước. Watermark sẽ xuất hiện ở góc dưới bên phải của hình ảnh theo mặc định. Xem watermark để biết chi tiết."}],"effects":[{"type":"object","properties":{},"description":"Thay đổi độ mờ, màu sắc, v.v. Xem tùy chọn hiệu ứng để biết chi tiết."}],"dimensions":[{"type":"object","properties":{},"description":"Đối tượng chỉ định `width` và `height` để thay đổi kích thước. Nếu cắt hình, bạn có thể tùy chọn chỉ định tọa độ trung tâm `x` và `y` . Mặc định là trung tâm của hình ảnh."}],"mode":[{"type":"string","description":"Giá trị: `resize` , `blur` , hoặc `crop` . Xem mode để biết chi tiết."}],"convertToJpg":[{"type":"boolean","description":"Tự động chuyển đổi sang tệp JPG, chẳng hạn từ PNG sang tệp JPG. Chất lượng 75% sẽ được sử dụng. Xem convert to a JPG để biết chi tiết."}],"convertToWebP":[{"type":"boolean","description":"Tự động chuyển đổi sang tệp WebP, chẳng hạn từ PNG sang tệp WebP. Chất lượng 75% sẽ được sử dụng. Xem convert to a WebP để biết chi tiết."}]}}],"examples":{"example":{"value":{"mediaUrl":"\u003cstring>","platform":"\u003cstring>","file":{},"watermark":{},"effects":{},"dimensions":{},"mode":"\u003cstring>","convertToJpg":true,"convertToWebP":true}}}}}},"response":{},"deprecated":false}},"jsLinks":["/docs/_mintlify/custom/ayrshare-docs/80ea29d8530ebaa2/script.js","/docs/_mintlify/custom/ayrshare-docs/3e93073b19ca64e9/tools/maintainScroll.js"],"dynamicCss":".mint-mt-2 {\n margin-top: 0.5rem\n}\n.mint-flex {\n display: flex\n}\n.mint-cursor-pointer {\n cursor: pointer\n}\n.mint-items-center {\n align-items: center\n}\n.mint-rounded {\n border-radius: 0.25rem\n}\n.mint-px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem\n}\n.mint-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}","subdomain":"ayrshare-docs","siteName":"Ayrshare Docs","title":"Thay đổi kích thước Hình ảnh - Ayrshare Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/apis/media/resize","matchLevel":1},"es":{"href":"/es/apis/media/resize","matchLevel":1},"cn":{"href":"/cn/apis/media/resize","matchLevel":1,"hidden":true},"zh":{"href":"/zh/apis/media/resize","matchLevel":1,"hidden":true},"pt-BR":{"href":"/pt-BR/apis/media/resize","matchLevel":1},"fr":{"href":"/fr/apis/media/resize","matchLevel":1},"de":{"href":"/de/apis/media/resize","matchLevel":1},"vi":{"href":"/vi/apis/media/resize","matchLevel":0},"ja":{"href":"/ja/apis/media/resize","matchLevel":1},"uk":{"href":"/uk/apis/media/resize","matchLevel":1},"hi":{"href":"/hi/apis/media/resize","matchLevel":1},"ar":{"href":"/ar/apis/media/resize","matchLevel":1},"zh-Hans":{"href":"/zh-Hans/apis/media/resize","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/apis/media/resize","matchLevel":1}}},"lastModified":"2026-11-03T15:41:46.979Z","originalFileLocation":"vi/apis/media/resize.mdx","locale":"vi"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Thay đổi kích thước Hình ảnh - Ayrshare Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.ayrshare.com/docs/vi/apis/media/resize\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ayrshare-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Media\u0026amp;title=Thay+%C4%91%E1%BB%95i+k%C3%ADch+th%C6%B0%E1%BB%9Bc+H%C3%ACnh+%E1%BA%A3nh\u0026amp;description=D%C3%B9ng+endpoint+resize+%C4%91%E1%BB%83+%C4%91i%E1%BB%81u+ch%E1%BB%89nh+h%C3%ACnh+%E1%BA%A3nh+theo+k%C3%ADch+th%C6%B0%E1%BB%9Bc+c%E1%BB%A7a+m%E1%BA%A1ng+x%C3%A3+h%E1%BB%99i%2C+th%C3%AAm+watermark%2C+thay+%C4%91%E1%BB%95i+n%E1%BB%81n%2C+%C3%A1p+d%E1%BB%A5ng+hi%E1%BB%87u+%E1%BB%A9ng+ho%E1%BA%B7c+c%E1%BA%AFt+h%C3%ACnh+theo+n%E1%BB%81n+t%E1%BA%A3ng+ho%E1%BA%B7c+k%C3%ADc\u0026amp;theme=722a7095c53b95fd5a0669f2\u0026amp;signature=e48ed9c6defe31fc0e25a6385c7d31f916378c6bb11b23b9226e2c116e46e0e5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Thay đổi kích thước Hình ảnh - Ayrshare Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ayrshare-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Media\u0026amp;title=Thay+%C4%91%E1%BB%95i+k%C3%ADch+th%C6%B0%E1%BB%9Bc+H%C3%ACnh+%E1%BA%A3nh\u0026amp;description=D%C3%B9ng+endpoint+resize+%C4%91%E1%BB%83+%C4%91i%E1%BB%81u+ch%E1%BB%89nh+h%C3%ACnh+%E1%BA%A3nh+theo+k%C3%ADch+th%C6%B0%E1%BB%9Bc+c%E1%BB%A7a+m%E1%BA%A1ng+x%C3%A3+h%E1%BB%99i%2C+th%C3%AAm+watermark%2C+thay+%C4%91%E1%BB%95i+n%E1%BB%81n%2C+%C3%A1p+d%E1%BB%A5ng+hi%E1%BB%87u+%E1%BB%A9ng+ho%E1%BA%B7c+c%E1%BA%AFt+h%C3%ACnh+theo+n%E1%BB%81n+t%E1%BA%A3ng+ho%E1%BA%B7c+k%C3%ADc\u0026amp;theme=722a7095c53b95fd5a0669f2\u0026amp;signature=e48ed9c6defe31fc0e25a6385c7d31f916378c6bb11b23b9226e2c116e46e0e5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2266C2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.ayrshare.com/docs/vi/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/vi/apis/media/resize.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://www.ayrshare.com/docs/vi/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://www.ayrshare.com/docs/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://www.ayrshare.com/docs/es/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://www.ayrshare.com/docs/pt-BR/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://www.ayrshare.com/docs/fr/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://www.ayrshare.com/docs/de/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://www.ayrshare.com/docs/ja/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"uk\" href=\"https://www.ayrshare.com/docs/uk/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://www.ayrshare.com/docs/hi/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://www.ayrshare.com/docs/ar/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://www.ayrshare.com/docs/zh-Hans/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://www.ayrshare.com/docs/zh-Hant/apis/media/resize\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://www.ayrshare.com/docs/apis/media/resize\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.ayrshare.com/#organization\",\"name\":\"Ayrshare Docs\",\"url\":\"https://www.ayrshare.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=8d23367f493d06599eecbbfa2b6325cf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.ayrshare.com/docs#website\",\"name\":\"Ayrshare Docs\",\"url\":\"https://www.ayrshare.com/docs\",\"publisher\":{\"@id\":\"https://www.ayrshare.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.ayrshare.com/docs/vi/apis/media/resize#webpage\",\"url\":\"https://www.ayrshare.com/docs/vi/apis/media/resize\",\"name\":\"Thay đổi kích thước Hình ảnh\",\"description\":\"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.\",\"dateModified\":\"2026-11-03T15:41:46.979Z\",\"isPartOf\":{\"@id\":\"https://www.ayrshare.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.ayrshare.com/docs/vi/apis/media/resize#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.ayrshare.com/docs/vi/apis/media/resize#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Endpoints\",\"item\":\"https://www.ayrshare.com/docs/vi/apis/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Media\",\"item\":\"https://www.ayrshare.com/docs/vi/apis/media/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Thay đổi kích thước Hình ảnh\",\"item\":\"https://www.ayrshare.com/docs/vi/apis/media/resize\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.ayrshare.com/docs/vi/apis/media/resize#apireference\",\"headline\":\"Thay đổi kích thước Hình ảnh\",\"name\":\"Thay đổi kích thước Hình ảnh\",\"description\":\"Dùng endpoint resize để điều chỉnh hình ảnh theo kích thước của mạng xã hội, thêm watermark, thay đổi nền, áp dụng hiệu ứng hoặc cắt hình theo nền tảng hoặc kích thước.\",\"url\":\"https://www.ayrshare.com/docs/vi/apis/media/resize\",\"mainEntityOfPage\":{\"@id\":\"https://www.ayrshare.com/docs/vi/apis/media/resize#webpage\"},\"dateModified\":\"2026-11-03T15:41:46.979Z\",\"publisher\":{\"@id\":\"https://www.ayrshare.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.ayrshare.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ayrshare Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ayrshare Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/vi/apis/media/resize.md","siteName":"Ayrshare Docs","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/apis/media/resize"}]},{"language":"es","pages":[{"title":"es","href":"/es/apis/media/resize"}]},{"language":"cn","hidden":true,"pages":[{"title":"cn","href":"/cn/apis/media/resize","hidden":true}]},{"language":"zh","hidden":true,"pages":[{"title":"zh","href":"/zh/apis/media/resize","hidden":true}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/apis/media/resize"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/apis/media/resize"}]},{"language":"de","pages":[{"title":"de","href":"/de/apis/media/resize"}]},{"language":"vi","anchors":[{"anchor":"Documentation","icon":"code","groups":[{"group":"Get Started","pages":[{"title":"Ayrshare Social Media API","href":"/vi/introduction"},{"title":"Hướng dẫn Quick Start","href":"/vi/quickstart"},{"group":"MCP Server","pages":[{"title":"Ayrshare MCP Server: Điều khiển API bằng AI agent","sidebarTitle":"Tổng quan","icon":"robot","href":"/vi/additional/mcp-action-server"},{"title":"Kết nối tới MCP Server","sidebarTitle":"Kết nối \u0026 Thiết lập","icon":"plug","href":"/vi/additional/mcp-action-connect"},{"title":"Danh mục Công cụ MCP","sidebarTitle":"Danh mục Công cụ","icon":"list","href":"/vi/additional/mcp-action-tools"},{"title":"Plugin Claude Code","icon":"terminal","href":"/vi/additional/mcp-claude-code-plugin"},{"title":"n8n","icon":"diagram-project","href":"/vi/additional/mcp-n8n"},{"title":"Đưa các tài khoản mạng xã hội của khách hàng vào hệ thống","sidebarTitle":"Client Onboarding","icon":"user-plus","href":"/vi/additional/mcp-client-onboarding"},{"title":"Documentation MCP","sidebarTitle":"Documentation MCP","icon":"magnifying-glass","href":"/vi/additional/mcp-server"}]}]},{"group":"API Endpoints","pages":[{"title":"Tổng quan Ayrshare API","href":"/vi/apis/overview"},{"group":"GraphQL","pages":[{"title":"Tổng quan GraphQL API","href":"/vi/apis/graphql/overview"},{"title":"Sử dụng GraphQL API","href":"/vi/apis/graphql/using-the-api"},{"title":"Lỗi GraphQL","href":"/vi/apis/graphql/errors"},{"title":"Giới hạn và Tính phí GraphQL","href":"/vi/apis/graphql/limits"},{"title":"Quảng cáo","href":"/vi/apis/graphql/ads"}]},{"group":"Ads","pages":[{"title":"Ads API: Quảng bá bài đăng Meta và quản lý Google Ads","sidebarTitle":"Tổng quan về Ads API","href":"/vi/apis/ads/overview"},{"title":"Chiến dịch Quảng cáo","href":"/vi/apis/ads/campaigns"},{"group":"Facebook Ads","pages":[{"title":"Tài khoản","api":"GET /ads/facebook/accounts","href":"/vi/apis/ads/facebook/get-ad-accounts"},{"title":"Chiến dịch","api":"GET /ads/facebook/campaigns","href":"/vi/apis/ads/facebook/get-ad-campaigns"},{"title":"Boost Bài đăng","api":"POST /ads/facebook/boost","href":"/vi/apis/ads/facebook/boost-post"},{"title":"Quảng cáo đã Boost","api":"GET /ads/facebook/ads","href":"/vi/apis/ads/facebook/get-boosted-ads"},{"title":"Lịch sử","api":"GET /ads/facebook/history","href":"/vi/apis/ads/facebook/get-ad-history"},{"title":"Insights","api":"GET /ads/facebook/insights","href":"/vi/apis/ads/facebook/get-ad-insights"},{"title":"Sở thích","api":"GET /ads/facebook/interests","href":"/vi/apis/ads/facebook/get-ad-interests"},{"title":"Khu vực","api":"GET /ads/facebook/regions","href":"/vi/apis/ads/facebook/get-ad-regions"},{"title":"Thành phố","api":"GET /ads/facebook/cities","href":"/vi/apis/ads/facebook/get-ad-cities"},{"title":"Đề xuất DSA","api":"GET /ads/facebook/dsaRecommendations","href":"/vi/apis/ads/facebook/get-dsa-recommendations"},{"title":"Cập nhật Quảng cáo","api":"PUT /ads/facebook/ads","href":"/vi/apis/ads/facebook/put-ad-update"},{"title":"Đối tượng","api":"GET /ads/facebook/audiences","href":"/vi/apis/ads/facebook/get-audiences"},{"title":"Tạo đối tượng","api":"POST /ads/facebook/audiences","href":"/vi/apis/ads/facebook/create-audience"},{"title":"Xóa đối tượng","api":"DELETE /ads/facebook/audiences/{id}","href":"/vi/apis/ads/facebook/delete-audience"},{"title":"Thành viên đối tượng","api":"POST /ads/facebook/audiences/{id}/users","href":"/vi/apis/ads/facebook/audience-members"}]},{"group":"Instagram Ads","pages":[{"title":"Tài khoản","api":"GET /ads/instagram/accounts","href":"/vi/apis/ads/instagram/get-ad-accounts"},{"title":"Chiến dịch","api":"GET /ads/instagram/campaigns","href":"/vi/apis/ads/instagram/get-ad-campaigns"},{"title":"Khu vực","api":"GET /ads/instagram/regions","href":"/vi/apis/ads/instagram/get-ad-regions"},{"title":"Cities","api":"GET /ads/instagram/cities","href":"/vi/apis/ads/instagram/get-ad-cities"},{"title":"Đề xuất DSA","api":"GET /ads/instagram/dsaRecommendations","href":"/vi/apis/ads/instagram/get-dsa-recommendations"},{"title":"Boost Bài đăng","api":"POST /ads/instagram/boost","href":"/vi/apis/ads/instagram/boost-post"},{"title":"Quảng cáo đã Boost","api":"GET /ads/instagram/ads","href":"/vi/apis/ads/instagram/get-boosted-ads"},{"title":"Lịch sử","api":"GET /ads/instagram/history","href":"/vi/apis/ads/instagram/get-ad-history"},{"title":"Insights","api":"GET /ads/instagram/insights","href":"/vi/apis/ads/instagram/get-ad-insights"},{"title":"Sở thích","api":"GET /ads/instagram/interests","href":"/vi/apis/ads/instagram/get-ad-interests"},{"title":"Cập nhật Quảng cáo","api":"PUT /ads/instagram/ads","href":"/vi/apis/ads/instagram/put-ad-update"},{"title":"Đối tượng","api":"GET /ads/instagram/audiences","href":"/vi/apis/ads/instagram/get-audiences"},{"title":"Tạo đối tượng","api":"POST /ads/instagram/audiences","href":"/vi/apis/ads/instagram/create-audience"},{"title":"Xóa đối tượng","api":"DELETE /ads/instagram/audiences/{id}","href":"/vi/apis/ads/instagram/delete-audience"},{"title":"Thành viên đối tượng","api":"POST /ads/instagram/audiences/{id}/users","href":"/vi/apis/ads/instagram/audience-members"}]},{"group":"Google Ads","pages":[{"title":"Tài khoản","api":"GET /ads/google/accounts","href":"/vi/apis/ads/google/get-ad-accounts"},{"title":"Chiến dịch Google Search","sidebarTitle":"Chiến dịch Search","api":"POST /ads/google/campaigns","href":"/vi/apis/ads/google/search-campaigns"},{"title":"Chiến dịch Google Performance Max","sidebarTitle":"Chiến dịch Performance Max","api":"POST /ads/google/campaigns","href":"/vi/apis/ads/google/performance-max-campaigns"},{"title":"Lấy Chiến dịch","api":"GET /ads/google/campaigns/{id}","href":"/vi/apis/ads/google/get-campaign"},{"title":"Cập nhật Chiến dịch","api":"PUT /ads/google/campaigns/{id}","href":"/vi/apis/ads/google/update-campaign"},{"title":"Insights","api":"GET /ads/google/insights","href":"/vi/apis/ads/google/get-ad-insights"}]},{"group":"TikTok Ads","pages":[{"title":"Boost Bài đăng","api":"POST /ads/tiktok/boost","href":"/vi/apis/ads/tiktok/boost"}]},{"group":"Boost on Behalf","pages":[{"title":"Boost bài đăng của nhóm bạn","href":"/vi/apis/ads/delegations/boost-on-behalf"},{"title":"Tạo Ủy quyền Boost","api":"POST /ads/delegations","href":"/vi/apis/ads/delegations/create-delegations"},{"title":"Lấy Ủy quyền Boost","api":"GET /ads/delegations","href":"/vi/apis/ads/delegations/get-delegations"},{"title":"Thu hồi Ủy quyền Boost","api":"DELETE /ads/delegations/:id","href":"/vi/apis/ads/delegations/delete-delegation"}]}]},{"group":"Analytics","pages":[{"title":"Analytics API: Số liệu bài đăng, tài khoản và liên kết","sidebarTitle":"Tổng quan về Analytics API","href":"/vi/apis/analytics/overview"},{"title":"Phân tích một Bài đăng","api":"POST /analytics/post","href":"/vi/apis/analytics/post"},{"title":"Phân tích Bài đăng theo Social ID","api":"POST /analytics/post","href":"/vi/apis/analytics/social-by-id"},{"title":"Phân tích một Mạng xã hội","api":"POST /analytics/social","href":"/vi/apis/analytics/social"},{"title":"YouTube Playlists","api":"GET /analytics/youTubePlaylists","href":"/vi/apis/analytics/youtube-playlists"},{"title":"Số lượng Người theo dõi Instagram đang Trực tuyến","api":"GET /analytics/getInstagramOnlineFollowers","href":"/vi/apis/analytics/instagram-follower-count"}]},{"group":"Auto Schedule","pages":[{"title":"Tổng quan về Auto Schedule","href":"/vi/apis/auto-schedule/overview"},{"title":"Đặt Auto Schedule","api":"POST /auto-schedule/set","href":"/vi/apis/auto-schedule/set-schedule"},{"title":"Xóa Auto Schedule","api":"DELETE /auto-schedule/delete","href":"/vi/apis/auto-schedule/delete-schedule"},{"title":"Liệt kê Auto Schedule","api":"GET /auto-schedule/list","href":"/vi/apis/auto-schedule/list-schedule"},{"title":"Lấy Bài đăng Auto Schedule Đang Chờ","api":"GET /auto-schedule/pending","href":"/vi/apis/auto-schedule/pending-auto-schedule"}]},{"group":"Automations","tag":"BETA","pages":[{"title":"Tổng quan về Automations API","href":"/vi/apis/automations/overview"},{"title":"Tạo Automation","api":"POST /automations","href":"/vi/apis/automations/create-automation"},{"title":"Liệt kê Automation","api":"GET /automations","href":"/vi/apis/automations/list-automations"},{"title":"Lấy Automation","api":"GET /automations/:id","href":"/vi/apis/automations/get-automation"},{"title":"Cập nhật Automation","api":"PUT /automations/:id","href":"/vi/apis/automations/update-automation"},{"title":"Xóa Automation","api":"DELETE /automations/:id","href":"/vi/apis/automations/delete-automation"},{"title":"Lấy Activity của Automation","api":"GET /automations/:id/activity","href":"/vi/apis/automations/get-activity"}]},{"group":"Brand","pages":[{"title":"Brand API: Dữ liệu Tài khoản Công khai \u0026 Đối thủ Cạnh tranh","href":"/vi/apis/brand/overview"}]},{"group":"Comments","pages":[{"title":"Tổng quan về Comments API","href":"/vi/apis/comments/overview"},{"title":"Đăng một Bình luận","api":"POST /comments","href":"/vi/apis/comments/post-comment"},{"title":"Lấy Bình luận","api":"GET /comments/:id","href":"/vi/apis/comments/get-comments"},{"title":"Xóa Bình luận","api":"DELETE /comments/:id","href":"/vi/apis/comments/delete-comments"},{"title":"Trả lời một Bình luận","api":"POST /comments/reply/:commentId","href":"/vi/apis/comments/reply-to-comment"}]},{"group":"Feed","pages":[{"title":"Tổng quan về RSS Feeds","href":"/vi/apis/feeds/overview"},{"title":"Thêm RSS Feed","api":"POST /feed","href":"/vi/apis/feeds/add-feed"},{"title":"Xóa RSS Feed","api":"DELETE /feed","href":"/vi/apis/feeds/delete-feed"},{"title":"Lấy danh sách RSS Feeds","api":"GET /feed","href":"/vi/apis/feeds/get-feeds"},{"title":"Cập nhật RSS Feed","api":"PUT /feed","href":"/vi/apis/feeds/update-feed"}]},{"group":"Generate","pages":[{"title":"Tổng quan về Generate API","href":"/vi/apis/generate/overview"},{"title":"Tạo nội dung bài đăng","api":"POST /generate/post","href":"/vi/apis/generate/post-text"},{"title":"Viết lại bài đăng","api":"POST /generate/rewrite","href":"/vi/apis/generate/rewrite-post"},{"title":"Phiên âm video","api":"POST /generate/transcription","href":"/vi/apis/generate/transcribe-video"},{"title":"Dịch bài đăng","api":"POST /generate/translate","href":"/vi/apis/generate/translate-post"},{"title":"Tạo Alt Text","api":"POST /generate/altText","href":"/vi/apis/generate/image-alt-text"},{"title":"Phân tích cảm xúc","api":"POST /generate/sentiment","href":"/vi/apis/generate/sentiment"}]},{"group":"Hashtags","pages":[{"title":"Tổng quan về Hashtags API","href":"/vi/apis/hashtags/overview"},{"title":"Auto Hashtags","api":"POST /hashtags/auto","href":"/vi/apis/hashtags/auto-hashtags"},{"title":"Kiểm tra Hashtag bị cấm","api":"GET /hashtags/banned","href":"/vi/apis/hashtags/check-hashtags"},{"title":"Đề xuất Hashtag","api":"GET /hashtags/recommend","href":"/vi/apis/hashtags/recommend-hashtags"},{"title":"Tìm kiếm Hashtag","api":"GET /hashtags/search","href":"/vi/apis/hashtags/search-hashtags"}]},{"group":"History","pages":[{"title":"Tổng quan về History API","href":"/vi/apis/history/overview"},{"title":"Lịch sử bài đăng","api":"GET /history","href":"/vi/apis/history/get-history"},{"title":"Lịch sử bài đăng theo ID","api":"GET /history/:id","href":"/vi/apis/history/get-history-id"},{"title":"Lấy lịch sử bài đăng cho một nền tảng mạng xã hội","api":"GET /history/:platform","href":"/vi/apis/history/history-platform"},{"title":"Lịch sử bài đăng theo Social ID","api":"GET /history/:socialId","href":"/vi/apis/history/history-social-id"}]},{"group":"Links","pages":[{"title":"Tổng quan về Links API","href":"/vi/apis/links/overview"},{"title":"Tạo Short Link","api":"POST /links","href":"/vi/apis/links/create-short-link"},{"title":"Cập nhật Short Link","api":"PUT /links/:id","href":"/vi/apis/links/update-short-link"},{"title":"Phân tích liên kết","api":"GET /links/:id","href":"/vi/apis/links/link-analytics"}]},{"group":"Listening","pages":[{"title":"Listen API: Giám sát Mạng xã hội \u0026 Đề cập","href":"/vi/apis/listen/overview"},{"title":"Lấy Dữ liệu Thương hiệu","api":"GET /brand/byUser","href":"/vi/apis/listen/brand-user"},{"group":"Search","pages":[{"title":"Tìm kiếm Facebook Pages","api":"GET /brand/search/facebook","href":"/vi/apis/listen/search/fb-page-search"},{"title":"Tìm kiếm LinkedIn","api":"GET /brand/search/linkedin","href":"/vi/apis/listen/search/linkedin-search"}]},{"group":"Keyword","pages":[{"title":"Tìm kiếm Tweets theo Từ khóa","api":"GET /listen/keyword","href":"/vi/apis/listen/keyword/search-tweets"}]}]},{"group":"Media","pages":[{"title":"Tổng quan về Media API","href":"/vi/apis/media/overview"},{"title":"Tải lên Hình ảnh hoặc Video","api":"POST /media/upload","href":"/vi/apis/media/upload-media"},{"title":"Tải lên Tệp Media Lớn","api":"GET /media/uploadUrl","href":"/vi/apis/media/upload-large-media"},{"title":"Xác minh URL Media Tồn tại","api":"POST /media/urlExists","href":"/vi/apis/media/verify-media-url"},{"title":"Lấy Tất cả Media trong Gallery","description":"Truy xuất tất cả hình ảnh và video đã tải lên gallery media của bạn, bao gồm cả hình ảnh đã thay đổi kích thước, với id, URL, kích thước, tên tệp, mô tả và thời hạn của từng tệp.","api":"GET /media","href":"/vi/apis/media/get-media-in-gallery"},{"title":"Thay đổi kích thước Hình ảnh","api":"POST /media/resize","href":"/vi/apis/media/resize"},{"title":"Metadata của một tệp media","description":"Truy xuất metadata của một URL tệp media có thể truy cập từ bên ngoài, chẳng hạn như định dạng, codec, chiều rộng, chiều cao, thời lượng tính bằng giây, kích thước tính bằng byte và loại.","api":"GET /media/meta","href":"/vi/apis/media/get-media-metadata"},{"title":"Tìm kiếm audio Instagram","api":"GET /media/instagram/audio/search","href":"/vi/apis/media/search-instagram-audio"},{"title":"Lấy metadata audio Instagram","api":"GET /media/instagram/audio/{audioId}","href":"/vi/apis/media/get-instagram-audio"}]},{"group":"Messages","pages":[{"title":"Tổng quan về Messages API","href":"/vi/apis/messages/overview"},{"title":"Gửi Tin nhắn","api":"POST /messages/:platform","href":"/vi/apis/messages/send-message"},{"title":"Lấy Tin nhắn","api":"GET /messages/:platform","href":"/vi/apis/messages/get-messages"},{"title":"Cập nhật Tin nhắn","api":"PUT /messages/:platform/:conversationId","href":"/vi/apis/messages/update-messages"},{"title":"Đặt Phản hồi Tự động","api":"POST /messages/autoresponse","href":"/vi/apis/messages/set-auto-response"},{"title":"Lấy Phản hồi Tự động","api":"GET /messages/autoresponse","href":"/vi/apis/messages/get-auto-response"}]},{"group":"Post","pages":[{"title":"Tổng quan Post API","href":"/vi/apis/post/overview"},{"title":"Publish a Post API: Đăng bài lên bất kỳ mạng xã hội nào","api":"POST /post","href":"/vi/apis/post/post"},{"title":"Get a Post","api":"GET /post/:id","href":"/vi/apis/post/get-post"},{"title":"Delete a Post","api":"DELETE /post","href":"/vi/apis/post/delete-post"},{"title":"Update a Post","api":"PATCH /post","href":"/vi/apis/post/update-post"},{"title":"Retry a Post","api":"PUT /post/retry","href":"/vi/apis/post/retry-post"},{"title":"Copy a Post","api":"POST /post/copy","href":"/vi/apis/post/copy-post"},{"title":"Bulk Post","api":"POST /post/bulk","href":"/vi/apis/post/bulk-post"},{"group":"Social Networks","pages":[{"title":"Các mạng xã hội được hỗ trợ","href":"/vi/apis/post/social-networks/overview"},{"title":"Bluesky API","icon":"bluesky","href":"/vi/apis/post/social-networks/bluesky"},{"title":"Facebook Page API","icon":"facebook","href":"/vi/apis/post/social-networks/facebook"},{"title":"Google Business Profile API","icon":"google","href":"/vi/apis/post/social-networks/google"},{"title":"Instagram API","icon":"instagram","href":"/vi/apis/post/social-networks/instagram"},{"title":"LinkedIn API","icon":"linkedin","href":"/vi/apis/post/social-networks/linkedin"},{"title":"Pinterest API","icon":"pinterest","href":"/vi/apis/post/social-networks/pinterest"},{"title":"Reddit API","icon":"reddit","href":"/vi/apis/post/social-networks/reddit"},{"title":"Snapchat API","icon":"snapchat","href":"/vi/apis/post/social-networks/snapchat"},{"title":"Telegram API","icon":"telegram","href":"/vi/apis/post/social-networks/telegram"},{"title":"Threads API","icon":"threads","href":"/vi/apis/post/social-networks/threads"},{"title":"TikTok API","icon":"tiktok","href":"/vi/apis/post/social-networks/tiktok"},{"title":"X API","icon":"x-twitter","href":"/vi/apis/post/social-networks/x-twitter"},{"title":"YouTube API","icon":"youtube","href":"/vi/apis/post/social-networks/youtube"}]}]},{"group":"Profiles","pages":[{"title":"Tổng quan API Profiles","href":"/vi/apis/profiles/overview"},{"title":"Tạo User Profile","api":"POST /profiles","href":"/vi/apis/profiles/create-profile"},{"title":"Xóa User Profile","api":"DELETE /profiles","href":"/vi/apis/profiles/delete-profile"},{"title":"Cập nhật User Profile","api":"PATCH /profiles","href":"/vi/apis/profiles/update-profile"},{"title":"Lấy danh sách User Profile","api":"GET /profiles","href":"/vi/apis/profiles/get-profiles"},{"title":"Hủy liên kết mạng xã hội","api":"DELETE /profiles/social","href":"/vi/apis/profiles/unlink-social-network"},{"title":"Tổng quan Liên kết Mạng xã hội","href":"/vi/apis/profiles/social-linking-overview"},{"title":"Tạo một Link Session","api":"POST /profiles/link-sessions","href":"/vi/apis/profiles/create-link-session"},{"title":"Lấy một Link Session","api":"GET /profiles/link-sessions/{sessionId}","href":"/vi/apis/profiles/get-link-session"},{"title":"Thu hồi một Link Session","api":"DELETE /profiles/link-sessions/{sessionId}","href":"/vi/apis/profiles/revoke-link-session"},{"title":"Tạo URL liên kết (generateJWT)","api":"POST /profiles/generateJWT","deprecated":true,"href":"/vi/apis/profiles/generate-jwt"}]},{"group":"Reviews","pages":[{"title":"Tổng quan API Reviews","href":"/vi/apis/reviews/overview"},{"title":"Lấy tất cả đánh giá","api":"GET /reviews","href":"/vi/apis/reviews/get-reviews"},{"title":"Lấy một đánh giá","api":"GET /reviews/:id","href":"/vi/apis/reviews/get-one-review"},{"title":"Trả lời đánh giá","api":"POST /reviews","href":"/vi/apis/reviews/reply-review"},{"title":"Xóa phản hồi đánh giá","api":"DELETE /reviews","href":"/vi/apis/reviews/delete-review-reply"}]},{"group":"User","pages":[{"title":"Tổng quan API User Profile","href":"/vi/apis/user/overview"},{"title":"Chi tiết User Profile","api":"GET /user","href":"/vi/apis/user/profile-details"},{"title":"Pinterest Boards","api":"GET /user/details/pinterest","href":"/vi/apis/user/pinterest-board"},{"title":"Cập nhật người dùng","api":"PATCH /user/:platform","href":"/vi/apis/user/update-user"},{"title":"Hồ sơ doanh nghiệp WhatsApp","api":"GET /user/details/whatsapp","href":"/vi/apis/user/whatsapp-profile"},{"title":"Lấy hàng loạt tất cả","api":"GET /user/batch","href":"/vi/apis/user/batch-all-users"}]},{"group":"Utils","pages":[{"title":"Trạng thái yêu cầu cộng tác","api":"GET /post/collaborators/:id","href":"/vi/apis/utils/instagram-get-collaborator"},{"title":"Reddit Flair","api":"GET /post/redditFlair/:subreddit","href":"/vi/apis/utils/reddit-get-flair"},{"title":"Tra cứu người dùng","api":"GET /user/lookups","href":"/vi/apis/utils/user-lookups"},{"group":"YouTube","pages":[{"title":"Danh mục YouTube","api":"GET /post/youtubeCategories/:region","href":"/vi/apis/utils/youtube-categories"},{"title":"Đặt YouTube Watermark","api":"POST /post/youTubeWatermark","href":"/vi/apis/utils/set-youtube-watermark"},{"title":"Xóa YouTube Watermark","api":"DELETE /post/youTubeWatermark","href":"/vi/apis/utils/remove-youtube-watermark"}]}]},{"group":"Validate","pages":[{"title":"Tổng quan API Validate","href":"/vi/apis/validate/overview"},{"title":"Xác thực phương tiện","href":"/vi/apis/validate/validate-media"},{"title":"Kiểm tra độ dài bài đăng","api":"POST /validate/postLength","href":"/vi/apis/validate/check-post-length"},{"title":"Kiểm tra subreddit tồn tại","api":"GET /validate/redditExists/:subreddit","href":"/vi/apis/validate/check-subreddit"},{"title":"Kiểm duyệt nội dung","api":"POST /validate/moderation","href":"/vi/apis/validate/moderation"},{"title":"Xác thực JSON","api":"POST /validate/json","href":"/vi/apis/validate/validate-json"},{"title":"Xác thực bài đăng","api":"POST /validate/post","href":"/vi/apis/validate/validate-post"}]},{"group":"Webhooks","pages":[{"title":"Tổng quan Webhooks","href":"/vi/apis/webhooks/overview"},{"title":"Webhook Actions","href":"/vi/apis/webhooks/actions"},{"title":"Đăng ký Webhook","api":"POST /hook/webhook","href":"/vi/apis/webhooks/register"},{"title":"Hủy đăng ký Webhook","api":"DELETE /hook/webhook","href":"/vi/apis/webhooks/unregister"},{"title":"Xoay Signing Secret","api":"POST /hook/webhook/secret","href":"/vi/apis/webhooks/rotate-signing-secret"},{"title":"Liệt kê Webhook đã đăng ký","api":"GET /hook/webhook","href":"/vi/apis/webhooks/list"},{"title":"Lịch sử Webhook","api":"GET /hook/history","href":"/vi/apis/webhooks/history"}]}]},{"group":"Multiple Users","pages":[{"title":"Launch Plan: gói Business đa người dùng cấp nhập môn","href":"/vi/multiple-users/business-launch-overview"},{"title":"Tổng quan Gói Business","href":"/vi/multiple-users/business-plan-overview"},{"title":"Tích hợp Người dùng","href":"/vi/multiple-users/user-integration"},{"title":"Tích hợp API cho Doanh nghiệp","href":"/vi/multiple-users/api-integration-business"},{"title":"Widget Ayrshare Connect","href":"/vi/multiple-users/connect-widget"},{"title":"Tự Xây dựng Cửa sổ Bật lên Liên kết","href":"/vi/multiple-users/connect-direct-mode"},{"title":"Sự kiện Hoàn tất Liên kết","href":"/vi/multiple-users/link-completion-events"},{"title":"Quản lý nhiều Profile Người dùng","href":"/vi/multiple-users/manage-user-profiles"}]},{"group":"Dashboard","pages":[{"title":"Tổng quan Ayrshare Dashboard: Quản lý đăng bài mạng xã hội","href":"/vi/dashboard/overview"},{"group":"Connect Social Accounts","pages":[{"title":"Kết nối tài khoản mạng xã hội của bạn","href":"/vi/dashboard/connect-social-accounts/overview"},{"title":"Liên kết Bluesky","icon":"bluesky","href":"/vi/dashboard/connect-social-accounts/bluesky"},{"title":"Liên kết Facebook","icon":"facebook","href":"/vi/dashboard/connect-social-accounts/facebook"},{"title":"Liên kết Google Business Profile","icon":"google","href":"/vi/dashboard/connect-social-accounts/google-business"},{"title":"Liên kết Instagram","icon":"instagram","href":"/vi/dashboard/connect-social-accounts/instagram"},{"title":"Liên kết LinkedIn","icon":"linkedin","href":"/vi/dashboard/connect-social-accounts/linkedin"},{"title":"Liên kết Pinterest","icon":"pinterest","href":"/vi/dashboard/connect-social-accounts/pinterest"},{"title":"Liên kết Reddit","icon":"reddit","href":"/vi/dashboard/connect-social-accounts/reddit"},{"title":"Liên kết Snapchat","icon":"snapchat","href":"/vi/dashboard/connect-social-accounts/snapchat"},{"title":"Liên kết nhóm hoặc kênh Telegram với Ayrshare","icon":"telegram","href":"/vi/dashboard/connect-social-accounts/telegram"},{"title":"Liên kết Threads","icon":"threads","href":"/vi/dashboard/connect-social-accounts/threads"},{"title":"Liên kết TikTok","icon":"tiktok","href":"/vi/dashboard/connect-social-accounts/tiktok"},{"title":"Thiết lập X API Key của riêng bạn","icon":"x-twitter","href":"/vi/dashboard/connect-social-accounts/x-twitter-byo-keys"},{"title":"Liên kết X","icon":"x-twitter","href":"/vi/dashboard/connect-social-accounts/x-twitter"},{"title":"Liên kết YouTube","icon":"youtube","href":"/vi/dashboard/connect-social-accounts/youtube"}]},{"title":"Cách đăng bài mạng xã hội","href":"/vi/dashboard/publish-post"},{"title":"Xem JSON","href":"/vi/dashboard/view-json"},{"title":"Thu hồi quyền truy cập mạng xã hội","href":"/vi/dashboard/revoke-access"},{"group":"RSS","pages":[{"title":"Nguồn cấp RSS, Substack và YouTube","href":"/vi/dashboard/automated-rss-feeds"},{"title":"Tìm URL nguồn cấp RSS","href":"/vi/dashboard/find-rss"}]}]},{"group":"Additional","pages":[{"group":"What's New At Ayrshare","pages":[{"title":"Cập nhật Mới nhất","href":"/vi/whatsnew/latest"},{"title":"Kho lưu trữ Cập nhật","href":"/vi/whatsnew/archive"},{"title":"Các thay đổi API sắp tới","mode":"wide","href":"/vi/whatsnew/upcoming-api-changes"}]},{"group":"Errors","pages":[{"title":"Tổng quan về lỗi","href":"/vi/errors/overview"},{"title":"Mã trạng thái HTTP","href":"/vi/errors/errors-http"},{"title":"Mã lỗi Ayrshare","href":"/vi/errors/errors-ayrshare"}]},{"title":"Max Pack","mode":"wide","href":"/vi/additional/maxpack"},{"group":"Media Guidelines","pages":[{"title":"Yêu cầu Hình ảnh \u0026 Video Mạng xã hội","href":"/vi/media-guidelines/overview"},{"title":"Bluesky","icon":"bluesky","href":"/vi/media-guidelines/bluesky"},{"title":"Trang Facebook","icon":"facebook","href":"/vi/media-guidelines/facebook-pages"},{"title":"Google Business Profile","icon":"google","href":"/vi/media-guidelines/google-business-profile"},{"title":"Instagram","icon":"instagram","href":"/vi/media-guidelines/instagram"},{"title":"LinkedIn","icon":"linkedin","href":"/vi/media-guidelines/linkedin"},{"title":"Pinterest","icon":"pinterest","href":"/vi/media-guidelines/pinterest"},{"title":"Reddit","icon":"reddit","href":"/vi/media-guidelines/reddit"},{"title":"Snapchat","icon":"snapchat","href":"/vi/media-guidelines/snapchat"},{"title":"Telegram","icon":"telegram","href":"/vi/media-guidelines/telegram"},{"title":"Threads","icon":"threads","href":"/vi/media-guidelines/threads"},{"title":"TikTok","icon":"tiktok","href":"/vi/media-guidelines/tiktok"},{"title":"WhatsApp","icon":"whatsapp","href":"/vi/media-guidelines/whatsapp"},{"title":"X","icon":"x-twitter","href":"/vi/media-guidelines/x-twitter"},{"title":"YouTube","icon":"youtube","href":"/vi/media-guidelines/youtube"}]},{"group":"Packages \u0026 Guides","pages":[{"title":"Tổng quan SDK \u0026 Hướng dẫn Tích hợp Ayrshare","mode":"wide","href":"/vi/packages-guides/overview"},{"title":"Airtable","href":"/vi/packages-guides/airtable"},{"title":"Bubble.io","href":"/vi/packages-guides/bubble"},{"title":"Flutter","href":"/vi/packages-guides/flutter"},{"title":"FlutterFlow","href":"/vi/packages-guides/flutterflow"},{"title":"Make","href":"/vi/packages-guides/make"},{"title":"n8n","href":"/vi/packages-guides/n8n"},{"title":"Node.js NPM","href":"/vi/packages-guides/nodejs"},{"title":"Notion","href":"/vi/packages-guides/notion"},{"title":"Python PyPI","href":"/vi/packages-guides/python"},{"title":"Retool","href":"/vi/packages-guides/retool"}]},{"title":"Trạng thái hệ thống","href":"/vi/additional/status"},{"group":"Testing \u0026 Verification","pages":[{"title":"Hurl","href":"/vi/testing/hurl"},{"title":"Điểm cuối Xác thực","href":"/vi/testing/validation-endpoints"},{"title":"Postman","href":"/vi/testing/postman"},{"title":"Xác minh Bài đăng","href":"/vi/testing/post-verification"},{"title":"Kiểm tra trước khi đăng","href":"/vi/testing/pre-publish-checks"}]},{"group":"ISO Codes","pages":[{"title":"Mã quốc gia","href":"/vi/iso-codes/country"},{"title":"Mã ngôn ngữ","href":"/vi/iso-codes/language"}]}]}]},{"anchor":"Help Center","icon":"lightbulb","pages":[{"title":"Help Center","href":"/vi/help-center/overview"}]}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/apis/media/resize"}]},{"language":"uk","pages":[{"title":"uk","href":"/uk/apis/media/resize"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/apis/media/resize"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/apis/media/resize"}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-Hans/apis/media/resize"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/apis/media/resize"}]}]},"basePath":"","title":"Thay đổi kích thước Hình ảnh - Ayrshare Docs","deploymentId":"dpl_3L1FNBg9Mynx3haQDgU9Rf9VMnSS","buildId":"dpl_3L1FNBg9Mynx3haQDgU9Rf9VMnSS","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a74be98ba7"],"chunks":["OpenApiReferenceProvider-xpGnaaul.js","snippetPresets-DFnopzEm.js","utils-DRMdof0K.js","style-to-object-BY3JEAdk.js","utils-LcT9fS-Z.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CXVfE-bZ.js","conditional-requirements-CFM0id0Q.js","cloneDeep-B2-8Fada.js","_Uint8Array-BtVUbcAp.js","isObject-FP1Yky1u.js","ApiExamples-DISA6aQu.js","usePlaygroundInputsStore-W_CSvcax.js","shallow-MVXkJ5Lc.js","isEqual-CvE11Zg6.js","CodeSnippets-OONN_OC8.js","CodeSnippet-DRJWrppX.js","use-playground-group-access-51n0EtA1.js","Page-DECsw0Dj.js","api-description-markdown-CYGMisve.js","DynamicMarkdown-DfMYIWKY.js","SectionHeading-BahhTpYu.js","MethodPill-CPp8SQYS.js","getPastedJson-C-RUqx8h.js","Check2Icon-q3AGc5VC.js","axios-CsQoIw0U.js","zoom-image-lightbox-rqAEl6iQ.js","lightbox-handle-r17bVUz3.js"]}