Wiki

Case Status Kiln
Log In

Wiki

 
Retrieve estimated file size
  • RSS Feed

Last modified on 17/03/2017 1:38 PM by User.

Tags:

Retrieve estimated file size

    Context  
        User wants to estimate the potential size of a file after applying a set of parameters
 
   URL
          https://api.intelligencebank.com/webapp/1.0/resources
 
   Method
        GET
 
   Parameters
        p10: {client api key}
        p20: {user uuid}
        fileuuid: {file uuid}
        fileinfo: { true } 
        OPTIONAL: ext: {type of extension to convert file to}
        OPTIONAL: cropwidth: {cropped output width}
        OPTIONAL: cropheight: {cropped output height}
        OPTIONAL: compression: {compression quality (1-100) }
        OPTIONAL: compressiontype: {type of compression (see Note 1) }
 
   Header:
        _aid: <app id>
 
   Response
        200 : OK
            <estimatedFileSize>{ estimated size of the file after parameters have been applied in bytes </estimatedFileSize>

            
        500 : Internal server error

 
   Actions
        Display estimated file size
        
   Notes:
  1. Types of compression:
  • 1 = No compression
  • 2 = BZIP2 (Lossless Compression)
  • 8 = JPEG (Lossy Compression)'
  • 10 = JPEG (Lossless Compression)
  • 11 = LZW (Lemple-Zif-Welch) (Lossless Compression)
  • 12 = Run-Length Encoding (Lossless Compression)
  • 13 = ZIP (Lossless Compression)