aspose_imaging_cloud 1.0.0 → 19.12
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 +5 -5
- data/README.md +224 -61
- data/lib/aspose-imaging-cloud.rb +161 -0
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +684 -0
- data/lib/aspose-imaging-cloud/api_client.rb +357 -0
- data/lib/aspose-imaging-cloud/api_error.rb +42 -0
- data/lib/{aspose_imaging_cloud → aspose-imaging-cloud}/configuration.rb +236 -166
- data/lib/aspose-imaging-cloud/models/big_rectangular_filter_properties.rb +206 -0
- data/lib/aspose-imaging-cloud/models/bilateral_smoothing_filter_properties.rb +281 -0
- data/lib/aspose-imaging-cloud/models/bmp_properties.rb +202 -0
- data/lib/aspose-imaging-cloud/models/convolution_filter_properties.rb +236 -0
- data/lib/aspose-imaging-cloud/models/deconvolution_filter_properties.rb +266 -0
- data/lib/aspose-imaging-cloud/models/dicom_properties.rb +584 -0
- data/lib/aspose-imaging-cloud/models/disc_usage.rb +222 -0
- data/lib/aspose-imaging-cloud/models/djvu_properties.rb +232 -0
- data/lib/aspose-imaging-cloud/models/dng_properties.rb +329 -0
- data/lib/aspose-imaging-cloud/models/error.rb +232 -0
- data/lib/aspose-imaging-cloud/models/error_details.rb +217 -0
- data/lib/aspose-imaging-cloud/models/exif_data.rb +1560 -0
- data/lib/aspose-imaging-cloud/models/file_version.rb +277 -0
- data/lib/aspose-imaging-cloud/models/file_versions.rb +204 -0
- data/lib/aspose-imaging-cloud/models/files_list.rb +204 -0
- data/lib/aspose-imaging-cloud/models/files_upload_result.rb +216 -0
- data/lib/aspose-imaging-cloud/models/filter_properties_base.rb +206 -0
- data/lib/aspose-imaging-cloud/models/gauss_wiener_filter_properties.rb +296 -0
- data/lib/aspose-imaging-cloud/models/gaussian_blur_filter_properties.rb +266 -0
- data/lib/aspose-imaging-cloud/models/gif_properties.rb +247 -0
- data/lib/aspose-imaging-cloud/models/image_duplicates.rb +204 -0
- data/lib/aspose-imaging-cloud/models/image_duplicates_set.rb +204 -0
- data/lib/aspose-imaging-cloud/models/image_features.rb +257 -0
- data/lib/aspose-imaging-cloud/models/imaging_response.rb +412 -0
- data/lib/aspose-imaging-cloud/models/jfif_data.rb +247 -0
- data/lib/aspose-imaging-cloud/models/jpeg2000_properties.rb +214 -0
- data/lib/aspose-imaging-cloud/models/jpeg_exif_data.rb +1738 -0
- data/lib/aspose-imaging-cloud/models/jpeg_properties.rb +222 -0
- data/lib/aspose-imaging-cloud/models/median_filter_properties.rb +221 -0
- data/lib/aspose-imaging-cloud/models/motion_wiener_filter_properties.rb +311 -0
- data/lib/aspose-imaging-cloud/models/object_exist.rb +222 -0
- data/lib/aspose-imaging-cloud/models/odg_metadata.rb +372 -0
- data/lib/aspose-imaging-cloud/models/odg_page.rb +222 -0
- data/lib/aspose-imaging-cloud/models/odg_properties.rb +229 -0
- data/lib/aspose-imaging-cloud/models/png_properties.rb +192 -0
- data/lib/aspose-imaging-cloud/models/psd_properties.rb +242 -0
- data/lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/compare_images_request.rb +94 -0
- data/lib/aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/copy_file_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb +121 -0
- data/lib/aspose-imaging-cloud/models/requests/create_folder_request.rb +77 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_features_request.rb +89 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_request.rb +112 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_search_request.rb +79 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_tag_request.rb +96 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_bmp_request.rb +108 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_emf_request.rb +127 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_gif_request.rb +102 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg2000_request.rb +95 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg_request.rb +90 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_psd_request.rb +90 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_svg_request.rb +114 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_tiff_request.rb +104 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_web_p_request.rb +116 -0
- data/lib/aspose-imaging-cloud/models/requests/create_modified_wmf_request.rb +127 -0
- data/lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb +105 -0
- data/lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb +97 -0
- data/lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb +89 -0
- data/lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb +145 -0
- data/lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/crop_image_request.rb +120 -0
- data/lib/aspose-imaging-cloud/models/requests/delete_file_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/delete_folder_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/delete_image_features_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/delete_image_search_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/delete_search_image_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/download_file_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/extract_image_features_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/extract_image_frame_properties_request.rb +82 -0
- data/lib/aspose-imaging-cloud/models/requests/extract_image_properties_request.rb +75 -0
- data/lib/aspose-imaging-cloud/models/requests/filter_effect_image_request.rb +103 -0
- data/lib/aspose-imaging-cloud/models/requests/find_image_duplicates_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/find_images_by_tags_request.rb +104 -0
- data/lib/aspose-imaging-cloud/models/requests/find_similar_images_request.rb +102 -0
- data/lib/aspose-imaging-cloud/models/requests/get_disc_usage_request.rb +70 -0
- data/lib/aspose-imaging-cloud/models/requests/get_file_versions_request.rb +77 -0
- data/lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb +77 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_features_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_properties_request.rb +87 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_request.rb +111 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_properties_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_search_status_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/get_search_image_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/http_request.rb +50 -0
- data/lib/aspose-imaging-cloud/models/requests/imaging_request.rb +101 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_bmp_request.rb +107 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_emf_request.rb +126 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_gif_request.rb +101 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg2000_request.rb +94 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg_request.rb +89 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_psd_request.rb +89 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_svg_request.rb +113 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_tiff_request.rb +103 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_web_p_request.rb +115 -0
- data/lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb +126 -0
- data/lib/aspose-imaging-cloud/models/requests/move_file_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/move_folder_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/object_exists_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/resize_image_request.rb +104 -0
- data/lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb +96 -0
- data/lib/aspose-imaging-cloud/models/requests/save_image_as_request.rb +88 -0
- data/lib/aspose-imaging-cloud/models/requests/storage_exists_request.rb +74 -0
- data/lib/aspose-imaging-cloud/models/requests/update_image_features_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/update_image_request.rb +144 -0
- data/lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +86 -0
- data/lib/aspose-imaging-cloud/models/search_context_status.rb +212 -0
- data/lib/aspose-imaging-cloud/models/search_result.rb +217 -0
- data/lib/aspose-imaging-cloud/models/search_results_set.rb +204 -0
- data/lib/aspose-imaging-cloud/models/sharpen_filter_properties.rb +266 -0
- data/lib/aspose-imaging-cloud/models/small_rectangular_filter_properties.rb +206 -0
- data/lib/aspose-imaging-cloud/models/storage_exist.rb +207 -0
- data/lib/aspose-imaging-cloud/models/storage_file.rb +252 -0
- data/lib/aspose-imaging-cloud/models/svg_properties.rb +202 -0
- data/lib/aspose-imaging-cloud/models/tiff_frame.rb +242 -0
- data/lib/aspose-imaging-cloud/models/tiff_options.rb +734 -0
- data/lib/aspose-imaging-cloud/models/tiff_properties.rb +224 -0
- data/lib/aspose-imaging-cloud/models/web_p_properties.rb +252 -0
- data/lib/aspose-imaging-cloud/version.rb +15 -0
- metadata +149 -129
- data/LICENSE +0 -22
- data/aspose_imaging_cloud.gemspec +0 -26
- data/lib/aspose_imaging_cloud.rb +0 -43
- data/lib/aspose_imaging_cloud/api/imaging_api.rb +0 -1776
- data/lib/aspose_imaging_cloud/api_client.rb +0 -335
- data/lib/aspose_imaging_cloud/api_error.rb +0 -24
- data/lib/aspose_imaging_cloud/models/base_object.rb +0 -86
- data/lib/aspose_imaging_cloud/models/base_response.rb +0 -53
- data/lib/aspose_imaging_cloud/models/bmp_properties.rb +0 -37
- data/lib/aspose_imaging_cloud/models/exif_data.rb +0 -855
- data/lib/aspose_imaging_cloud/models/gif_properties.rb +0 -53
- data/lib/aspose_imaging_cloud/models/imaging_response.rb +0 -149
- data/lib/aspose_imaging_cloud/models/jfif_data.rb +0 -61
- data/lib/aspose_imaging_cloud/models/jpeg_exif_data.rb +0 -991
- data/lib/aspose_imaging_cloud/models/jpeg_properties.rb +0 -53
- data/lib/aspose_imaging_cloud/models/psd_properties.rb +0 -61
- data/lib/aspose_imaging_cloud/models/tiff_frame.rb +0 -61
- data/lib/aspose_imaging_cloud/models/tiff_options.rb +0 -419
- data/lib/aspose_imaging_cloud/models/tiff_properties.rb +0 -55
- data/lib/aspose_imaging_cloud/version.rb +0 -3
- data/test/data/TestDemo.tif +0 -0
- data/test/data/aspose.jpg +0 -0
- data/test/data/aspose_imaging_for_cloud.png +0 -0
- data/test/data/demo.tif +0 -0
- data/test/data/sample-multi.tif +0 -0
- data/test/data/sample.bmp +0 -0
- data/test/data/sample.gif +0 -0
- data/test/data/sample.psd +0 -0
- data/test/data/sample.tif +0 -0
- data/test/data/test.bmp +0 -0
- data/test/imaging_tests.rb +0 -291
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# <copyright company="Aspose" file="modify_gif_request.rb">
|
|
3
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
|
4
|
+
# </copyright>
|
|
5
|
+
# <summary>
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
|
14
|
+
# all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
|
23
|
+
# </summary>
|
|
24
|
+
# ----------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
require_relative './imaging_request'
|
|
28
|
+
require_relative './http_request'
|
|
29
|
+
|
|
30
|
+
module AsposeImagingCloud
|
|
31
|
+
# Request model for modify_gif operation.
|
|
32
|
+
class ModifyGifRequest < ImagingRequest
|
|
33
|
+
|
|
34
|
+
# Update parameters of existing GIF image.
|
|
35
|
+
# @param [String] name Filename of image.
|
|
36
|
+
# @param [Integer] background_color_index Index of the background color.
|
|
37
|
+
# @param [Integer] color_resolution Color resolution.
|
|
38
|
+
# @param [BOOLEAN] has_trailer Specifies if image has trailer.
|
|
39
|
+
# @param [BOOLEAN] interlaced Specifies if image is interlaced.
|
|
40
|
+
# @param [BOOLEAN] is_palette_sorted Specifies if palette is sorted.
|
|
41
|
+
# @param [Integer] pixel_aspect_ratio Pixel aspect ratio.
|
|
42
|
+
# @param [BOOLEAN] from_scratch Specifies where additional parameters we do not support should be taken from. If this is true – they will be taken from default values for standard image, if it is false – they will be saved from current image. Default is false.
|
|
43
|
+
# @param [String] folder Folder with image to process.
|
|
44
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
|
45
|
+
def initialize(name, background_color_index = nil, color_resolution = nil, has_trailer = nil, interlaced = nil, is_palette_sorted = nil, pixel_aspect_ratio = nil, from_scratch = nil, folder = nil, storage = nil)
|
|
46
|
+
@name = name
|
|
47
|
+
@background_color_index = background_color_index
|
|
48
|
+
@color_resolution = color_resolution
|
|
49
|
+
@has_trailer = has_trailer
|
|
50
|
+
@interlaced = interlaced
|
|
51
|
+
@is_palette_sorted = is_palette_sorted
|
|
52
|
+
@pixel_aspect_ratio = pixel_aspect_ratio
|
|
53
|
+
@from_scratch = from_scratch
|
|
54
|
+
@folder = folder
|
|
55
|
+
@storage = storage
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def to_http_info(config)
|
|
59
|
+
# verify the required parameter 'name' is set
|
|
60
|
+
if config.client_side_validation && @name.nil?
|
|
61
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.modify_gif"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# resource path
|
|
65
|
+
local_var_path = '/imaging/{name}/gif'.sub('{' + 'name' + '}', @name.to_s)
|
|
66
|
+
|
|
67
|
+
# query parameters
|
|
68
|
+
query_params = {}
|
|
69
|
+
query_params[:backgroundColorIndex] = @background_color_index unless @background_color_index.nil?
|
|
70
|
+
query_params[:colorResolution] = @color_resolution unless @color_resolution.nil?
|
|
71
|
+
query_params[:hasTrailer] = @has_trailer unless @has_trailer.nil?
|
|
72
|
+
query_params[:interlaced] = @interlaced unless @interlaced.nil?
|
|
73
|
+
query_params[:isPaletteSorted] = @is_palette_sorted unless @is_palette_sorted.nil?
|
|
74
|
+
query_params[:pixelAspectRatio] = @pixel_aspect_ratio unless @pixel_aspect_ratio.nil?
|
|
75
|
+
query_params[:fromScratch] = @from_scratch unless @from_scratch.nil?
|
|
76
|
+
query_params[:folder] = @folder unless @folder.nil?
|
|
77
|
+
query_params[:storage] = @storage unless @storage.nil?
|
|
78
|
+
|
|
79
|
+
# form parameters
|
|
80
|
+
form_params = {}
|
|
81
|
+
|
|
82
|
+
# http body (model)
|
|
83
|
+
post_body = nil
|
|
84
|
+
auth_names = ['JWT']
|
|
85
|
+
|
|
86
|
+
# header parameters
|
|
87
|
+
header_params = {}
|
|
88
|
+
# HTTP header 'Accept' (if needed)
|
|
89
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
|
90
|
+
# HTTP header 'Content-Type'
|
|
91
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
|
92
|
+
|
|
93
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
|
94
|
+
header_params,
|
|
95
|
+
query_params,
|
|
96
|
+
form_params,
|
|
97
|
+
post_body,
|
|
98
|
+
auth_names)
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# <copyright company="Aspose" file="modify_jpeg2000_request.rb">
|
|
3
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
|
4
|
+
# </copyright>
|
|
5
|
+
# <summary>
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
|
14
|
+
# all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
|
23
|
+
# </summary>
|
|
24
|
+
# ----------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
require_relative './imaging_request'
|
|
28
|
+
require_relative './http_request'
|
|
29
|
+
|
|
30
|
+
module AsposeImagingCloud
|
|
31
|
+
# Request model for modify_jpeg2000 operation.
|
|
32
|
+
class ModifyJpeg2000Request < ImagingRequest
|
|
33
|
+
|
|
34
|
+
# Update parameters of existing JPEG2000 image.
|
|
35
|
+
# @param [String] name Filename of image.
|
|
36
|
+
# @param [String] comment The comment (can be either single or comma-separated).
|
|
37
|
+
# @param [String] codec The codec (j2k or jp2).
|
|
38
|
+
# @param [BOOLEAN] from_scratch Specifies where additional parameters we do not support should be taken from. If this is true – they will be taken from default values for standard image, if it is false – they will be saved from current image. Default is false.
|
|
39
|
+
# @param [String] folder Folder with image to process.
|
|
40
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
|
41
|
+
def initialize(name, comment, codec = nil, from_scratch = nil, folder = nil, storage = nil)
|
|
42
|
+
@name = name
|
|
43
|
+
@comment = comment
|
|
44
|
+
@codec = codec
|
|
45
|
+
@from_scratch = from_scratch
|
|
46
|
+
@folder = folder
|
|
47
|
+
@storage = storage
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def to_http_info(config)
|
|
51
|
+
# verify the required parameter 'name' is set
|
|
52
|
+
if config.client_side_validation && @name.nil?
|
|
53
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.modify_jpeg2000"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# verify the required parameter 'comment' is set
|
|
57
|
+
if config.client_side_validation && @comment.nil?
|
|
58
|
+
raise ArgumentError, "Missing the required parameter 'comment' when calling ImagingApi.modify_jpeg2000"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# resource path
|
|
62
|
+
local_var_path = '/imaging/{name}/jpg2000'.sub('{' + 'name' + '}', @name.to_s)
|
|
63
|
+
|
|
64
|
+
# query parameters
|
|
65
|
+
query_params = {}
|
|
66
|
+
query_params[:comment] = @comment
|
|
67
|
+
query_params[:codec] = @codec unless @codec.nil?
|
|
68
|
+
query_params[:fromScratch] = @from_scratch unless @from_scratch.nil?
|
|
69
|
+
query_params[:folder] = @folder unless @folder.nil?
|
|
70
|
+
query_params[:storage] = @storage unless @storage.nil?
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = {}
|
|
74
|
+
|
|
75
|
+
# http body (model)
|
|
76
|
+
post_body = nil
|
|
77
|
+
auth_names = ['JWT']
|
|
78
|
+
|
|
79
|
+
# header parameters
|
|
80
|
+
header_params = {}
|
|
81
|
+
# HTTP header 'Accept' (if needed)
|
|
82
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
|
83
|
+
# HTTP header 'Content-Type'
|
|
84
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
|
85
|
+
|
|
86
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
|
87
|
+
header_params,
|
|
88
|
+
query_params,
|
|
89
|
+
form_params,
|
|
90
|
+
post_body,
|
|
91
|
+
auth_names)
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# <copyright company="Aspose" file="modify_jpeg_request.rb">
|
|
3
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
|
4
|
+
# </copyright>
|
|
5
|
+
# <summary>
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
|
14
|
+
# all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
|
23
|
+
# </summary>
|
|
24
|
+
# ----------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
require_relative './imaging_request'
|
|
28
|
+
require_relative './http_request'
|
|
29
|
+
|
|
30
|
+
module AsposeImagingCloud
|
|
31
|
+
# Request model for modify_jpeg operation.
|
|
32
|
+
class ModifyJpegRequest < ImagingRequest
|
|
33
|
+
|
|
34
|
+
# Update parameters of existing JPEG image.
|
|
35
|
+
# @param [String] name Filename of image.
|
|
36
|
+
# @param [Integer] quality Quality of an image from 0 to 100. Default is 75.
|
|
37
|
+
# @param [String] compression_type Compression type: baseline (default), progressive, lossless or jpegls.
|
|
38
|
+
# @param [BOOLEAN] from_scratch Specifies where additional parameters we do not support should be taken from. If this is true – they will be taken from default values for standard image, if it is false – they will be saved from current image. Default is false.
|
|
39
|
+
# @param [String] folder Folder with image to process.
|
|
40
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
|
41
|
+
def initialize(name, quality = nil, compression_type = nil, from_scratch = nil, folder = nil, storage = nil)
|
|
42
|
+
@name = name
|
|
43
|
+
@quality = quality
|
|
44
|
+
@compression_type = compression_type
|
|
45
|
+
@from_scratch = from_scratch
|
|
46
|
+
@folder = folder
|
|
47
|
+
@storage = storage
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def to_http_info(config)
|
|
51
|
+
# verify the required parameter 'name' is set
|
|
52
|
+
if config.client_side_validation && @name.nil?
|
|
53
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.modify_jpeg"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# resource path
|
|
57
|
+
local_var_path = '/imaging/{name}/jpg'.sub('{' + 'name' + '}', @name.to_s)
|
|
58
|
+
|
|
59
|
+
# query parameters
|
|
60
|
+
query_params = {}
|
|
61
|
+
query_params[:quality] = @quality unless @quality.nil?
|
|
62
|
+
query_params[:compressionType] = @compression_type unless @compression_type.nil?
|
|
63
|
+
query_params[:fromScratch] = @from_scratch unless @from_scratch.nil?
|
|
64
|
+
query_params[:folder] = @folder unless @folder.nil?
|
|
65
|
+
query_params[:storage] = @storage unless @storage.nil?
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = nil
|
|
72
|
+
auth_names = ['JWT']
|
|
73
|
+
|
|
74
|
+
# header parameters
|
|
75
|
+
header_params = {}
|
|
76
|
+
# HTTP header 'Accept' (if needed)
|
|
77
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
|
78
|
+
# HTTP header 'Content-Type'
|
|
79
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
|
80
|
+
|
|
81
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
|
82
|
+
header_params,
|
|
83
|
+
query_params,
|
|
84
|
+
form_params,
|
|
85
|
+
post_body,
|
|
86
|
+
auth_names)
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# <copyright company="Aspose" file="modify_psd_request.rb">
|
|
3
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
|
4
|
+
# </copyright>
|
|
5
|
+
# <summary>
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
|
14
|
+
# all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
|
23
|
+
# </summary>
|
|
24
|
+
# ----------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
require_relative './imaging_request'
|
|
28
|
+
require_relative './http_request'
|
|
29
|
+
|
|
30
|
+
module AsposeImagingCloud
|
|
31
|
+
# Request model for modify_psd operation.
|
|
32
|
+
class ModifyPsdRequest < ImagingRequest
|
|
33
|
+
|
|
34
|
+
# Update parameters of existing PSD image.
|
|
35
|
+
# @param [String] name Filename of image.
|
|
36
|
+
# @param [Integer] channels_count Count of color channels.
|
|
37
|
+
# @param [String] compression_method Compression method (for now, raw and RLE are supported).
|
|
38
|
+
# @param [BOOLEAN] from_scratch Specifies where additional parameters we do not support should be taken from. If this is true – they will be taken from default values for standard image, if it is false – they will be saved from current image. Default is false.
|
|
39
|
+
# @param [String] folder Folder with image to process.
|
|
40
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
|
41
|
+
def initialize(name, channels_count = nil, compression_method = nil, from_scratch = nil, folder = nil, storage = nil)
|
|
42
|
+
@name = name
|
|
43
|
+
@channels_count = channels_count
|
|
44
|
+
@compression_method = compression_method
|
|
45
|
+
@from_scratch = from_scratch
|
|
46
|
+
@folder = folder
|
|
47
|
+
@storage = storage
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def to_http_info(config)
|
|
51
|
+
# verify the required parameter 'name' is set
|
|
52
|
+
if config.client_side_validation && @name.nil?
|
|
53
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.modify_psd"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# resource path
|
|
57
|
+
local_var_path = '/imaging/{name}/psd'.sub('{' + 'name' + '}', @name.to_s)
|
|
58
|
+
|
|
59
|
+
# query parameters
|
|
60
|
+
query_params = {}
|
|
61
|
+
query_params[:channelsCount] = @channels_count unless @channels_count.nil?
|
|
62
|
+
query_params[:compressionMethod] = @compression_method unless @compression_method.nil?
|
|
63
|
+
query_params[:fromScratch] = @from_scratch unless @from_scratch.nil?
|
|
64
|
+
query_params[:folder] = @folder unless @folder.nil?
|
|
65
|
+
query_params[:storage] = @storage unless @storage.nil?
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = nil
|
|
72
|
+
auth_names = ['JWT']
|
|
73
|
+
|
|
74
|
+
# header parameters
|
|
75
|
+
header_params = {}
|
|
76
|
+
# HTTP header 'Accept' (if needed)
|
|
77
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
|
78
|
+
# HTTP header 'Content-Type'
|
|
79
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
|
80
|
+
|
|
81
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
|
82
|
+
header_params,
|
|
83
|
+
query_params,
|
|
84
|
+
form_params,
|
|
85
|
+
post_body,
|
|
86
|
+
auth_names)
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# <copyright company="Aspose" file="modify_svg_request.rb">
|
|
3
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
|
4
|
+
# </copyright>
|
|
5
|
+
# <summary>
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
|
14
|
+
# all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
|
23
|
+
# </summary>
|
|
24
|
+
# ----------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
require_relative './imaging_request'
|
|
28
|
+
require_relative './http_request'
|
|
29
|
+
|
|
30
|
+
module AsposeImagingCloud
|
|
31
|
+
# Request model for modify_svg operation.
|
|
32
|
+
class ModifySvgRequest < ImagingRequest
|
|
33
|
+
|
|
34
|
+
# Update parameters of existing SVG image.
|
|
35
|
+
# @param [String] name Filename of image.
|
|
36
|
+
# @param [String] color_type Color type for SVG image. Only RGB is supported for now.
|
|
37
|
+
# @param [BOOLEAN] text_as_shapes Whether text must be converted as shapes. true if all text is turned into SVG shapes in the convertion; otherwise, false
|
|
38
|
+
# @param [Float] scale_x Scale X.
|
|
39
|
+
# @param [Float] scale_y Scale Y.
|
|
40
|
+
# @param [Integer] page_width Width of the page.
|
|
41
|
+
# @param [Integer] page_height Height of the page.
|
|
42
|
+
# @param [Integer] border_x Border width. Only 0 is supported for now.
|
|
43
|
+
# @param [Integer] border_y Border height. Only 0 is supported for now.
|
|
44
|
+
# @param [String] bk_color Background color (Default is white).
|
|
45
|
+
# @param [BOOLEAN] from_scratch Specifies where additional parameters we do not support should be taken from. If this is true – they will be taken from default values for standard image, if it is false – they will be saved from current image. Default is false.
|
|
46
|
+
# @param [String] folder Folder with image to process.
|
|
47
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
|
48
|
+
# @param [String] format Export format (PNG is the default one). Please, refer to the export table from https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
|
49
|
+
def initialize(name, color_type = nil, text_as_shapes = nil, scale_x = nil, scale_y = nil, page_width = nil, page_height = nil, border_x = nil, border_y = nil, bk_color = nil, from_scratch = nil, folder = nil, storage = nil, format = nil)
|
|
50
|
+
@name = name
|
|
51
|
+
@color_type = color_type
|
|
52
|
+
@text_as_shapes = text_as_shapes
|
|
53
|
+
@scale_x = scale_x
|
|
54
|
+
@scale_y = scale_y
|
|
55
|
+
@page_width = page_width
|
|
56
|
+
@page_height = page_height
|
|
57
|
+
@border_x = border_x
|
|
58
|
+
@border_y = border_y
|
|
59
|
+
@bk_color = bk_color
|
|
60
|
+
@from_scratch = from_scratch
|
|
61
|
+
@folder = folder
|
|
62
|
+
@storage = storage
|
|
63
|
+
@format = format
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def to_http_info(config)
|
|
67
|
+
# verify the required parameter 'name' is set
|
|
68
|
+
if config.client_side_validation && @name.nil?
|
|
69
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.modify_svg"
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# resource path
|
|
73
|
+
local_var_path = '/imaging/{name}/svg'.sub('{' + 'name' + '}', @name.to_s)
|
|
74
|
+
|
|
75
|
+
# query parameters
|
|
76
|
+
query_params = {}
|
|
77
|
+
query_params[:colorType] = @color_type unless @color_type.nil?
|
|
78
|
+
query_params[:textAsShapes] = @text_as_shapes unless @text_as_shapes.nil?
|
|
79
|
+
query_params[:scaleX] = @scale_x unless @scale_x.nil?
|
|
80
|
+
query_params[:scaleY] = @scale_y unless @scale_y.nil?
|
|
81
|
+
query_params[:pageWidth] = @page_width unless @page_width.nil?
|
|
82
|
+
query_params[:pageHeight] = @page_height unless @page_height.nil?
|
|
83
|
+
query_params[:borderX] = @border_x unless @border_x.nil?
|
|
84
|
+
query_params[:borderY] = @border_y unless @border_y.nil?
|
|
85
|
+
query_params[:bkColor] = @bk_color unless @bk_color.nil?
|
|
86
|
+
query_params[:fromScratch] = @from_scratch unless @from_scratch.nil?
|
|
87
|
+
query_params[:folder] = @folder unless @folder.nil?
|
|
88
|
+
query_params[:storage] = @storage unless @storage.nil?
|
|
89
|
+
query_params[:format] = @format unless @format.nil?
|
|
90
|
+
|
|
91
|
+
# form parameters
|
|
92
|
+
form_params = {}
|
|
93
|
+
|
|
94
|
+
# http body (model)
|
|
95
|
+
post_body = nil
|
|
96
|
+
auth_names = ['JWT']
|
|
97
|
+
|
|
98
|
+
# header parameters
|
|
99
|
+
header_params = {}
|
|
100
|
+
# HTTP header 'Accept' (if needed)
|
|
101
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
|
102
|
+
# HTTP header 'Content-Type'
|
|
103
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
|
104
|
+
|
|
105
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
|
106
|
+
header_params,
|
|
107
|
+
query_params,
|
|
108
|
+
form_params,
|
|
109
|
+
post_body,
|
|
110
|
+
auth_names)
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|