Skip to main content

How to fix an animated gif file that fail when uploaded to Photo Center?

Summary

While uploading the GIF file in Photo Center if you are getting the following error, then the .gif is corrupted even though it may be showing properly on the browser.

{
    "error": "Bad Request",
    "errorKey": "IMAGE_INVALID_ERROR",
    "errorParams": [],
    "exception": "com.washingtonpost.anglerfish.exception.BadRequestException",
    "invalid_ids": null,
    "message": "Incoming image is not valid",
    "status": 400,
    "timestamp": 1726540770792
}

Procedure

Following are the steps to fix the corrupted GIF file 

  1.  Use the image magick tool to diagnose the image.

  2.  Use the command magick correpted-image.gif fix-image.gif on the command prompt that will fix the correpted image.

  3.  Upload the fixed image in Photo Center.

More Information