DEV Community

David Carr
David Carr

Posted on • Originally published at dcblog.dev on

1

Image intervention - Image source not readable

When using intervention package for uploading images you may come across this error when uploading an image:

Image source not readable

This means the image path cannot be read by intervention. This can happen as intervention uploads to storage when the disk isn't specified.

If you want to use storage then ensure Laravel created a symbolic link:


php artisan storage:link
Enter fullscreen mode Exit fullscreen mode

If you want to use the public disk set your filesystem in .env to public


FILESYSTEM_DRIVER=public
Enter fullscreen mode Exit fullscreen mode

Then in config/filesystems.php:


'public' => [
    'driver' => 'local',
    'root' => public_path(),
    'url' => env('APP_URL').'/images',
    'visibility' => 'public',
],
Enter fullscreen mode Exit fullscreen mode

This will ensure the public disk points to the public folder and set the URL to the application URL followed by an images path.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs