Skip to main content
Browse Docs
On This Page
View Markdown~966 tokensDownload Markdown~966 tokens

Extract from GIF

Use this extractor for .gif files. It can extract EXIF data, GPS data & map, QR codes and barcodes, color palette, ICC profiles, text, frames into a ZIP result.

Try Extract Text from Image in the browser ->

Extract.FAST uses this same API -- what you see in the browser is what you get in code.

Quick reference

FieldValue
Source file type.gif
Source groupImages
Submit endpointPOST https://api.tools.fast/extract
Estimate endpointPOST https://api.tools.fast/extract/estimate/gif
ResultZIP download
Default capabilitiesimage.exif, image.gps, image.codes, image.colors, image.profiles, image.text, image.frames
Max file sizefree: 50 MB; pro: 2048 MB
Document limitsNot applicable
Duration limitsNot applicable

Capabilities

CapabilityDefaultOptionsPricingDescription
image.exifYesNoneIncludedEXIF-style metadata exported as JSON and CSV.
image.gpsYesNoneIncludedGPS coordinates plus a downloadable map when stored in the source file.
image.codesYesNoneIncludedQR codes and barcodes found in the file.
image.colorsYesNoneIncludedDominant colors and palette information.
image.profilesYesNoneIncludedICC profiles and color management data.
image.textYesNoneIncludedText recognized from screenshots, photos, and scanned images with Fast AI OCR.
image.framesYesframeMode, frameIntervalSeconds, maxExtractedFramesIncludedExtract frames and timing data when present.

Capability options

Frames

OptionTypeDefaultAllowed valuesLimits
frameModeenumevenly-spacedevenly-spaced, first, every-n-secondsNone
frameIntervalSecondsnumber1Any value within limits0.1 to 300
maxExtractedFramesinteger500Any value within limits1 to 2000

Options payload with all capabilities

Use this shape when you want to explicitly configure every supported output for this source type.

{
  "extraction": {
    "selectedCapabilities": [
      "image.exif",
      "image.gps",
      "image.codes",
      "image.colors",
      "image.profiles",
      "image.text",
      "image.frames"
    ],
    "includeManifest": true,
    "capabilityOptions": {
      "image.frames": {
        "frameMode": "every-n-seconds",
        "frameIntervalSeconds": 5,
        "maxExtractedFrames": 100
      }
    }
  }
}

Estimate example

curl -sS -X POST "https://api.tools.fast/extract/estimate/gif" \
  -H "X-Fast-Api-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "fileSizeMb": 8,
  "frameCount": 30,
  "options": {
    "extraction": {
      "selectedCapabilities": [
        "image.exif",
        "image.gps",
        "image.codes",
        "image.colors",
        "image.profiles",
        "image.text",
        "image.frames"
      ],
      "includeManifest": true,
      "capabilityOptions": {
        "image.frames": {
          "frameMode": "every-n-seconds",
          "frameIntervalSeconds": 5,
          "maxExtractedFrames": 100
        }
      }
    }
  }
}'

Extract example with all options configured

curl -sS -X POST "https://api.tools.fast/extract" \
  -H "X-Fast-Api-Key: $API_KEY" \
  -F "[email protected]" \
  -F 'options={
  "extraction": {
    "selectedCapabilities": [
      "image.exif",
      "image.gps",
      "image.codes",
      "image.colors",
      "image.profiles",
      "image.text",
      "image.frames"
    ],
    "includeManifest": true,
    "capabilityOptions": {
      "image.frames": {
        "frameMode": "every-n-seconds",
        "frameIntervalSeconds": 5,
        "maxExtractedFrames": 100
      }
    }
  }
}'

Machine-readable discovery

GET /options/gif
GET /extractors/gif
Copied