Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jedidiah's avatar

Intervention Image Issue

Does anyone here encountered an Intervention\Image\Exception\NotReadableException before ? I already spent hours looking for answers and tried different solutions like adjusting post_max_size and upload_max_filesize values but still no luck. What I find unusual is that some images work, some doesn't that it prompts me "image source not readable" message. Any help will be greatly appreciated. Thanks in advance.

0 likes
11 replies
Felix's avatar

Do you using the Imagecache too? If yes, check the Storage Path Variable in the config.

jedidiah's avatar

Hi, thanks for your response. I haven't tried playing around with the caching extension yet. Though some images are working, and some are not (most of it were taken from an old model digicam). Any ideas?

jedidiah's avatar
jedidiah
OP
Best Answer
Level 1

Found out that the problem was not on the library but on my upload_max_filesize setting. I was making use of PHP built-in web server that I have to make use of the -c flag in order to point my .ini file like this:

php -S localhost:8080 -c /etc/php5/apache2/php.ini

trayan's avatar

Hello @jedidiah I have same issue with Intervention but did not understood what exactly you did to solve this. Can you please explain. Thanks.

mwm's avatar

@trayan make sure that you modify the php.ini of your apache (change upload_max_filesize). Make sure that the file you change is the one that your apache is using, restart apache.

mwm's avatar

Ok, for me when I got the ImageSourceNotReadable, it was because I had some errors in the Image:: save() function ... so if you paste your code it'll be easier to spot out the error(s). If, however, your problem is the same as OPs (max image size) then on one of the views:

<?php echo phpinfo(); ?>

and read the 5th line (in my case it was:)

Loaded Configuration File   /etc/php5/fpm/php.ini

Edit the max upload in that file, restart apache

trayan's avatar

Yes @mustafa I changed the correct php.ini file. Code is from the example of Jeffrey's tutorial: Build "ProjectFlyer" With Me

public function move(UploadedFile $file)
{
    $file->move($this->baseDir, $this->name);
    $this->makeThumbnail();
    return $this;
}

protected function makeThumbnail()
{
    Image::make($this->path)
        ->fit(200)
        ->save($this->thumbnail_path);
}
mwm's avatar

What is thumbnail_path returning? Are photos being saved (without thumbnails)?

I 've watched that series, and faced the same errer (twice) and was able to solve it but cannot remember the exact steps :\ All I can remember is that it had to do the thumbnail_path value.

trayan's avatar

name: 1448828324-image-1.jpg path: flyer/photos/image-1.jpg thumbnail_path: flyer/photos/tn-image-1.jpg

File is uploaded succesfully but maybe something is wrong with path and thumbnail_path variables but I can not figure out what.. Thanks for the effort @mustafa

trayan's avatar

My problem was with paths I was setting..

Please or to participate in this conversation.