imagekitio 4.4.1 → 4.6.0

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.
@@ -175,6 +175,7 @@ module Imagekitio
175
175
  type exif =
176
176
  {
177
177
  aperture_value: Float,
178
+ brightness_value: Float,
178
179
  color_space: Integer,
179
180
  create_date: String,
180
181
  custom_rendered: Integer,
@@ -189,16 +190,23 @@ module Imagekitio
189
190
  flash: Integer,
190
191
  flashpix_version: String,
191
192
  f_number: Float,
192
- focal_length: Integer,
193
+ focal_length: Float,
194
+ :focal_length_in35mm_format => Integer,
193
195
  focal_plane_resolution_unit: Integer,
194
196
  focal_plane_x_resolution: Float,
195
197
  focal_plane_y_resolution: Float,
196
198
  interop_offset: Integer,
197
199
  iso: Integer,
200
+ lens_model: String,
201
+ light_source: Integer,
202
+ max_aperture_value: Float,
198
203
  metering_mode: Integer,
199
204
  scene_capture_type: Integer,
205
+ scene_type: String,
206
+ sensing_method: Integer,
200
207
  shutter_speed_value: Float,
201
208
  sub_sec_time: String,
209
+ user_comment: String,
202
210
  white_balance: Integer
203
211
  }
204
212
 
@@ -207,6 +215,10 @@ module Imagekitio
207
215
 
208
216
  def aperture_value=: (Float) -> Float
209
217
 
218
+ attr_reader brightness_value: Float?
219
+
220
+ def brightness_value=: (Float) -> Float
221
+
210
222
  attr_reader color_space: Integer?
211
223
 
212
224
  def color_space=: (Integer) -> Integer
@@ -263,9 +275,13 @@ module Imagekitio
263
275
 
264
276
  def f_number=: (Float) -> Float
265
277
 
266
- attr_reader focal_length: Integer?
278
+ attr_reader focal_length: Float?
279
+
280
+ def focal_length=: (Float) -> Float
267
281
 
268
- def focal_length=: (Integer) -> Integer
282
+ attr_reader focal_length_in35mm_format: Integer?
283
+
284
+ def focal_length_in35mm_format=: (Integer) -> Integer
269
285
 
270
286
  attr_reader focal_plane_resolution_unit: Integer?
271
287
 
@@ -287,6 +303,18 @@ module Imagekitio
287
303
 
288
304
  def iso=: (Integer) -> Integer
289
305
 
306
+ attr_reader lens_model: String?
307
+
308
+ def lens_model=: (String) -> String
309
+
310
+ attr_reader light_source: Integer?
311
+
312
+ def light_source=: (Integer) -> Integer
313
+
314
+ attr_reader max_aperture_value: Float?
315
+
316
+ def max_aperture_value=: (Float) -> Float
317
+
290
318
  attr_reader metering_mode: Integer?
291
319
 
292
320
  def metering_mode=: (Integer) -> Integer
@@ -295,6 +323,14 @@ module Imagekitio
295
323
 
296
324
  def scene_capture_type=: (Integer) -> Integer
297
325
 
326
+ attr_reader scene_type: String?
327
+
328
+ def scene_type=: (String) -> String
329
+
330
+ attr_reader sensing_method: Integer?
331
+
332
+ def sensing_method=: (Integer) -> Integer
333
+
298
334
  attr_reader shutter_speed_value: Float?
299
335
 
300
336
  def shutter_speed_value=: (Float) -> Float
@@ -303,12 +339,17 @@ module Imagekitio
303
339
 
304
340
  def sub_sec_time=: (String) -> String
305
341
 
342
+ attr_reader user_comment: String?
343
+
344
+ def user_comment=: (String) -> String
345
+
306
346
  attr_reader white_balance: Integer?
307
347
 
308
348
  def white_balance=: (Integer) -> Integer
309
349
 
310
350
  def initialize: (
311
351
  ?aperture_value: Float,
352
+ ?brightness_value: Float,
312
353
  ?color_space: Integer,
313
354
  ?create_date: String,
314
355
  ?custom_rendered: Integer,
@@ -323,21 +364,29 @@ module Imagekitio
323
364
  ?flash: Integer,
324
365
  ?flashpix_version: String,
325
366
  ?f_number: Float,
326
- ?focal_length: Integer,
367
+ ?focal_length: Float,
368
+ ?focal_length_in35mm_format: Integer,
327
369
  ?focal_plane_resolution_unit: Integer,
328
370
  ?focal_plane_x_resolution: Float,
329
371
  ?focal_plane_y_resolution: Float,
330
372
  ?interop_offset: Integer,
331
373
  ?iso: Integer,
374
+ ?lens_model: String,
375
+ ?light_source: Integer,
376
+ ?max_aperture_value: Float,
332
377
  ?metering_mode: Integer,
333
378
  ?scene_capture_type: Integer,
379
+ ?scene_type: String,
380
+ ?sensing_method: Integer,
334
381
  ?shutter_speed_value: Float,
335
382
  ?sub_sec_time: String,
383
+ ?user_comment: String,
336
384
  ?white_balance: Integer
337
385
  ) -> void
338
386
 
339
387
  def to_hash: -> {
340
388
  aperture_value: Float,
389
+ brightness_value: Float,
341
390
  color_space: Integer,
342
391
  create_date: String,
343
392
  custom_rendered: Integer,
@@ -352,48 +401,143 @@ module Imagekitio
352
401
  flash: Integer,
353
402
  flashpix_version: String,
354
403
  f_number: Float,
355
- focal_length: Integer,
404
+ focal_length: Float,
405
+ :focal_length_in35mm_format => Integer,
356
406
  focal_plane_resolution_unit: Integer,
357
407
  focal_plane_x_resolution: Float,
358
408
  focal_plane_y_resolution: Float,
359
409
  interop_offset: Integer,
360
410
  iso: Integer,
411
+ lens_model: String,
412
+ light_source: Integer,
413
+ max_aperture_value: Float,
361
414
  metering_mode: Integer,
362
415
  scene_capture_type: Integer,
416
+ scene_type: String,
417
+ sensing_method: Integer,
363
418
  shutter_speed_value: Float,
364
419
  sub_sec_time: String,
420
+ user_comment: String,
365
421
  white_balance: Integer
366
422
  }
367
423
  end
368
424
 
369
- type gps = { gps_version_id: ::Array[Integer] }
425
+ type gps =
426
+ {
427
+ gps_altitude: Float,
428
+ gps_altitude_ref: Integer,
429
+ gps_date_stamp: String,
430
+ gps_img_direction: Float,
431
+ gps_img_direction_ref: String,
432
+ gps_latitude: ::Array[Float],
433
+ gps_latitude_ref: String,
434
+ gps_longitude: ::Array[Float],
435
+ gps_longitude_ref: String,
436
+ gps_time_stamp: ::Array[Float],
437
+ gps_version_id: ::Array[Integer]
438
+ }
370
439
 
371
440
  class Gps < Imagekitio::Internal::Type::BaseModel
441
+ attr_reader gps_altitude: Float?
442
+
443
+ def gps_altitude=: (Float) -> Float
444
+
445
+ attr_reader gps_altitude_ref: Integer?
446
+
447
+ def gps_altitude_ref=: (Integer) -> Integer
448
+
449
+ attr_reader gps_date_stamp: String?
450
+
451
+ def gps_date_stamp=: (String) -> String
452
+
453
+ attr_reader gps_img_direction: Float?
454
+
455
+ def gps_img_direction=: (Float) -> Float
456
+
457
+ attr_reader gps_img_direction_ref: String?
458
+
459
+ def gps_img_direction_ref=: (String) -> String
460
+
461
+ attr_reader gps_latitude: ::Array[Float]?
462
+
463
+ def gps_latitude=: (::Array[Float]) -> ::Array[Float]
464
+
465
+ attr_reader gps_latitude_ref: String?
466
+
467
+ def gps_latitude_ref=: (String) -> String
468
+
469
+ attr_reader gps_longitude: ::Array[Float]?
470
+
471
+ def gps_longitude=: (::Array[Float]) -> ::Array[Float]
472
+
473
+ attr_reader gps_longitude_ref: String?
474
+
475
+ def gps_longitude_ref=: (String) -> String
476
+
477
+ attr_reader gps_time_stamp: ::Array[Float]?
478
+
479
+ def gps_time_stamp=: (::Array[Float]) -> ::Array[Float]
480
+
372
481
  attr_reader gps_version_id: ::Array[Integer]?
373
482
 
374
483
  def gps_version_id=: (::Array[Integer]) -> ::Array[Integer]
375
484
 
376
- def initialize: (?gps_version_id: ::Array[Integer]) -> void
485
+ def initialize: (
486
+ ?gps_altitude: Float,
487
+ ?gps_altitude_ref: Integer,
488
+ ?gps_date_stamp: String,
489
+ ?gps_img_direction: Float,
490
+ ?gps_img_direction_ref: String,
491
+ ?gps_latitude: ::Array[Float],
492
+ ?gps_latitude_ref: String,
493
+ ?gps_longitude: ::Array[Float],
494
+ ?gps_longitude_ref: String,
495
+ ?gps_time_stamp: ::Array[Float],
496
+ ?gps_version_id: ::Array[Integer]
497
+ ) -> void
377
498
 
378
- def to_hash: -> { gps_version_id: ::Array[Integer] }
499
+ def to_hash: -> {
500
+ gps_altitude: Float,
501
+ gps_altitude_ref: Integer,
502
+ gps_date_stamp: String,
503
+ gps_img_direction: Float,
504
+ gps_img_direction_ref: String,
505
+ gps_latitude: ::Array[Float],
506
+ gps_latitude_ref: String,
507
+ gps_longitude: ::Array[Float],
508
+ gps_longitude_ref: String,
509
+ gps_time_stamp: ::Array[Float],
510
+ gps_version_id: ::Array[Integer]
511
+ }
379
512
  end
380
513
 
381
514
  type image =
382
515
  {
516
+ artist: String,
517
+ copyright: String,
383
518
  exif_offset: Integer,
384
519
  gps_info: Integer,
520
+ image_description: String,
385
521
  make: String,
386
522
  model: String,
387
523
  modify_date: String,
388
524
  orientation: Integer,
389
525
  resolution_unit: Integer,
390
526
  software: String,
391
- x_resolution: Integer,
527
+ x_resolution: Float,
392
528
  y_cb_cr_positioning: Integer,
393
- y_resolution: Integer
529
+ y_resolution: Float
394
530
  }
395
531
 
396
532
  class Image < Imagekitio::Internal::Type::BaseModel
533
+ attr_reader artist: String?
534
+
535
+ def artist=: (String) -> String
536
+
537
+ attr_reader copyright: String?
538
+
539
+ def copyright=: (String) -> String
540
+
397
541
  attr_reader exif_offset: Integer?
398
542
 
399
543
  def exif_offset=: (Integer) -> Integer
@@ -402,6 +546,10 @@ module Imagekitio
402
546
 
403
547
  def gps_info=: (Integer) -> Integer
404
548
 
549
+ attr_reader image_description: String?
550
+
551
+ def image_description=: (String) -> String
552
+
405
553
  attr_reader make: String?
406
554
 
407
555
  def make=: (String) -> String
@@ -426,44 +574,50 @@ module Imagekitio
426
574
 
427
575
  def software=: (String) -> String
428
576
 
429
- attr_reader x_resolution: Integer?
577
+ attr_reader x_resolution: Float?
430
578
 
431
- def x_resolution=: (Integer) -> Integer
579
+ def x_resolution=: (Float) -> Float
432
580
 
433
581
  attr_reader y_cb_cr_positioning: Integer?
434
582
 
435
583
  def y_cb_cr_positioning=: (Integer) -> Integer
436
584
 
437
- attr_reader y_resolution: Integer?
585
+ attr_reader y_resolution: Float?
438
586
 
439
- def y_resolution=: (Integer) -> Integer
587
+ def y_resolution=: (Float) -> Float
440
588
 
441
589
  def initialize: (
590
+ ?artist: String,
591
+ ?copyright: String,
442
592
  ?exif_offset: Integer,
443
593
  ?gps_info: Integer,
594
+ ?image_description: String,
444
595
  ?make: String,
445
596
  ?model: String,
446
597
  ?modify_date: String,
447
598
  ?orientation: Integer,
448
599
  ?resolution_unit: Integer,
449
600
  ?software: String,
450
- ?x_resolution: Integer,
601
+ ?x_resolution: Float,
451
602
  ?y_cb_cr_positioning: Integer,
452
- ?y_resolution: Integer
603
+ ?y_resolution: Float
453
604
  ) -> void
454
605
 
455
606
  def to_hash: -> {
607
+ artist: String,
608
+ copyright: String,
456
609
  exif_offset: Integer,
457
610
  gps_info: Integer,
611
+ image_description: String,
458
612
  make: String,
459
613
  model: String,
460
614
  modify_date: String,
461
615
  orientation: Integer,
462
616
  resolution_unit: Integer,
463
617
  software: String,
464
- x_resolution: Integer,
618
+ x_resolution: Float,
465
619
  y_cb_cr_positioning: Integer,
466
- y_resolution: Integer
620
+ y_resolution: Float
467
621
  }
468
622
  end
469
623
 
@@ -493,8 +647,8 @@ module Imagekitio
493
647
  resolution_unit: Integer,
494
648
  thumbnail_length: Integer,
495
649
  thumbnail_offset: Integer,
496
- x_resolution: Integer,
497
- y_resolution: Integer
650
+ x_resolution: Float,
651
+ y_resolution: Float
498
652
  }
499
653
 
500
654
  class Thumbnail < Imagekitio::Internal::Type::BaseModel
@@ -514,21 +668,21 @@ module Imagekitio
514
668
 
515
669
  def thumbnail_offset=: (Integer) -> Integer
516
670
 
517
- attr_reader x_resolution: Integer?
671
+ attr_reader x_resolution: Float?
518
672
 
519
- def x_resolution=: (Integer) -> Integer
673
+ def x_resolution=: (Float) -> Float
520
674
 
521
- attr_reader y_resolution: Integer?
675
+ attr_reader y_resolution: Float?
522
676
 
523
- def y_resolution=: (Integer) -> Integer
677
+ def y_resolution=: (Float) -> Float
524
678
 
525
679
  def initialize: (
526
680
  ?compression: Integer,
527
681
  ?resolution_unit: Integer,
528
682
  ?thumbnail_length: Integer,
529
683
  ?thumbnail_offset: Integer,
530
- ?x_resolution: Integer,
531
- ?y_resolution: Integer
684
+ ?x_resolution: Float,
685
+ ?y_resolution: Float
532
686
  ) -> void
533
687
 
534
688
  def to_hash: -> {
@@ -536,8 +690,8 @@ module Imagekitio
536
690
  resolution_unit: Integer,
537
691
  thumbnail_length: Integer,
538
692
  thumbnail_offset: Integer,
539
- x_resolution: Integer,
540
- y_resolution: Integer
693
+ x_resolution: Float,
694
+ y_resolution: Float
541
695
  }
542
696
  end
543
697
  end
@@ -15,6 +15,7 @@ module Imagekitio
15
15
  background: String,
16
16
  blur: Float,
17
17
  border: String,
18
+ colorize: String,
18
19
  color_profile: bool,
19
20
  color_replace: String,
20
21
  contrast_stretch: Imagekitio::Models::Transformation::contrast_stretch,
@@ -127,6 +128,10 @@ module Imagekitio
127
128
 
128
129
  def border=: (String) -> String
129
130
 
131
+ attr_reader colorize: String?
132
+
133
+ def colorize=: (String) -> String
134
+
130
135
  attr_reader color_profile: bool?
131
136
 
132
137
  def color_profile=: (bool) -> bool
@@ -355,6 +360,7 @@ module Imagekitio
355
360
  ?background: String,
356
361
  ?blur: Float,
357
362
  ?border: String,
363
+ ?colorize: String,
358
364
  ?color_profile: bool,
359
365
  ?color_replace: String,
360
366
  ?contrast_stretch: Imagekitio::Models::Transformation::contrast_stretch,
@@ -412,6 +418,7 @@ module Imagekitio
412
418
  background: String,
413
419
  blur: Float,
414
420
  border: String,
421
+ colorize: String,
415
422
  color_profile: bool,
416
423
  color_replace: String,
417
424
  contrast_stretch: Imagekitio::Models::Transformation::contrast_stretch,
@@ -544,7 +551,12 @@ module Imagekitio
544
551
  end
545
552
 
546
553
  type crop =
547
- :force | :at_max | :at_max_enlarge | :at_least | :maintain_ratio
554
+ :force
555
+ | :at_max
556
+ | :at_max_enlarge
557
+ | :at_least
558
+ | :maintain_ratio
559
+ | :maintain_ratio_no_enlarge
548
560
 
549
561
  module Crop
550
562
  extend Imagekitio::Internal::Type::Enum
@@ -554,11 +566,17 @@ module Imagekitio
554
566
  AT_MAX_ENLARGE: :at_max_enlarge
555
567
  AT_LEAST: :at_least
556
568
  MAINTAIN_RATIO: :maintain_ratio
569
+ MAINTAIN_RATIO_NO_ENLARGE: :maintain_ratio_no_enlarge
557
570
 
558
571
  def self?.values: -> ::Array[Imagekitio::Models::Transformation::crop]
559
572
  end
560
573
 
561
- type crop_mode = :pad_resize | :extract | :pad_extract
574
+ type crop_mode =
575
+ :pad_resize
576
+ | :extract
577
+ | :pad_extract
578
+ | :pad_resize_no_enlarge
579
+ | :pad_extract_no_shrink
562
580
 
563
581
  module CropMode
564
582
  extend Imagekitio::Internal::Type::Enum
@@ -566,6 +584,8 @@ module Imagekitio
566
584
  PAD_RESIZE: :pad_resize
567
585
  EXTRACT: :extract
568
586
  PAD_EXTRACT: :pad_extract
587
+ PAD_RESIZE_NO_ENLARGE: :pad_resize_no_enlarge
588
+ PAD_EXTRACT_NO_SHRINK: :pad_extract_no_shrink
569
589
 
570
590
  def self?.values: -> ::Array[Imagekitio::Models::Transformation::crop_mode]
571
591
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagekitio
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.1
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ImageKit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-26 00:00:00.000000000 Z
11
+ date: 2026-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi