You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Image processing
Inspect
Copy page
Download PDF
Inspect
The inspect feature allows you to determine whether an image contains non-image content, such as MPEG-TS. If non-image content is found, you can take the appropriate action with the image file to prevent unauthorized hosting of the image and misuse of your storage space. This topic introduces the parameters and provides examples of the inspect feature.​
Notes​
  • The original image size must be 20 MB or smaller.​
  • Only JPG, JPEG, PNG, BMP, GIF, and pure TS (transport stream) files are supported for inspection.​
  • You will be charged based on the number of inspection operations. For more information, see Data processing.​
Supported parameters​
Request parameters​
None.​
Responses​
The table below lists all possible response fields.​
​
Field​
Description​
picSize​
The size of the image in bytes.​
picType​
The type of the image.​
suspicious​
Indicates whether non-image content has been detected. Possible values:​
  • true: Non-image content has been detected.​
  • false: The file is a normal image.​
suspiciousBeginByte​
The starting byte position of non-image content.​
tip​
A suspiciousBeginByte value is only returned when non-image content is found.​
suspiciousEndByte​
The ending byte position of non-image content.​
tip​
A suspiciousEndByte value is only returned when non-image content is found.​
suspiciousSize​
The size of non-image content in bytes.​
tip​
A suspiciousSize value is only returned when non-image content is found.​
suspiciousType​
The type of non-image content, such as MPEG-TS.​
tip​
A suspiciousType value is only returned when non-image content is found.​
​
​
Examples​
  • Inspect a normal image​
  • Responses:​
  • ​
    {​
    "picSize": 328838,​
    "picType": "png",​
    "suspicious": false​
    }​
    ​
  • Inspect an image with non-image content​
  • Responses:​
  • ​
    {​
    "picSize": 3055377,​
    "picType": "png",​
    "suspicious": true,​
    "suspiciousBeginByte": 843745,​
    "suspiciousEndByte": 3055376,​
    "suspiciousSize": 2211632,​
    "suspiciousType": "MPEG-TS"​
    }​
    ​
​
Last updated: 2026.02.03 17:51:49