[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-23 UTC。"],[],[],null,["# Supported Images\n\nFile formats\n------------\n\nThe Vision API supports the following image types:\n\n- JPEG\n- PNG8\n- PNG24\n- GIF\n- Animated GIF (first frame only)\n- BMP\n- WEBP\n- RAW\n- ICO\n- PDF\n- TIFF\n\nNote that some of these image formats are \"lossy\" (for example, JPEG). Reducing\nfile sizes for such lossy formats may result in a degradation of image quality,\nand hence, Vision API accuracy.\n\n### Image sizing\n\nTo enable accurate image detection within the Vision API, images\nshould generally be a minimum of 640 x 480 pixels (about 300k pixels). Full\ndetails for different types of Vision API Feature requests are shown below:\n\n| **Note:** Vision API requires images to be a sufficient size so that important features within the request can be easily distinguished. Sizes smaller or larger than these recommended sizes may work. However, smaller sizes may result in lower accuracy, while larger sizes may increase processing time and bandwidth usage without providing comparable benefits in accuracy. Image size should not exceed 75M pixels (length x width) for OCR analysis. If the image size exceeds 75M pixels (length x width) , the Vision API resizes the image; otherwise, the Vision API uses the original image.\n\nThese recommended sizes differ based on the feature being detected. For example,\n`FACE_DETECTION` requests generally requires larger image sizes because the\nfeatures being detected (faces) are smaller than the image itself.\n`LABEL_DETECTION` requests, on the other hand, generally evaluate an entire\nimage.\n\nIn practice, a standard size of 640 x 480 pixels works well in most cases;\nsizes larger than this may not gain much in accuracy, while greatly diminishing\nthroughput. When at all possible, pre-process your images to reduce their size\nto these minimum standards.\n\nFile size\n---------\n\nImage files sent to the Vision API should not exceed 20MB. Files exceeding 20MB generate an error. The Vision API does not resize files of this size.\nReducing your file size can significantly improve throughput; however, be\ncareful not to reduce image quality in the process. Note that the Vision API\nimposes a 10MB JSON request size limit; larger files should be hosted on Cloud\nStorage or on the web, rather than being passed as base64-encoded content in the\nJSON itself."]]