Skip to content

Package not Support .jfif Format #1032

Description

@app-dev-aspire07

🐛 Bug Report: CachedNetworkImage fails to load valid .jfif image

Summary

CachedNetworkImage is unable to load a valid .jfif image from a remote URL. The same image opens correctly in Chrome and is accessible via a direct HTTP request.


Expected behavior

The image should load successfully, just like any other JPEG image.


Actual behavior

CachedNetworkImage fails to display the image and shows the errorWidget. The image URL is publicly accessible and renders correctly in web browsers.

Example image URL:

https://red-hare-111523.hostingersite.com/api/uploads/097152_2026_FOREST_RIVER_TA3_8_overlay_1762966844_20260717_150907_099064a5.jfif

Reproduction steps

  1. Install the latest cached_network_image package.
  2. Use the following widget:
CachedNetworkImage(
  imageUrl: "https://red-hare-111523.hostingersite.com/api/uploads/097152_2026_FOREST_RIVER_TA3_8_overlay_1762966844_20260717_150907_099064a5.jfif",
  fit: BoxFit.cover,
  placeholder: (context, url) => const CircularProgressIndicator(),
  errorWidget: (context, url, error) => const Icon(Icons.error),
)
  1. Run the application.
  2. Observe that the image fails to load.

Additional information

  • The same URL opens successfully in Chrome.
  • The image is publicly accessible (no authentication required).
  • The issue appears to be specific to .jfif images.
  • Other .jpg and .png images load correctly using CachedNetworkImage.

Configuration

cached_network_image version:
<your version>

flutter version:

flutter --version

Platform:

  • [x]🍎 iOS
  • 🤖 Android

Environment

  • Flutter:
  • Dart:
  • cached_network_image:
  • flutter_cache_manager:
  • Device:
  • Android Version:

Screenshots / Logs

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions