Skip to content

New params for watermarks and imagine#2

Merged
RolandoAndrade merged 2 commits intomasterfrom
feat/new-params
Jan 12, 2025
Merged

New params for watermarks and imagine#2
RolandoAndrade merged 2 commits intomasterfrom
feat/new-params

Conversation

@RolandoAndrade
Copy link
Copy Markdown
Member

This pull request introduces several updates to the IMGProcessingClient and ImageObject classes in the src/api-client.ts and src/image-object.ts files. The main changes include adding new parameters, making some parameters optional, and removing an unused parameter.

Updates to IMGProcessingClient:

  • Added model parameter to the imagine method to specify the model for image generation. * Introduced model property to the IMGProcessingClient.imagine.Params interface, allowing the selection between "sdxl" and "flux" models.
  • Removed the background_color property from the rotate.Params interface, simplifying the parameters for image rotation.
  • Made left and top properties optional in the watermark.Params interface and added new properties for width, height, and repetition_mode to enhance watermark customization.

Updates to ImageObject:

  • Removed the background_color parameter from the rotate method, aligning with the changes in IMGProcessingClient.

@RolandoAndrade RolandoAndrade merged commit c489a09 into master Jan 12, 2025
@RolandoAndrade RolandoAndrade deleted the feat/new-params branch January 12, 2025 14:27
stainless-app bot pushed a commit that referenced this pull request Aug 2, 2025
* fix: upload images

* fix: upload mime type
@stainless-app stainless-app bot mentioned this pull request Aug 2, 2025
RolandoAndrade added a commit that referenced this pull request Aug 2, 2025
* fix: upload images tool (#2)

* fix: upload images

* fix: upload mime type

* release: 2.3.2

---------

Co-authored-by: Rolando Andrade <[email protected]>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant