cloudmersive-image-recognition-api-client 1.4.6 → 2.0.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.
- checksums.yaml +4 -4
- metadata +3 -145
- data/Gemfile +0 -7
- data/README.md +0 -184
- data/Rakefile +0 -8
- data/cloudmersive-image-recognition-api-client.gemspec +0 -45
- data/docs/AgeDetectionResult.md +0 -10
- data/docs/ArtisticApi.md +0 -66
- data/docs/ColorResult.md +0 -10
- data/docs/ConvertApi.md +0 -396
- data/docs/DetectedLicensePlate.md +0 -14
- data/docs/DetectedObject.md +0 -13
- data/docs/DominantColorResult.md +0 -9
- data/docs/DrawPolygonInstance.md +0 -11
- data/docs/DrawPolygonRequest.md +0 -10
- data/docs/DrawRectangleInstance.md +0 -14
- data/docs/DrawRectangleRequest.md +0 -10
- data/docs/DrawTextInstance.md +0 -15
- data/docs/DrawTextRequest.md +0 -10
- data/docs/EditApi.md +0 -704
- data/docs/Face.md +0 -11
- data/docs/FaceApi.md +0 -396
- data/docs/FaceCompareResponse.md +0 -11
- data/docs/FaceLocateResponse.md +0 -11
- data/docs/FaceLocateWithLandmarksResponse.md +0 -11
- data/docs/FaceMatch.md +0 -13
- data/docs/FacePoint.md +0 -9
- data/docs/FaceWithLandmarks.md +0 -20
- data/docs/FilterApi.md +0 -478
- data/docs/FindSymbolResult.md +0 -13
- data/docs/FineTextDetectionResult.md +0 -10
- data/docs/FineTextItem.md +0 -18
- data/docs/GenderDetectionResult.md +0 -10
- data/docs/ImageDescriptionResponse.md +0 -11
- data/docs/ImageMetadata.md +0 -17
- data/docs/ImageMetadataExifValue.md +0 -10
- data/docs/InfoApi.md +0 -118
- data/docs/NsfwApi.md +0 -63
- data/docs/NsfwResult.md +0 -10
- data/docs/ObjectDetectionResult.md +0 -10
- data/docs/PersonWithAge.md +0 -11
- data/docs/PersonWithGender.md +0 -10
- data/docs/PolygonPoint.md +0 -9
- data/docs/RecognitionOutcome.md +0 -9
- data/docs/RecognizeApi.md +0 -455
- data/docs/ResizeApi.md +0 -130
- data/docs/TextDetectionResult.md +0 -10
- data/docs/TextItem.md +0 -11
- data/docs/VehicleLicensePlateDetectionResult.md +0 -10
- data/git_push.sh +0 -55
- data/lib/cloudmersive-image-recognition-api-client.rb +0 -82
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +0 -85
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +0 -421
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +0 -765
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +0 -422
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +0 -533
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +0 -135
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +0 -79
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +0 -481
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +0 -159
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +0 -201
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +0 -259
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +0 -327
- data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +0 -289
- data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +0 -281
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +0 -218
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/version.rb +0 -15
- data/spec/api/artistic_api_spec.rb +0 -48
- data/spec/api/convert_api_spec.rb +0 -120
- data/spec/api/edit_api_spec.rb +0 -191
- data/spec/api/face_api_spec.rb +0 -120
- data/spec/api/filter_api_spec.rb +0 -141
- data/spec/api/info_api_spec.rb +0 -59
- data/spec/api/nsfw_api_spec.rb +0 -47
- data/spec/api/recognize_api_spec.rb +0 -133
- data/spec/api/resize_api_spec.rb +0 -63
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/age_detection_result_spec.rb +0 -54
- data/spec/models/color_result_spec.rb +0 -54
- data/spec/models/detected_license_plate_spec.rb +0 -78
- data/spec/models/detected_object_spec.rb +0 -72
- data/spec/models/dominant_color_result_spec.rb +0 -48
- data/spec/models/draw_polygon_instance_spec.rb +0 -60
- data/spec/models/draw_polygon_request_spec.rb +0 -54
- data/spec/models/draw_rectangle_instance_spec.rb +0 -78
- data/spec/models/draw_rectangle_request_spec.rb +0 -54
- data/spec/models/draw_text_instance_spec.rb +0 -84
- data/spec/models/draw_text_request_spec.rb +0 -54
- data/spec/models/face_compare_response_spec.rb +0 -60
- data/spec/models/face_locate_response_spec.rb +0 -60
- data/spec/models/face_locate_with_landmarks_response_spec.rb +0 -60
- data/spec/models/face_match_spec.rb +0 -72
- data/spec/models/face_point_spec.rb +0 -48
- data/spec/models/face_spec.rb +0 -60
- data/spec/models/face_with_landmarks_spec.rb +0 -114
- data/spec/models/find_symbol_result_spec.rb +0 -72
- data/spec/models/fine_text_detection_result_spec.rb +0 -54
- data/spec/models/fine_text_item_spec.rb +0 -102
- data/spec/models/gender_detection_result_spec.rb +0 -54
- data/spec/models/image_description_response_spec.rb +0 -60
- data/spec/models/image_metadata_exif_value_spec.rb +0 -54
- data/spec/models/image_metadata_spec.rb +0 -96
- data/spec/models/nsfw_result_spec.rb +0 -54
- data/spec/models/object_detection_result_spec.rb +0 -54
- data/spec/models/person_with_age_spec.rb +0 -60
- data/spec/models/person_with_gender_spec.rb +0 -54
- data/spec/models/polygon_point_spec.rb +0 -48
- data/spec/models/recognition_outcome_spec.rb +0 -48
- data/spec/models/text_detection_result_spec.rb +0 -54
- data/spec/models/text_item_spec.rb +0 -60
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +0 -54
- data/spec/spec_helper.rb +0 -111
data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb
DELETED
@@ -1,211 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module CloudmersiveImageRecognitionApiClient
|
16
|
-
# Result of detecting vehicle license plates in an image
|
17
|
-
class VehicleLicensePlateDetectionResult
|
18
|
-
# Was the image processed successfully?
|
19
|
-
attr_accessor :successful
|
20
|
-
|
21
|
-
# License plates found in the image
|
22
|
-
attr_accessor :detected_license_plates
|
23
|
-
|
24
|
-
# The number of license plates detected in the image
|
25
|
-
attr_accessor :detected_license_plate_count
|
26
|
-
|
27
|
-
|
28
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
-
def self.attribute_map
|
30
|
-
{
|
31
|
-
:'successful' => :'Successful',
|
32
|
-
:'detected_license_plates' => :'DetectedLicensePlates',
|
33
|
-
:'detected_license_plate_count' => :'DetectedLicensePlateCount'
|
34
|
-
}
|
35
|
-
end
|
36
|
-
|
37
|
-
# Attribute type mapping.
|
38
|
-
def self.swagger_types
|
39
|
-
{
|
40
|
-
:'successful' => :'BOOLEAN',
|
41
|
-
:'detected_license_plates' => :'Array<DetectedLicensePlate>',
|
42
|
-
:'detected_license_plate_count' => :'Integer'
|
43
|
-
}
|
44
|
-
end
|
45
|
-
|
46
|
-
# Initializes the object
|
47
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
-
def initialize(attributes = {})
|
49
|
-
return unless attributes.is_a?(Hash)
|
50
|
-
|
51
|
-
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
53
|
-
|
54
|
-
if attributes.has_key?(:'Successful')
|
55
|
-
self.successful = attributes[:'Successful']
|
56
|
-
end
|
57
|
-
|
58
|
-
if attributes.has_key?(:'DetectedLicensePlates')
|
59
|
-
if (value = attributes[:'DetectedLicensePlates']).is_a?(Array)
|
60
|
-
self.detected_license_plates = value
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
if attributes.has_key?(:'DetectedLicensePlateCount')
|
65
|
-
self.detected_license_plate_count = attributes[:'DetectedLicensePlateCount']
|
66
|
-
end
|
67
|
-
|
68
|
-
end
|
69
|
-
|
70
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
71
|
-
# @return Array for valid properties with the reasons
|
72
|
-
def list_invalid_properties
|
73
|
-
invalid_properties = Array.new
|
74
|
-
return invalid_properties
|
75
|
-
end
|
76
|
-
|
77
|
-
# Check to see if the all the properties in the model are valid
|
78
|
-
# @return true if the model is valid
|
79
|
-
def valid?
|
80
|
-
return true
|
81
|
-
end
|
82
|
-
|
83
|
-
# Checks equality by comparing each attribute.
|
84
|
-
# @param [Object] Object to be compared
|
85
|
-
def ==(o)
|
86
|
-
return true if self.equal?(o)
|
87
|
-
self.class == o.class &&
|
88
|
-
successful == o.successful &&
|
89
|
-
detected_license_plates == o.detected_license_plates &&
|
90
|
-
detected_license_plate_count == o.detected_license_plate_count
|
91
|
-
end
|
92
|
-
|
93
|
-
# @see the `==` method
|
94
|
-
# @param [Object] Object to be compared
|
95
|
-
def eql?(o)
|
96
|
-
self == o
|
97
|
-
end
|
98
|
-
|
99
|
-
# Calculates hash code according to all attributes.
|
100
|
-
# @return [Fixnum] Hash code
|
101
|
-
def hash
|
102
|
-
[successful, detected_license_plates, detected_license_plate_count].hash
|
103
|
-
end
|
104
|
-
|
105
|
-
# Builds the object from hash
|
106
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
-
# @return [Object] Returns the model itself
|
108
|
-
def build_from_hash(attributes)
|
109
|
-
return nil unless attributes.is_a?(Hash)
|
110
|
-
self.class.swagger_types.each_pair do |key, type|
|
111
|
-
if type =~ /\AArray<(.*)>/i
|
112
|
-
# check to ensure the input is an array given that the the attribute
|
113
|
-
# is documented as an array but the input is not
|
114
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
115
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
116
|
-
end
|
117
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
119
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
120
|
-
end
|
121
|
-
|
122
|
-
self
|
123
|
-
end
|
124
|
-
|
125
|
-
# Deserializes the data based on type
|
126
|
-
# @param string type Data type
|
127
|
-
# @param string value Value to be deserialized
|
128
|
-
# @return [Object] Deserialized data
|
129
|
-
def _deserialize(type, value)
|
130
|
-
case type.to_sym
|
131
|
-
when :DateTime
|
132
|
-
DateTime.parse(value)
|
133
|
-
when :Date
|
134
|
-
Date.parse(value)
|
135
|
-
when :String
|
136
|
-
value.to_s
|
137
|
-
when :Integer
|
138
|
-
value.to_i
|
139
|
-
when :Float
|
140
|
-
value.to_f
|
141
|
-
when :BOOLEAN
|
142
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
143
|
-
true
|
144
|
-
else
|
145
|
-
false
|
146
|
-
end
|
147
|
-
when :Object
|
148
|
-
# generic object (usually a Hash), return directly
|
149
|
-
value
|
150
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
151
|
-
inner_type = Regexp.last_match[:inner_type]
|
152
|
-
value.map { |v| _deserialize(inner_type, v) }
|
153
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
154
|
-
k_type = Regexp.last_match[:k_type]
|
155
|
-
v_type = Regexp.last_match[:v_type]
|
156
|
-
{}.tap do |hash|
|
157
|
-
value.each do |k, v|
|
158
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
159
|
-
end
|
160
|
-
end
|
161
|
-
else # model
|
162
|
-
temp_model = CloudmersiveImageRecognitionApiClient.const_get(type).new
|
163
|
-
temp_model.build_from_hash(value)
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
# Returns the string representation of the object
|
168
|
-
# @return [String] String presentation of the object
|
169
|
-
def to_s
|
170
|
-
to_hash.to_s
|
171
|
-
end
|
172
|
-
|
173
|
-
# to_body is an alias to to_hash (backward compatibility)
|
174
|
-
# @return [Hash] Returns the object in the form of hash
|
175
|
-
def to_body
|
176
|
-
to_hash
|
177
|
-
end
|
178
|
-
|
179
|
-
# Returns the object in the form of hash
|
180
|
-
# @return [Hash] Returns the object in the form of hash
|
181
|
-
def to_hash
|
182
|
-
hash = {}
|
183
|
-
self.class.attribute_map.each_pair do |attr, param|
|
184
|
-
value = self.send(attr)
|
185
|
-
next if value.nil?
|
186
|
-
hash[param] = _to_hash(value)
|
187
|
-
end
|
188
|
-
hash
|
189
|
-
end
|
190
|
-
|
191
|
-
# Outputs non-array value in the form of hash
|
192
|
-
# For object, use to_hash. Otherwise, just return the value
|
193
|
-
# @param [Object] value Any valid value
|
194
|
-
# @return [Hash] Returns the value in the form of hash
|
195
|
-
def _to_hash(value)
|
196
|
-
if value.is_a?(Array)
|
197
|
-
value.compact.map{ |v| _to_hash(v) }
|
198
|
-
elsif value.is_a?(Hash)
|
199
|
-
{}.tap do |hash|
|
200
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
201
|
-
end
|
202
|
-
elsif value.respond_to? :to_hash
|
203
|
-
value.to_hash
|
204
|
-
else
|
205
|
-
value
|
206
|
-
end
|
207
|
-
end
|
208
|
-
|
209
|
-
end
|
210
|
-
|
211
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
module CloudmersiveImageRecognitionApiClient
|
14
|
-
VERSION = "1.4.6"
|
15
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::ArtisticApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'ArtisticApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::ArtisticApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of ArtisticApi' do
|
30
|
-
it 'should create an instance of ArtisticApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::ArtisticApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for artistic_painting
|
36
|
-
# Transform an image into an artistic painting automatically
|
37
|
-
# Uses machine learning to automatically transform an image into an artistic painting. Due to depth of AI processing, depending on image size this operation can take up to 20 seconds.
|
38
|
-
# @param style The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
|
39
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
40
|
-
# @param [Hash] opts the optional parameters
|
41
|
-
# @return [String]
|
42
|
-
describe 'artistic_painting test' do
|
43
|
-
it "should work" do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
@@ -1,120 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::ConvertApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'ConvertApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of ConvertApi' do
|
30
|
-
it 'should create an instance of ConvertApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::ConvertApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for convert_to_bmp
|
36
|
-
# Convert input image to Bitmap BMP format
|
37
|
-
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
38
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [String]
|
41
|
-
describe 'convert_to_bmp test' do
|
42
|
-
it "should work" do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for convert_to_gif
|
48
|
-
# Convert input image to GIF format
|
49
|
-
# Converts the input image into GIF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
50
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [String]
|
53
|
-
describe 'convert_to_gif test' do
|
54
|
-
it "should work" do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for convert_to_jpg
|
60
|
-
# Convert input image to JPG, JPEG format
|
61
|
-
# Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
62
|
-
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
63
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
64
|
-
# @param [Hash] opts the optional parameters
|
65
|
-
# @return [String]
|
66
|
-
describe 'convert_to_jpg test' do
|
67
|
-
it "should work" do
|
68
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
# unit tests for convert_to_photoshop
|
73
|
-
# Convert input image to Photoshop PSD format
|
74
|
-
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
75
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
76
|
-
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [String]
|
78
|
-
describe 'convert_to_photoshop test' do
|
79
|
-
it "should work" do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# unit tests for convert_to_png
|
85
|
-
# Convert input image to PNG format
|
86
|
-
# Converts the input image into PNG format. Transparency is preserved when present. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
87
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @return [String]
|
90
|
-
describe 'convert_to_png test' do
|
91
|
-
it "should work" do
|
92
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# unit tests for convert_to_tiff
|
97
|
-
# Convert input image to TIFF format
|
98
|
-
# Converts the input image into TIFF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
99
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
100
|
-
# @param [Hash] opts the optional parameters
|
101
|
-
# @return [String]
|
102
|
-
describe 'convert_to_tiff test' do
|
103
|
-
it "should work" do
|
104
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
# unit tests for convert_to_web_p
|
109
|
-
# Convert input image to WebP format
|
110
|
-
# Converts the input image into WebP format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
111
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
112
|
-
# @param [Hash] opts the optional parameters
|
113
|
-
# @return [String]
|
114
|
-
describe 'convert_to_web_p test' do
|
115
|
-
it "should work" do
|
116
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
end
|
data/spec/api/edit_api_spec.rb
DELETED
@@ -1,191 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::EditApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'EditApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of EditApi' do
|
30
|
-
it 'should create an instance of EditApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::EditApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for edit_auto_orient
|
36
|
-
# Normalizes image rotation and removes EXIF rotation data
|
37
|
-
# Automatically orients the input image based on EXIF information and then removes the EXIF information. EXIF is an additional set of information stored in some images taken with cell phone cameras based on the orientation of the camera. By normalizing rotation and removing EXIF data these images become much easier to process.
|
38
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [String]
|
41
|
-
describe 'edit_auto_orient test' do
|
42
|
-
it "should work" do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for edit_composite_basic
|
48
|
-
# Composite two images together
|
49
|
-
# Composites two input images together; a layered image onto a base image. The first image you input is the base image. The second image (the layered image) will be composited on top of this base image. Supports PNG transparency. To control padding you can include transparent pixels at the border(s) of your layered images as appropriate.
|
50
|
-
# @param location Location to composite the layered images; possible values are: \"center\", \"top-left\", \"top-center\", \"top-right\", \"center-left\", \"center-right\", \"bottom-left\", \"bottom-center\", \"bottom-right\"
|
51
|
-
# @param base_image Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
52
|
-
# @param layered_image Image to layer on top of the base image.
|
53
|
-
# @param [Hash] opts the optional parameters
|
54
|
-
# @return [String]
|
55
|
-
describe 'edit_composite_basic test' do
|
56
|
-
it "should work" do
|
57
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
# unit tests for edit_contrast_adaptive
|
62
|
-
# Adaptively adjust the contrast of the image to be more appealing and easy to see
|
63
|
-
# Uses Gamma to adjust the contrast adaptively the way the human eye sees the world. Results significantly improve the viewability and visual appeal of the image.
|
64
|
-
# @param gamma Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
|
65
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
66
|
-
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [String]
|
68
|
-
describe 'edit_contrast_adaptive test' do
|
69
|
-
it "should work" do
|
70
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# unit tests for edit_crop_rectangle
|
75
|
-
# Crop an image to a rectangular area
|
76
|
-
# Crop an image to a target rectangular area
|
77
|
-
# @param left The left edge of the rectangular crop area in pixels (X).
|
78
|
-
# @param top The top edge of the rectangular crop area in pixels (Y).
|
79
|
-
# @param width The width of the rectangular crop area in pixels.
|
80
|
-
# @param height The height of the rectangular crop area in pixels.
|
81
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
82
|
-
# @param [Hash] opts the optional parameters
|
83
|
-
# @return [String]
|
84
|
-
describe 'edit_crop_rectangle test' do
|
85
|
-
it "should work" do
|
86
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
# unit tests for edit_draw_polygon
|
91
|
-
# Draw a polygon onto an image
|
92
|
-
# Draw one or more polygons, with customized visuals, onto an image
|
93
|
-
# @param request Polygon drawing request parameters
|
94
|
-
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [String]
|
96
|
-
describe 'edit_draw_polygon test' do
|
97
|
-
it "should work" do
|
98
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# unit tests for edit_draw_rectangle
|
103
|
-
# Draw a rectangle onto an image
|
104
|
-
# Draw one or more rectangles, with customized visuals, onto an image
|
105
|
-
# @param request Draw rectangle parameters
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [String]
|
108
|
-
describe 'edit_draw_rectangle test' do
|
109
|
-
it "should work" do
|
110
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
# unit tests for edit_draw_text
|
115
|
-
# Draw text onto an image
|
116
|
-
# Draw one or more pieces of text, with customized visuals, onto an image
|
117
|
-
# @param request Draw text parameters
|
118
|
-
# @param [Hash] opts the optional parameters
|
119
|
-
# @return [String]
|
120
|
-
describe 'edit_draw_text test' do
|
121
|
-
it "should work" do
|
122
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
# unit tests for edit_drop_shadow
|
127
|
-
# Add a customizeable drop shadow to an image
|
128
|
-
# Add a customizeable drop shadow to the image
|
129
|
-
# @param x Horizontal (X) offset of the drop shadow
|
130
|
-
# @param y Vertical (Y) offset of the drop shadow
|
131
|
-
# @param sigma Sigma (blur distance) of the drop shadow
|
132
|
-
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
133
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
134
|
-
# @param [Hash] opts the optional parameters
|
135
|
-
# @return [String]
|
136
|
-
describe 'edit_drop_shadow test' do
|
137
|
-
it "should work" do
|
138
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
# unit tests for edit_invert
|
143
|
-
# Invert, negate the colors in the image
|
144
|
-
# Inverts (negates) all of the colors in the image. If the image contains transparency, the transparency will first be removed prior to inverting the image.
|
145
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
146
|
-
# @param [Hash] opts the optional parameters
|
147
|
-
# @return [String]
|
148
|
-
describe 'edit_invert test' do
|
149
|
-
it "should work" do
|
150
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
# unit tests for edit_remove_exif_data
|
155
|
-
# Remove EXIF data from the image
|
156
|
-
# Removes any EXIF data and profiles .
|
157
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [String]
|
160
|
-
describe 'edit_remove_exif_data test' do
|
161
|
-
it "should work" do
|
162
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
# unit tests for edit_remove_transparency
|
167
|
-
# Remove transparency from the image
|
168
|
-
# Removes any active transparency in the image. Effectively renders the image at the same resolution, in the same file format, over a white background, thus removing transparency.
|
169
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
170
|
-
# @param [Hash] opts the optional parameters
|
171
|
-
# @return [String]
|
172
|
-
describe 'edit_remove_transparency test' do
|
173
|
-
it "should work" do
|
174
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
# unit tests for edit_rotate
|
179
|
-
# Rotate an image any number of degrees
|
180
|
-
# Rotates an image by an arbitrary number of degrees
|
181
|
-
# @param degrees Degrees to rotate the image; values range from 0.0 to 360.0.
|
182
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
183
|
-
# @param [Hash] opts the optional parameters
|
184
|
-
# @return [String]
|
185
|
-
describe 'edit_rotate test' do
|
186
|
-
it "should work" do
|
187
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
end
|