© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Lara Zeus

using ImageColumn with data:image

I have an image in db stored as data:image

data:image/png;base64,iVBORw0KGgoAAAANSUhE.....
data:image/png;base64,iVBORw0KGgoAAAANSUhE.....


when using the
ImageColumn
ImageColumn
the images not shown
the source is always empty

<img src class="" ...
<img src class="" ...


trace it back to
public function getImageUrl(?string $state = null): ?string
{
  if (filter_var($state, FILTER_VALIDATE_URL) !== false ||
      // added
      str($state)->startsWith('data:')
) {
        return $state;
}
public function getImageUrl(?string $state = null): ?string
{
  if (filter_var($state, FILTER_VALIDATE_URL) !== false ||
      // added
      str($state)->startsWith('data:')
) {
        return $state;
}
Solution
I made a PR and it merged 👍
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ImageColumn image zoom
FilamentFFilament / ❓┊help
8mo ago
Enlarged image preview in ImageColumn
FilamentFFilament / ❓┊help
2y ago
ImageColumn is not showing image
FilamentFFilament / ❓┊help
2y ago
Image Gallery On Modal like ImageColumn
FilamentFFilament / ❓┊help
2y ago