Method: Aspose::Cloud::Imaging::Document#update_psd_properties
- Defined in:
 - lib/imaging/document.rb
 
#update_psd_properties(channels_count, compression_method, output_path, folder_name = '', storage_type = 'Aspose', storage_name = '') ⇒ Object
Update PSD Image Properties
@param number channels_count Count of channels.
@param string compression_method Compression method.
@param string output_path Path to updated file.
  
      254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272  | 
    
      # File 'lib/imaging/document.rb', line 254 def update_psd_properties(channels_count, compression_method, output_path, folder_name = '', storage_type = 'Aspose', storage_name = '') str_uri = "#{@base_uri}/psd" str_uri = Aspose::Cloud::Common::Utils.build_uri(str_uri, {:channelsCount=> channels_count, :compressionMethod=> compression_method, :outPath=> output_path}) str_uri = Aspose::Cloud::Common::Utils.append_storage(str_uri, folder_name, storage_name, storage_type) signed_str_uri = Aspose::Cloud::Common::Utils.sign(str_uri) puts signed_str_uri response_stream = RestClient.get(signed_str_uri, {:content_type=>'application/json', :accept=>'application/json'}) valid_output = Aspose::Cloud::Common::Utils.validate_output(response_stream) if valid_output.empty? output_path = "#{Aspose::Cloud::Common::AsposeApp.output_location}#{Aspose::Cloud::Common::Utils.get_filename(@filename)}_updated.psd" Aspose::Cloud::Common::Utils.save_file(response_stream,output_path) end valid_output end  |