Baseflow / Baseflow/flutter_cached_network_image

Package not Support .jfif Format

Open
#1,032 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

# 🐛 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:

```dart
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),
)
```

3. Run the application.
4. 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:**
``

**flutter version:**

```bash
flutter --version
```

**Platform:**

* [x]🍎 iOS
* [x] 🤖 Android

---

### Environment

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

---

### Screenshots / Logs

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.