aspose_imaging_cloud 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +61 -0
  4. data/aspose_imaging_cloud.gemspec +26 -0
  5. data/lib/aspose_imaging_cloud.rb +43 -0
  6. data/lib/aspose_imaging_cloud/api/imaging_api.rb +1776 -0
  7. data/lib/aspose_imaging_cloud/api_client.rb +335 -0
  8. data/lib/aspose_imaging_cloud/api_error.rb +24 -0
  9. data/lib/aspose_imaging_cloud/configuration.rb +166 -0
  10. data/lib/aspose_imaging_cloud/models/base_object.rb +86 -0
  11. data/lib/aspose_imaging_cloud/models/base_response.rb +53 -0
  12. data/lib/aspose_imaging_cloud/models/bmp_properties.rb +37 -0
  13. data/lib/aspose_imaging_cloud/models/exif_data.rb +855 -0
  14. data/lib/aspose_imaging_cloud/models/gif_properties.rb +53 -0
  15. data/lib/aspose_imaging_cloud/models/imaging_response.rb +149 -0
  16. data/lib/aspose_imaging_cloud/models/jfif_data.rb +61 -0
  17. data/lib/aspose_imaging_cloud/models/jpeg_exif_data.rb +991 -0
  18. data/lib/aspose_imaging_cloud/models/jpeg_properties.rb +53 -0
  19. data/lib/aspose_imaging_cloud/models/psd_properties.rb +61 -0
  20. data/lib/aspose_imaging_cloud/models/tiff_frame.rb +61 -0
  21. data/lib/aspose_imaging_cloud/models/tiff_options.rb +419 -0
  22. data/lib/aspose_imaging_cloud/models/tiff_properties.rb +55 -0
  23. data/lib/aspose_imaging_cloud/version.rb +3 -0
  24. data/test/data/TestDemo.tif +0 -0
  25. data/test/data/aspose.jpg +0 -0
  26. data/test/data/aspose_imaging_for_cloud.png +0 -0
  27. data/test/data/demo.tif +0 -0
  28. data/test/data/sample-multi.tif +0 -0
  29. data/test/data/sample.bmp +0 -0
  30. data/test/data/sample.gif +0 -0
  31. data/test/data/sample.psd +0 -0
  32. data/test/data/sample.tif +0 -0
  33. data/test/data/test.bmp +0 -0
  34. data/test/imaging_tests.rb +291 -0
  35. metadata +160 -0
@@ -0,0 +1,53 @@
1
+ module AsposeImagingCloud
2
+ #
3
+ class JpegProperties < BaseObject
4
+ attr_accessor :comment, :jpeg_exif_data, :jpeg_jfif_data
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'comment' => :'Comment',
11
+
12
+ #
13
+ :'jpeg_exif_data' => :'JpegExifData',
14
+
15
+ #
16
+ :'jpeg_jfif_data' => :'JpegJfifData'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'comment' => :'String',
25
+ :'jpeg_exif_data' => :'JpegExifData',
26
+ :'jpeg_jfif_data' => :'JfifData'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Comment']
39
+ self.comment = attributes[:'Comment']
40
+ end
41
+
42
+ if attributes[:'JpegExifData']
43
+ self.jpeg_exif_data = attributes[:'JpegExifData']
44
+ end
45
+
46
+ if attributes[:'JpegJfifData']
47
+ self.jpeg_jfif_data = attributes[:'JpegJfifData']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeImagingCloud
2
+ #
3
+ class PsdProperties < BaseObject
4
+ attr_accessor :bits_per_channel, :channels_count, :color_mode, :compression
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'bits_per_channel' => :'BitsPerChannel',
11
+
12
+ #
13
+ :'channels_count' => :'ChannelsCount',
14
+
15
+ #
16
+ :'color_mode' => :'ColorMode',
17
+
18
+ #
19
+ :'compression' => :'Compression'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'bits_per_channel' => :'Integer',
28
+ :'channels_count' => :'Integer',
29
+ :'color_mode' => :'String',
30
+ :'compression' => :'String'
31
+
32
+ }
33
+ end
34
+
35
+ def initialize(attributes = {})
36
+ return if !attributes.is_a?(Hash) || attributes.empty?
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
+
41
+
42
+ if attributes[:'BitsPerChannel']
43
+ self.bits_per_channel = attributes[:'BitsPerChannel']
44
+ end
45
+
46
+ if attributes[:'ChannelsCount']
47
+ self.channels_count = attributes[:'ChannelsCount']
48
+ end
49
+
50
+ if attributes[:'ColorMode']
51
+ self.color_mode = attributes[:'ColorMode']
52
+ end
53
+
54
+ if attributes[:'Compression']
55
+ self.compression = attributes[:'Compression']
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeImagingCloud
2
+ #
3
+ class TiffFrame < BaseObject
4
+ attr_accessor :frame_options, :height, :width, :exif_data
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'frame_options' => :'FrameOptions',
11
+
12
+ #
13
+ :'height' => :'Height',
14
+
15
+ #
16
+ :'width' => :'Width',
17
+
18
+ #
19
+ :'exif_data' => :'ExifData'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'frame_options' => :'TiffOptions',
28
+ :'height' => :'Integer',
29
+ :'width' => :'Integer',
30
+ :'exif_data' => :'ExifData'
31
+
32
+ }
33
+ end
34
+
35
+ def initialize(attributes = {})
36
+ return if !attributes.is_a?(Hash) || attributes.empty?
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
+
41
+
42
+ if attributes[:'FrameOptions']
43
+ self.frame_options = attributes[:'FrameOptions']
44
+ end
45
+
46
+ if attributes[:'Height']
47
+ self.height = attributes[:'Height']
48
+ end
49
+
50
+ if attributes[:'Width']
51
+ self.width = attributes[:'Width']
52
+ end
53
+
54
+ if attributes[:'ExifData']
55
+ self.exif_data = attributes[:'ExifData']
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,419 @@
1
+ module AsposeImagingCloud
2
+ #
3
+ class TiffOptions < BaseObject
4
+ attr_accessor :is_valid, :artist, :byte_order, :bits_per_sample, :compression, :copyright, :color_map, :date_time, :document_name, :alpha_storage, :fill_order, :half_tone_hints, :image_description, :ink_names, :scanner_manufacturer, :max_sample_value, :min_sample_value, :scanner_model, :page_name, :orientation, :page_number, :photometric, :planar_configuration, :resolution_unit, :rows_per_strip, :sample_format, :samples_per_pixel, :smax_sample_value, :smin_sample_value, :software_type, :strip_byte_counts, :strip_offsets, :sub_file_type, :target_printer, :threshholding, :total_pages, :xposition, :xresolution, :yposition, :yresolution, :fax_t4_options, :predictor, :image_length, :image_width, :valid_tag_count, :bits_per_pixel
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'is_valid' => :'IsValid',
11
+
12
+ #
13
+ :'artist' => :'Artist',
14
+
15
+ #
16
+ :'byte_order' => :'ByteOrder',
17
+
18
+ #
19
+ :'bits_per_sample' => :'BitsPerSample',
20
+
21
+ #
22
+ :'compression' => :'Compression',
23
+
24
+ #
25
+ :'copyright' => :'Copyright',
26
+
27
+ #
28
+ :'color_map' => :'ColorMap',
29
+
30
+ #
31
+ :'date_time' => :'DateTime',
32
+
33
+ #
34
+ :'document_name' => :'DocumentName',
35
+
36
+ #
37
+ :'alpha_storage' => :'AlphaStorage',
38
+
39
+ #
40
+ :'fill_order' => :'FillOrder',
41
+
42
+ #
43
+ :'half_tone_hints' => :'HalfToneHints',
44
+
45
+ #
46
+ :'image_description' => :'ImageDescription',
47
+
48
+ #
49
+ :'ink_names' => :'InkNames',
50
+
51
+ #
52
+ :'scanner_manufacturer' => :'ScannerManufacturer',
53
+
54
+ #
55
+ :'max_sample_value' => :'MaxSampleValue',
56
+
57
+ #
58
+ :'min_sample_value' => :'MinSampleValue',
59
+
60
+ #
61
+ :'scanner_model' => :'ScannerModel',
62
+
63
+ #
64
+ :'page_name' => :'PageName',
65
+
66
+ #
67
+ :'orientation' => :'Orientation',
68
+
69
+ #
70
+ :'page_number' => :'PageNumber',
71
+
72
+ #
73
+ :'photometric' => :'Photometric',
74
+
75
+ #
76
+ :'planar_configuration' => :'PlanarConfiguration',
77
+
78
+ #
79
+ :'resolution_unit' => :'ResolutionUnit',
80
+
81
+ #
82
+ :'rows_per_strip' => :'RowsPerStrip',
83
+
84
+ #
85
+ :'sample_format' => :'SampleFormat',
86
+
87
+ #
88
+ :'samples_per_pixel' => :'SamplesPerPixel',
89
+
90
+ #
91
+ :'smax_sample_value' => :'SmaxSampleValue',
92
+
93
+ #
94
+ :'smin_sample_value' => :'SminSampleValue',
95
+
96
+ #
97
+ :'software_type' => :'SoftwareType',
98
+
99
+ #
100
+ :'strip_byte_counts' => :'StripByteCounts',
101
+
102
+ #
103
+ :'strip_offsets' => :'StripOffsets',
104
+
105
+ #
106
+ :'sub_file_type' => :'SubFileType',
107
+
108
+ #
109
+ :'target_printer' => :'TargetPrinter',
110
+
111
+ #
112
+ :'threshholding' => :'Threshholding',
113
+
114
+ #
115
+ :'total_pages' => :'TotalPages',
116
+
117
+ #
118
+ :'xposition' => :'Xposition',
119
+
120
+ #
121
+ :'xresolution' => :'Xresolution',
122
+
123
+ #
124
+ :'yposition' => :'Yposition',
125
+
126
+ #
127
+ :'yresolution' => :'Yresolution',
128
+
129
+ #
130
+ :'fax_t4_options' => :'FaxT4Options',
131
+
132
+ #
133
+ :'predictor' => :'Predictor',
134
+
135
+ #
136
+ :'image_length' => :'ImageLength',
137
+
138
+ #
139
+ :'image_width' => :'ImageWidth',
140
+
141
+ #
142
+ :'valid_tag_count' => :'ValidTagCount',
143
+
144
+ #
145
+ :'bits_per_pixel' => :'BitsPerPixel'
146
+
147
+ }
148
+ end
149
+
150
+ # attribute type
151
+ def self.swagger_types
152
+ {
153
+ :'is_valid' => :'BOOLEAN',
154
+ :'artist' => :'String',
155
+ :'byte_order' => :'String',
156
+ :'bits_per_sample' => :'Array<Integer>',
157
+ :'compression' => :'String',
158
+ :'copyright' => :'String',
159
+ :'color_map' => :'Array<Integer>',
160
+ :'date_time' => :'String',
161
+ :'document_name' => :'String',
162
+ :'alpha_storage' => :'String',
163
+ :'fill_order' => :'String',
164
+ :'half_tone_hints' => :'Array<Integer>',
165
+ :'image_description' => :'String',
166
+ :'ink_names' => :'String',
167
+ :'scanner_manufacturer' => :'String',
168
+ :'max_sample_value' => :'Array<Integer>',
169
+ :'min_sample_value' => :'Array<Integer>',
170
+ :'scanner_model' => :'String',
171
+ :'page_name' => :'String',
172
+ :'orientation' => :'String',
173
+ :'page_number' => :'Array<Integer>',
174
+ :'photometric' => :'String',
175
+ :'planar_configuration' => :'String',
176
+ :'resolution_unit' => :'String',
177
+ :'rows_per_strip' => :'Integer',
178
+ :'sample_format' => :'Array<String>',
179
+ :'samples_per_pixel' => :'Integer',
180
+ :'smax_sample_value' => :'Array<Integer>',
181
+ :'smin_sample_value' => :'Array<Integer>',
182
+ :'software_type' => :'String',
183
+ :'strip_byte_counts' => :'Array<Integer>',
184
+ :'strip_offsets' => :'Array<Integer>',
185
+ :'sub_file_type' => :'String',
186
+ :'target_printer' => :'String',
187
+ :'threshholding' => :'String',
188
+ :'total_pages' => :'Integer',
189
+ :'xposition' => :'Float',
190
+ :'xresolution' => :'Float',
191
+ :'yposition' => :'Float',
192
+ :'yresolution' => :'Float',
193
+ :'fax_t4_options' => :'String',
194
+ :'predictor' => :'String',
195
+ :'image_length' => :'Integer',
196
+ :'image_width' => :'Integer',
197
+ :'valid_tag_count' => :'Integer',
198
+ :'bits_per_pixel' => :'Integer'
199
+
200
+ }
201
+ end
202
+
203
+ def initialize(attributes = {})
204
+ return if !attributes.is_a?(Hash) || attributes.empty?
205
+
206
+ # convert string to symbol for hash key
207
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
208
+
209
+
210
+ if attributes[:'IsValid']
211
+ self.is_valid = attributes[:'IsValid']
212
+ end
213
+
214
+ if attributes[:'Artist']
215
+ self.artist = attributes[:'Artist']
216
+ end
217
+
218
+ if attributes[:'ByteOrder']
219
+ self.byte_order = attributes[:'ByteOrder']
220
+ end
221
+
222
+ if attributes[:'BitsPerSample']
223
+ if (value = attributes[:'BitsPerSample']).is_a?(Array)
224
+ self.bits_per_sample = value
225
+ end
226
+ end
227
+
228
+ if attributes[:'Compression']
229
+ self.compression = attributes[:'Compression']
230
+ end
231
+
232
+ if attributes[:'Copyright']
233
+ self.copyright = attributes[:'Copyright']
234
+ end
235
+
236
+ if attributes[:'ColorMap']
237
+ if (value = attributes[:'ColorMap']).is_a?(Array)
238
+ self.color_map = value
239
+ end
240
+ end
241
+
242
+ if attributes[:'DateTime']
243
+ self.date_time = attributes[:'DateTime']
244
+ end
245
+
246
+ if attributes[:'DocumentName']
247
+ self.document_name = attributes[:'DocumentName']
248
+ end
249
+
250
+ if attributes[:'AlphaStorage']
251
+ self.alpha_storage = attributes[:'AlphaStorage']
252
+ end
253
+
254
+ if attributes[:'FillOrder']
255
+ self.fill_order = attributes[:'FillOrder']
256
+ end
257
+
258
+ if attributes[:'HalfToneHints']
259
+ if (value = attributes[:'HalfToneHints']).is_a?(Array)
260
+ self.half_tone_hints = value
261
+ end
262
+ end
263
+
264
+ if attributes[:'ImageDescription']
265
+ self.image_description = attributes[:'ImageDescription']
266
+ end
267
+
268
+ if attributes[:'InkNames']
269
+ self.ink_names = attributes[:'InkNames']
270
+ end
271
+
272
+ if attributes[:'ScannerManufacturer']
273
+ self.scanner_manufacturer = attributes[:'ScannerManufacturer']
274
+ end
275
+
276
+ if attributes[:'MaxSampleValue']
277
+ if (value = attributes[:'MaxSampleValue']).is_a?(Array)
278
+ self.max_sample_value = value
279
+ end
280
+ end
281
+
282
+ if attributes[:'MinSampleValue']
283
+ if (value = attributes[:'MinSampleValue']).is_a?(Array)
284
+ self.min_sample_value = value
285
+ end
286
+ end
287
+
288
+ if attributes[:'ScannerModel']
289
+ self.scanner_model = attributes[:'ScannerModel']
290
+ end
291
+
292
+ if attributes[:'PageName']
293
+ self.page_name = attributes[:'PageName']
294
+ end
295
+
296
+ if attributes[:'Orientation']
297
+ self.orientation = attributes[:'Orientation']
298
+ end
299
+
300
+ if attributes[:'PageNumber']
301
+ if (value = attributes[:'PageNumber']).is_a?(Array)
302
+ self.page_number = value
303
+ end
304
+ end
305
+
306
+ if attributes[:'Photometric']
307
+ self.photometric = attributes[:'Photometric']
308
+ end
309
+
310
+ if attributes[:'PlanarConfiguration']
311
+ self.planar_configuration = attributes[:'PlanarConfiguration']
312
+ end
313
+
314
+ if attributes[:'ResolutionUnit']
315
+ self.resolution_unit = attributes[:'ResolutionUnit']
316
+ end
317
+
318
+ if attributes[:'RowsPerStrip']
319
+ self.rows_per_strip = attributes[:'RowsPerStrip']
320
+ end
321
+
322
+ if attributes[:'SampleFormat']
323
+ if (value = attributes[:'SampleFormat']).is_a?(Array)
324
+ self.sample_format = value
325
+ end
326
+ end
327
+
328
+ if attributes[:'SamplesPerPixel']
329
+ self.samples_per_pixel = attributes[:'SamplesPerPixel']
330
+ end
331
+
332
+ if attributes[:'SmaxSampleValue']
333
+ if (value = attributes[:'SmaxSampleValue']).is_a?(Array)
334
+ self.smax_sample_value = value
335
+ end
336
+ end
337
+
338
+ if attributes[:'SminSampleValue']
339
+ if (value = attributes[:'SminSampleValue']).is_a?(Array)
340
+ self.smin_sample_value = value
341
+ end
342
+ end
343
+
344
+ if attributes[:'SoftwareType']
345
+ self.software_type = attributes[:'SoftwareType']
346
+ end
347
+
348
+ if attributes[:'StripByteCounts']
349
+ if (value = attributes[:'StripByteCounts']).is_a?(Array)
350
+ self.strip_byte_counts = value
351
+ end
352
+ end
353
+
354
+ if attributes[:'StripOffsets']
355
+ if (value = attributes[:'StripOffsets']).is_a?(Array)
356
+ self.strip_offsets = value
357
+ end
358
+ end
359
+
360
+ if attributes[:'SubFileType']
361
+ self.sub_file_type = attributes[:'SubFileType']
362
+ end
363
+
364
+ if attributes[:'TargetPrinter']
365
+ self.target_printer = attributes[:'TargetPrinter']
366
+ end
367
+
368
+ if attributes[:'Threshholding']
369
+ self.threshholding = attributes[:'Threshholding']
370
+ end
371
+
372
+ if attributes[:'TotalPages']
373
+ self.total_pages = attributes[:'TotalPages']
374
+ end
375
+
376
+ if attributes[:'Xposition']
377
+ self.xposition = attributes[:'Xposition']
378
+ end
379
+
380
+ if attributes[:'Xresolution']
381
+ self.xresolution = attributes[:'Xresolution']
382
+ end
383
+
384
+ if attributes[:'Yposition']
385
+ self.yposition = attributes[:'Yposition']
386
+ end
387
+
388
+ if attributes[:'Yresolution']
389
+ self.yresolution = attributes[:'Yresolution']
390
+ end
391
+
392
+ if attributes[:'FaxT4Options']
393
+ self.fax_t4_options = attributes[:'FaxT4Options']
394
+ end
395
+
396
+ if attributes[:'Predictor']
397
+ self.predictor = attributes[:'Predictor']
398
+ end
399
+
400
+ if attributes[:'ImageLength']
401
+ self.image_length = attributes[:'ImageLength']
402
+ end
403
+
404
+ if attributes[:'ImageWidth']
405
+ self.image_width = attributes[:'ImageWidth']
406
+ end
407
+
408
+ if attributes[:'ValidTagCount']
409
+ self.valid_tag_count = attributes[:'ValidTagCount']
410
+ end
411
+
412
+ if attributes[:'BitsPerPixel']
413
+ self.bits_per_pixel = attributes[:'BitsPerPixel']
414
+ end
415
+
416
+ end
417
+
418
+ end
419
+ end