imagekitio 4.4.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,6 +138,18 @@ module Imagekitio
138
138
  # @return [String, nil]
139
139
  optional :border, String
140
140
 
141
+ # @!attribute colorize
142
+ # Applies a color tint to the image. Accepts color and intensity as optional
143
+ # parameters.
144
+ #
145
+ # - `co-color` - Color to apply (e.g., `red`, `blue`, `FF0022`). Default is gray
146
+ # color.
147
+ # - `in-intensity` - Intensity of the color (0-100). Default is 35. See
148
+ # [Colorize](https://imagekit.io/docs/effects-and-enhancements#colorize---e-colorize).
149
+ #
150
+ # @return [String, nil]
151
+ optional :colorize, String
152
+
141
153
  # @!attribute color_profile
142
154
  # Indicates whether the output image should retain the original color profile. See
143
155
  # [Color profile](https://imagekit.io/docs/image-optimization#color-profile---cp).
@@ -498,7 +510,7 @@ module Imagekitio
498
510
  # @return [Float, nil]
499
511
  optional :zoom, Float
500
512
 
501
- # @!method initialize(ai_change_background: nil, ai_drop_shadow: nil, ai_edit: nil, ai_remove_background: nil, ai_remove_background_external: nil, ai_retouch: nil, ai_upscale: nil, ai_variation: nil, aspect_ratio: nil, audio_codec: nil, background: nil, blur: nil, border: nil, color_profile: nil, color_replace: nil, contrast_stretch: nil, crop: nil, crop_mode: nil, default_image: nil, distort: nil, dpr: nil, duration: nil, end_offset: nil, flip: nil, focus: nil, format_: nil, gradient: nil, grayscale: nil, height: nil, lossless: nil, metadata: nil, named: nil, opacity: nil, original: nil, overlay: nil, page: nil, progressive: nil, quality: nil, radius: nil, raw: nil, rotation: nil, shadow: nil, sharpen: nil, start_offset: nil, streaming_resolutions: nil, trim: nil, unsharp_mask: nil, video_codec: nil, width: nil, x: nil, x_center: nil, y_: nil, y_center: nil, zoom: nil)
513
+ # @!method initialize(ai_change_background: nil, ai_drop_shadow: nil, ai_edit: nil, ai_remove_background: nil, ai_remove_background_external: nil, ai_retouch: nil, ai_upscale: nil, ai_variation: nil, aspect_ratio: nil, audio_codec: nil, background: nil, blur: nil, border: nil, colorize: nil, color_profile: nil, color_replace: nil, contrast_stretch: nil, crop: nil, crop_mode: nil, default_image: nil, distort: nil, dpr: nil, duration: nil, end_offset: nil, flip: nil, focus: nil, format_: nil, gradient: nil, grayscale: nil, height: nil, lossless: nil, metadata: nil, named: nil, opacity: nil, original: nil, overlay: nil, page: nil, progressive: nil, quality: nil, radius: nil, raw: nil, rotation: nil, shadow: nil, sharpen: nil, start_offset: nil, streaming_resolutions: nil, trim: nil, unsharp_mask: nil, video_codec: nil, width: nil, x: nil, x_center: nil, y_: nil, y_center: nil, zoom: nil)
502
514
  # Some parameter documentations has been truncated, see
503
515
  # {Imagekitio::Models::Transformation} for more details.
504
516
  #
@@ -535,6 +547,8 @@ module Imagekitio
535
547
  #
536
548
  # @param border [String] Adds a border to the output media. Accepts a string in the format `<border-width
537
549
  #
550
+ # @param colorize [String] Applies a color tint to the image. Accepts color and intensity as optional param
551
+ #
538
552
  # @param color_profile [Boolean] Indicates whether the output image should retain the original color profile.
539
553
  #
540
554
  # @param color_replace [String] Replaces colors in the image. Supports three formats:
@@ -765,6 +779,7 @@ module Imagekitio
765
779
  AT_MAX_ENLARGE = :at_max_enlarge
766
780
  AT_LEAST = :at_least
767
781
  MAINTAIN_RATIO = :maintain_ratio
782
+ MAINTAIN_RATIO_NO_ENLARGE = :maintain_ratio_no_enlarge
768
783
 
769
784
  # @!method self.values
770
785
  # @return [Array<Symbol>]
@@ -780,6 +795,8 @@ module Imagekitio
780
795
  PAD_RESIZE = :pad_resize
781
796
  EXTRACT = :extract
782
797
  PAD_EXTRACT = :pad_extract
798
+ PAD_RESIZE_NO_ENLARGE = :pad_resize_no_enlarge
799
+ PAD_EXTRACT_NO_SHRINK = :pad_extract_no_shrink
783
800
 
784
801
  # @!method self.values
785
802
  # @return [Array<Symbol>]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Imagekitio
4
- VERSION = "4.4.0"
4
+ VERSION = "4.5.1"
5
5
  end
data/lib/imagekitio.rb CHANGED
@@ -95,6 +95,7 @@ require_relative "imagekitio/models/custom_metadata_field_list_response"
95
95
  require_relative "imagekitio/models/custom_metadata_field_update_params"
96
96
  require_relative "imagekitio/models/embedded_metadata"
97
97
  require_relative "imagekitio/models/extension_config"
98
+ require_relative "imagekitio/models/extension_item"
98
99
  require_relative "imagekitio/models/extensions"
99
100
  require_relative "imagekitio/models/file_copy_params"
100
101
  require_relative "imagekitio/models/file_copy_response"