{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"IMG Processing","colors":{"primary":"#f97316","light":"#fba56a","dark":"#f97316"},"logo":{"light":"https://mintcdn.com/imgprocessing/96najFJQ0rXKRJFY/logo/light.webp?fit=max\u0026auto=format\u0026n=96najFJQ0rXKRJFY\u0026q=85\u0026s=dcc40ace66acd5d67790c9dea2e2281c","dark":"https://mintcdn.com/imgprocessing/96najFJQ0rXKRJFY/logo/dark.webp?fit=max\u0026auto=format\u0026n=96najFJQ0rXKRJFY\u0026q=85\u0026s=7e639ac8a542ac2eada5070735902b8a","href":"https://img-processing.com"},"favicon":"/favicon.png","api":{"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.img-processing.com"}},"navbar":{"links":[{"label":"Feedback","href":"https://imgprocessing.featurebase.app"},{"label":"Support","href":"mailto:support@img-processing.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.img-processing.com"}},"seo":{"metatags":{"og:image":"https://storage.img-processing.com/og-image.jpg"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"imgprocessing","hasAudioNarration":false,"actualSubdomain":"imgprocessing","customDomains":["docs.img-processing.com"],"gitSource":{"type":"github","owner":"rolandoandrade","repo":"img-processing","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9217b66c39cbdc5f30d81:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":64},{"language":"default","tag":"API Endpoints","count":22},{"language":"default","tag":"SDK Reference","count":9},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"Access Endpoints","count":6},{"language":"default","tag":"Transformation Endpoints","count":6},{"language":"default","tag":"Methods","count":6},{"language":"default","tag":"AI Toolkit","count":4},{"language":"default","tag":"Edition Endpoints","count":4},{"language":"default","tag":"Guides","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"sdk/methods/transformation-methods","slug":"/sdk/methods/transformation-methods","pageMetadata":{"title":"Transformation Methods","description":"Apply transformations to images","icon":"compress","href":"/sdk/methods/transformation-methods"},"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: \"Apply transformations to images\"\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];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(ResponseField,{name:`convert`,id:`param-convert`,children:[_jsx(_components.p,{children:`Converts an image to a different format (jpeg, png, or webp).`}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`convert`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imageID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageConvertParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` RequestOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`APIPromise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})}),_jsxs(Expandable,{title:`convertOptions`,children:[_jsx(ResponseField,{name:`imageID`,type:`string`,required:true,id:`param-image-id`,children:_jsx(_components.p,{children:`The unique identifier of the image to convert.`})}),_jsxs(ResponseField,{name:`body`,type:`object`,required:true,id:`param-body`,children:[_jsx(_components.p,{children:`The body parameters for converting the image.`}),_jsxs(Expandable,{title:`ImageConvertParams`,children:[_jsx(ResponseField,{name:`format`,type:`string`,required:true,id:`param-format`,children:_jsx(_components.p,{children:`The format to convert the image to (jpeg, png, webp).`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`The name of the image to identify it on the dashboard.`})}),_jsx(ResponseField,{name:`quality`,type:`number`,id:`param-quality`,children:_jsx(_components.p,{children:`The quality of the image to convert. It is a number between 1 and 100. If not provided, a default quality will be used.`})})]})]})]}),_jsx(Expandable,{title:`Examples`,children:_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,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:` imageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`images`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`convert`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image_etm0g3x5iap4cld1qcfsjvo2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`format:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'jpeg'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})})})})]}),`\n`,_jsxs(ResponseField,{name:`crop`,id:`param-crop`,children:[_jsx(_components.p,{children:`Crops an image by specifying the dimensions of the crop area.`}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`crop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imageID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageCropParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` RequestOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`APIPromise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})}),_jsxs(Expandable,{title:`cropOptions`,children:[_jsx(ResponseField,{name:`imageID`,type:`string`,required:true,id:`param-image-id-1`,children:_jsx(_components.p,{children:`The unique identifier of the image to crop.`})}),_jsxs(ResponseField,{name:`body`,type:`object`,required:true,id:`param-body-1`,children:[_jsx(_components.p,{children:`The body parameters for cropping the image.`}),_jsxs(Expandable,{title:`ImageCropParams`,children:[_jsx(ResponseField,{name:`x1`,type:`number`,required:true,id:`param-x1`,children:_jsx(_components.p,{children:`The x-coordinate of the top-left corner of the crop area.`})}),_jsx(ResponseField,{name:`x2`,type:`number`,required:true,id:`param-x2`,children:_jsx(_components.p,{children:`The x-coordinate of the bottom-right corner of the crop area.`})}),_jsx(ResponseField,{name:`y1`,type:`number`,required:true,id:`param-y1`,children:_jsx(_components.p,{children:`The y-coordinate of the top-left corner of the crop area.`})}),_jsx(ResponseField,{name:`y2`,type:`number`,required:true,id:`param-y2`,children:_jsx(_components.p,{children:`The y-coordinate of the bottom-right corner of the crop area.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`The name of the image to identify it on the dashboard.`})})]})]})]}),_jsx(Expandable,{title:`Examples`,children:_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,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:` imageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`images`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`crop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image_etm0g3x5iap4cld1qcfsjvo2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`x1:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`x2:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`y1:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`y2:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})})})})]}),`\n`,_jsxs(ResponseField,{name:`mirror`,id:`param-mirror`,children:[_jsx(_components.p,{children:`Mirrors an image horizontally or vertically.`}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`mirror`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imageID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageMirrorParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` RequestOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`APIPromise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})}),_jsxs(Expandable,{title:`mirrorOptions`,children:[_jsx(ResponseField,{name:`imageID`,type:`string`,required:true,id:`param-image-id-2`,children:_jsx(_components.p,{children:`The unique identifier of the image to mirror.`})}),_jsxs(ResponseField,{name:`body`,type:`object`,required:true,id:`param-body-2`,children:[_jsx(_components.p,{children:`The body parameters for mirroring the image.`}),_jsxs(Expandable,{title:`ImageMirrorParams`,children:[_jsx(ResponseField,{name:`mode`,type:`string`,required:true,id:`param-mode`,children:_jsx(_components.p,{children:`The mode of mirroring (horizontal, vertical, or both).`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-2`,children:_jsx(_components.p,{children:`The name of the image to identify it on the dashboard.`})})]})]})]}),_jsx(Expandable,{title:`Examples`,children:_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,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:` imageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`images`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`mirror`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image_etm0g3x5iap4cld1qcfsjvo2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'horizontal'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})})})})]}),`\n`,_jsxs(ResponseField,{name:`resize`,id:`param-resize`,children:[_jsxs(_components.p,{children:[`Resizes an image, you can use `,_jsx(_components.code,{children:`fit`}),` to specify how the image is resized.`]}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`resize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imageID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageResizeParams`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` undefined`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` RequestOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`APIPromise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})}),_jsxs(Expandable,{title:`resizeOptions`,children:[_jsx(ResponseField,{name:`imageID`,type:`string`,required:true,id:`param-image-id-3`,children:_jsx(_components.p,{children:`The unique identifier of the image to resize.`})}),_jsxs(ResponseField,{name:`body`,type:`object`,id:`param-body-3`,children:[_jsx(_components.p,{children:`The body parameters for resizing the image.`}),_jsxs(Expandable,{title:`ImageResizeParams`,children:[_jsx(ResponseField,{name:`fit`,type:`string`,id:`param-fit`,children:_jsx(_components.p,{children:`The fit mode to use when resizing the image (cover, contain, or fill).`})}),_jsx(ResponseField,{name:`height`,type:`number`,id:`param-height`,children:_jsx(_components.p,{children:`The height of the image to resize.`})}),_jsx(ResponseField,{name:`letterbox_color`,type:`string`,id:`param-letterbox-color`,children:_jsx(_components.p,{children:`The color of the letterbox when using the contain fit mode.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-3`,children:_jsx(_components.p,{children:`The name of the image to identify it on the dashboard.`})}),_jsx(ResponseField,{name:`position`,type:`string`,id:`param-position`,children:_jsx(_components.p,{children:`The gravity position of the image when using the cover or contain fit modes.`})}),_jsx(ResponseField,{name:`width`,type:`number`,id:`param-width`,children:_jsx(_components.p,{children:`The width of the image to resize.`})})]})]})]}),_jsx(Expandable,{title:`Examples`,children:_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,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:` imageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`images`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`resize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image_etm0g3x5iap4cld1qcfsjvo2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`width:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`height:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})})})})]}),`\n`,_jsxs(ResponseField,{name:`rotate`,id:`param-rotate`,children:[_jsx(_components.p,{children:`Rotates an image by a specified angle.`}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`rotate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imageID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageRotateParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` RequestOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`APIPromise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ImageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})}),_jsxs(Expandable,{title:`rotateOptions`,children:[_jsx(ResponseField,{name:`imageID`,type:`string`,required:true,id:`param-image-id-4`,children:_jsx(_components.p,{children:`The unique identifier of the image to rotate.`})}),_jsxs(ResponseField,{name:`body`,type:`object`,required:true,id:`param-body-4`,children:[_jsx(_components.p,{children:`The body parameters for rotating the image.`}),_jsxs(Expandable,{title:`ImageRotateParams`,children:[_jsx(ResponseField,{name:`angle`,type:`number`,required:true,id:`param-angle`,children:_jsx(_components.p,{children:`The angle in degrees or radians to rotate the image.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-4`,children:_jsx(_components.p,{children:`The name of the image to identify it on the dashboard.`})}),_jsx(ResponseField,{name:`unit`,type:`string`,id:`param-unit`,children:_jsx(_components.p,{children:`The unit of the angle (degrees or radians). Defaults to degrees if not provided.`})})]})]})]}),_jsx(Expandable,{title:`Examples`,children:_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`node-sdk`,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,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:` imageObject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`images`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`rotate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image_etm0g3x5iap4cld1qcfsjvo2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`angle:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 90`}),_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{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":{"config":{},"pageMetadata":{"title":"Transformation Methods","description":"Apply transformations to images","icon":"compress","href":"/sdk/methods/transformation-methods"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"imgprocessing","siteName":"IMG Processing","title":"Transformation Methods - IMG Processing","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T03:41:38.941Z","originalFileLocation":"sdk/methods/transformation-methods.mdx"},"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=\"system\"}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=\"Apply transformations to images\">\u003cmeta data-mint-head name=\"application-name\" content=\"IMG Processing\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Transformation Methods - IMG Processing\">\u003cmeta data-mint-head property=\"og:description\" content=\"Apply transformations to images\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"IMG Processing\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.img-processing.com/sdk/methods/transformation-methods\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://storage.img-processing.com/og-image.jpg\">\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=\"Transformation Methods - IMG Processing\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Apply transformations to images\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://storage.img-processing.com/og-image.jpg\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"IMG Processing\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#f97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.img-processing.com/sdk/methods/transformation-methods\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/methods/transformation-methods.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.img-processing.com/#organization\",\"name\":\"IMG Processing\",\"url\":\"https://docs.img-processing.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/imgprocessing/96najFJQ0rXKRJFY/logo/light.webp?fit=max\u0026auto=format\u0026n=96najFJQ0rXKRJFY\u0026q=85\u0026s=dcc40ace66acd5d67790c9dea2e2281c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.img-processing.com#website\",\"name\":\"IMG Processing\",\"url\":\"https://docs.img-processing.com\",\"publisher\":{\"@id\":\"https://docs.img-processing.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.img-processing.com/sdk/methods/transformation-methods#webpage\",\"url\":\"https://docs.img-processing.com/sdk/methods/transformation-methods\",\"name\":\"Transformation Methods\",\"description\":\"Apply transformations to images\",\"dateModified\":\"2026-01-07T03:41:38.941Z\",\"isPartOf\":{\"@id\":\"https://docs.img-processing.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.img-processing.com/sdk/methods/transformation-methods#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.img-processing.com/sdk/methods/transformation-methods#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Methods\",\"item\":\"https://docs.img-processing.com/sdk/methods/creation-methods\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Transformation Methods\",\"item\":\"https://docs.img-processing.com/sdk/methods/transformation-methods\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.img-processing.com/sdk/methods/transformation-methods#article\",\"headline\":\"Transformation Methods\",\"name\":\"Transformation Methods\",\"description\":\"Apply transformations to images\",\"url\":\"https://docs.img-processing.com/sdk/methods/transformation-methods\",\"mainEntityOfPage\":{\"@id\":\"https://docs.img-processing.com/sdk/methods/transformation-methods#webpage\"},\"image\":\"https://storage.img-processing.com/og-image.jpg\",\"dateModified\":\"2026-01-07T03:41:38.941Z\",\"publisher\":{\"@id\":\"https://docs.img-processing.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.img-processing.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"IMG Processing\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"IMG Processing\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdk/methods/transformation-methods.md","siteName":"IMG Processing","nav":{"global":null,"tabs":[{"tab":"API Reference","dropdowns":[{"dropdown":"API Reference","icon":"code","description":"API endpoints","pages":[{"group":"Get Started","pages":[{"title":"Introduction","icon":"house","href":"/api-reference/introduction"},{"title":"API Endpoints","icon":"plug","href":"/api-reference/endpoints"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Pagination","icon":"list","href":"/api-reference/pagination"},{"title":"Changelog","icon":"clock","href":"/api-reference/changelog"}]},{"group":"Explore","pages":[{"title":"Playground","icon":"play","href":"/api-reference/explore/playground"},{"title":"Postman Collection","icon":"user-astronaut","href":"/api-reference/explore/postman"},{"title":"OpenAPI Spec","icon":"code","href":"/api-reference/explore/openapi-spec"}]},{"group":"API Endpoints","pages":[{"title":"Image Object","icon":"image","href":"/api-reference/endpoints/image"},{"group":"Creation Endpoints","icon":"plus","pages":[{"title":"Create image from URL","api":"POST /v1/images","openapi":"openapi.json post /v1/images","href":"/api-reference/endpoints/creation/create"},{"title":"Imagine Image","api":"POST /v1/images/imagine","openapi":"openapi.json post /v1/images/imagine","href":"/api-reference/endpoints/creation/imagine"},{"title":"Upload Image","api":"POST /v1/images/upload","openapi":"openapi.json post /v1/images/upload","href":"/api-reference/endpoints/creation/upload"}]},{"group":"Access Endpoints","icon":"download","pages":[{"api":"DELETE /v1/images/{imageId}","openapi":"openapi.json delete /v1/images/{image_id}","title":"Delete Image","href":"/api-reference/endpoints/access/delete"},{"api":"GET /v1/images/{imageId}/download","openapi":"openapi.json get /v1/images/{image_id}/download","title":"Download Image","href":"/api-reference/endpoints/access/download"},{"title":"Get Image","api":"GET /v1/images/{imageId}","openapi":"openapi.json get /v1/images/{image_id}","href":"/api-reference/endpoints/access/get-image"},{"title":"List Images","api":"GET /v1/images","openapi":"openapi.json get /v1/images","href":"/api-reference/endpoints/access/get-images"},{"title":"Publish Image","api":"POST /v1/images/{imageId}/publish","openapi":"openapi.json post /v1/images/{image_id}/publish","href":"/api-reference/endpoints/access/publish"},{"title":"Unpublish Image","api":"POST /v1/images/{imageId}/unpublish","openapi":"openapi.json post /v1/images/{image_id}/unpublish","href":"/api-reference/endpoints/access/unpublish"}]},{"group":"Transformation Endpoints","icon":"compress","pages":[{"title":"Convert Image","api":"POST /v1/images/{imageId}/convert","openapi":"openapi.json post /v1/images/{image_id}/convert","href":"/api-reference/endpoints/transformation/convert"},{"title":"Crop Image","api":"POST /v1/images/{imageId}/crop","openapi":"openapi.json post /v1/images/{image_id}/crop","href":"/api-reference/endpoints/transformation/crop"},{"title":"Mirror Image","api":"POST /v1/images/{imageId}/mirror","openapi":"openapi.json post /v1/images/{image_id}/mirror","href":"/api-reference/endpoints/transformation/mirror"},{"title":"Resize Image","api":"POST /v1/images/{imageId}/resize","openapi":"openapi.json post /v1/images/{image_id}/resize","href":"/api-reference/endpoints/transformation/resize"},{"title":"Rotate Image","api":"POST /v1/images/{imageId}/rotate","openapi":"openapi.json post /v1/images/{image_id}/rotate","href":"/api-reference/endpoints/transformation/rotate"}]},{"group":"Edition Endpoints","icon":"palette","pages":[{"title":"Blur Image","api":"POST /v1/images/{imageId}/blur","openapi":"openapi.json post /v1/images/{image_id}/blur","href":"/api-reference/endpoints/edition/blur"},{"title":"Modulate Image","api":"POST /v1/images/{imageId}/modulate","openapi":"openapi.json post /v1/images/{image_id}/modulate","href":"/api-reference/endpoints/edition/modulate"},{"title":"Remove Image Background","api":"POST /v1/images/{imageId}/remove-background","openapi":"openapi.json post /v1/images/{image_id}/remove-background","href":"/api-reference/endpoints/edition/remove-background"}]},{"group":"Multi-Image Endpoints","icon":"images","pages":[{"title":"Add Watermarks","api":"POST /v1/images/{imageId}/watermark","openapi":"openapi.json post /v1/images/{image_id}/watermark","href":"/api-reference/endpoints/multi-image/watermark"}]},{"group":"Analysis Endpoints","icon":"eye","pages":[{"title":"Extract Formatted Text","api":"POST /v1/images/{imageId}/extract-formatted-text","openapi":"openapi.json post /v1/images/{image_id}/extract-formatted-text","href":"/api-reference/endpoints/analysis/extract-formatted-text"},{"title":"Image Classification","api":"POST /v1/images/{imageId}/classify","openapi":"openapi.json post /v1/images/{image_id}/classify","href":"/api-reference/endpoints/analysis/classify"},{"title":"Visualize Image","api":"POST /v1/images/{imageId}/visualize","openapi":"openapi.json post /v1/images/{image_id}/visualize","href":"/api-reference/endpoints/analysis/visualize"}]}]}]},{"dropdown":"Guides","icon":"book","description":"Guides for using the API","pages":[{"title":"Quickstart","icon":"bolt","href":"/api-reference/guides/getting-started"},{"group":"Edition Endpoints","pages":[{"title":"Remove Image Background","icon":"loader","href":"/api-reference/guides/remove-image-background"}]},{"group":"Transformation Endpoints","pages":[{"title":"Resize Image","icon":"compress","href":"/api-reference/guides/resize-image"}]},{"group":"Multi-Image Endpoints","pages":[{"title":"Watermark Image","icon":"stamp","href":"/api-reference/guides/apply-watermarks"}]}]}]},{"tab":"SDK Reference","pages":[{"group":"Get Started","pages":[{"title":"Introduction","icon":"house","href":"/sdk/introduction"},{"title":"Getting Started","icon":"rocket","href":"/sdk/getting-started"},{"title":"ImageObject","icon":"image","href":"/sdk/image-object"}]},{"group":"Methods","pages":[{"title":"Creation Methods","icon":"plus","href":"/sdk/methods/creation-methods"},{"title":"Access Methods","description":"Get images, make them public, or private.","icon":"download","href":"/sdk/methods/access-methods"},{"title":"Transformation Methods","icon":"compress","href":"/sdk/methods/transformation-methods"},{"title":"Edition Methods","description":"Edit images by adjusting brightness, hue, saturation, or removing background.","icon":"palette","href":"/sdk/methods/edition-methods"},{"title":"Multi-Image Methods","icon":"images","href":"/sdk/methods/multi-image-methods"},{"title":"Analysis Methods","icon":"eye","href":"/sdk/methods/analysis-methods"}]}]},{"tab":"AI Toolkit","pages":[{"title":"AI Toolkit","href":"/ai-toolkit"}]}]},"basePath":"","title":"Transformation Methods - IMG Processing","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}