> ## Documentation Index
> Fetch the complete documentation index at: https://docs.img-processing.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edition Methods

> Edit images by adjusting brightness, hue, saturation, or removing background.

<ResponseField name="blur">
  Applies a blur effect to an image. Blurring an image can be useful for various purposes, such as anonymizing sensitive information, creating a soft-focus effect, loader skeletons, etc.

  <CodeGroup>
    ```typescript node-sdk theme={null}
    blur(imageID: string, body: ImageBlurParams | null | undefined = {}, options?: RequestOptions): APIPromise<ImageObject>;
    ```
  </CodeGroup>

  <Expandable title="blurOptions">
    <ResponseField name="imageID" type="string" required>
      The unique identifier of the image to blur.
    </ResponseField>

    <ResponseField name="body" type="object">
      The body parameters for blurring the image.

      <Expandable title="ImageBlurParams">
        <ResponseField name="name" type="string">
          The name of the image to identify it on the dashboard.
        </ResponseField>

        <ResponseField name="sigma" type="number">
          The standard deviation of the Gaussian kernel used to apply the blur effect.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>

  <Expandable title="Examples">
    <CodeGroup>
      ```typescript node-sdk theme={null}
      const imageObject = await client.images.blur('image_etm0g3x5iap4cld1qcfsjvo2', { sigma: 5 });
      ```
    </CodeGroup>
  </Expandable>
</ResponseField>

<ResponseField name="modulate">
  Adjusts the brightness, saturation, and hue of an image.

  <CodeGroup>
    ```typescript node-sdk theme={null}
    modulate(imageID: string, body: ImageModulateParams | null | undefined = {}, options?: RequestOptions): APIPromise<ImageObject>;
    ```
  </CodeGroup>

  <Expandable title="modulateOptions">
    <ResponseField name="imageID" type="string" required>
      The unique identifier of the image to modulate.
    </ResponseField>

    <ResponseField name="body" type="object">
      The body parameters for modulating the image.

      <Expandable title="ImageModulateParams">
        <ResponseField name="brightness" type="number">
          The brightness level to apply to the image. Value should be between -100 and 100, where 0 is no change.
        </ResponseField>

        <ResponseField name="contrast" type="number">
          The contrast level to apply to the image. Value should be between -100 and 100, where 0 is no change.
        </ResponseField>

        <ResponseField name="exposure" type="number">
          The exposure multiplier to apply to the image.
        </ResponseField>

        <ResponseField name="name" type="string">
          The name of the modulation. This is used to identify the modulation in the dashboard.
        </ResponseField>

        <ResponseField name="saturation" type="number">
          The saturation multiplier to apply to the image.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>

  <Expandable title="Examples">
    <CodeGroup>
      ```typescript node-sdk theme={null}
      const imageObject = await client.images.modulate('image_etm0g3x5iap4cld1qcfsjvo2', { brightness: 10, saturation: 20 });
      ```
    </CodeGroup>
  </Expandable>
</ResponseField>

<ResponseField name="removeBackground">
  Removes the background from an image. Removing the background from an image can be useful for various purposes, such as creating a transparent background or isolating the subject of the image.

  <CodeGroup>
    ```typescript node-sdk theme={null}
    removeBackground(imageID: string, body: ImageRemoveBackgroundParams | null | undefined = {}, options?: RequestOptions): APIPromise<ImageObject>;
    ```
  </CodeGroup>

  <Expandable title="removeBackgroundOptions">
    <ResponseField name="imageID" type="string" required>
      The unique identifier of the image to remove the background from.
    </ResponseField>

    <ResponseField name="body" type="object">
      The body parameters for removing the background from the image.

      <Expandable title="ImageRemoveBackgroundParams">
        <ResponseField name="name" type="string">
          The name of the image to identify it on the dashboard.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>

  <Expandable title="Examples">
    <CodeGroup>
      ```typescript node-sdk theme={null}
      const imageObject = await client.images.removeBackground('image_etm0g3x5iap4cld1qcfsjvo2');
      ```
    </CodeGroup>
  </Expandable>
</ResponseField>
