ImageError

  • This document lists possible errors that can occur with images.

  • Errors cover issues with the image itself, storage, requests, dimensions, animation, server problems, and various Flash-specific issues.

  • Other errors include problems with file size, processing, input, and format.

  • Some errors indicate violations of image constraints without specifying which specific constraint was violated.

Enum describing possible image errors.

Proto definition

Enums

ANIMATED_NOT_ALLOWED

Animated image are not permitted.

ANIMATED_VISUAL_EFFECT

Unacceptable visual effects.

ANIMATION_TOO_LONG

Animation is too long.

ASPECT_RATIO_NOT_ALLOWED

The aspect ratio of the image is not allowed.

BAD_REQUEST

There was a problem with the request.

CMYK_JPEG_NOT_ALLOWED

Image cannot be in CMYK color format.

ERROR_STORING_IMAGE

There was an error storing the image.

FAILED_TO_FIX_CLICK_TAG_IN_FLASH

Uploaded flash file can be parsed, but the click tag can not be fixed properly.

FILE_TOO_LARGE

Image file is too large.

FLASH_ACCESSES_NETWORK_RESOURCES

Flash movie accesses network resources

FLASH_BAD_GETURL_TARGET

GetUrl method should only use '_blank'.

FLASH_ERROR

There was a problem with the flash image.

FLASH_ERROR_AFTER_FIXING_CLICK_TAG

A flash error has occurred after fixing the click tag.

FLASH_EXTERNAL_FS_CALL

Flash movie attempts to call flash system commands

FLASH_EXTERNAL_JS_CALL

Flash movie attempts to call external javascript code

FLASH_HAS_MOUSE_TRACKING

Flash cannot use mouse tracking.

FLASH_HAS_NETWORK_METHODS

Flash cannot have network methods.

FLASH_HAS_NETWORK_OBJECTS

Flash cannot have network objects.

FLASH_HAS_RANDOM_NUM

Flash cannot have a random number.

FLASH_HAS_URL

Flash cannot have a Url.

FLASH_NOT_ALLOWED

Flash images are not permitted.

FLASH_SELF_TARGETS

Ad click target cannot be '_self'.

FLASH_VERSION_NOT_SUPPORTED

Flash version is not supported.

FLASH_WITHOUT_CLICKTAG

Flash images must support clickTag.

FLASH_WITHOUT_HARD_CODED_CLICK_URL

Flash movies need to have hard coded click URL or clickTAG

FORMAT_NOT_ALLOWED

Image format is not allowed.

IMAGE_CONSTRAINTS_VIOLATED

Image constraints are violated, but details like ASPECT_RATIO_NOT_ALLOWED can't be provided. This happens when asset spec contains more than one constraint and different criteria of different constraints are violated.

IMAGE_DATA_TOO_LARGE

Image data is too large.

IMAGE_PROCESSING_ERROR

Error while processing the image.

IMAGE_TOO_SMALL

Image is too small.

INVALID_FLASH_FILE

Uploaded flash file is corrupted.

INVALID_IMAGE

The image is not valid.

INVALID_INPUT

Input was invalid.

LAYOUT_PROBLEM

Incorrect image layout.

PROBLEM_READING_FILE

There was a problem reading the image file.

PROBLEM_READING_IMAGE_FILE

There was a problem reading the image file.

SERVER_ERROR

There was an error on the server.

STORAGE_ERROR

The image could not be stored.

UNEXPECTED_SIZE

The image is not of legal dimensions.

UNKNOWN

The received error code is not known in this version.

UNSPECIFIED

Enum unspecified.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-12 UTC.