Questions tagged [intervention]

Intervention Image is an open source PHP image handling and manipulation library. It provides an easier and expressive way to create, edit, and compose images and currently supports the two most common image processing libraries GD Library and Imagick.

Intervention Image is an open source PHP image handling and manipulation library. It provides an easier and expressive way to create, edit, and compose images and currently supports the two most common image processing libraries GD Library and Imagick.

The class is written to make PHP image manipulating more easier and expressive. No matter if you want to create image thumbnails, watermarks or format large image files Intervention Image helps you to manage every task in an easy way with as little lines of code as possible.

The library follows the FIG standard PSR-2 to ensure a high level of interoperability between shared PHP code and is fully unit-tested.

456 questions
28
votes
6 answers

Intervention / Image Upload Error {{ Image source not readable }}

I am trying to add a profile image upload in Laravel 5.1. I used the Intervention/Image Package but when I try to upload the image I get this error: NotReadableException in AbstractDecoder.php line 302: Image source not readable This is my…
arispapapro
  • 319
  • 1
  • 3
  • 10
21
votes
5 answers

Image Validation in Laravel 5 Intervention

I have installed intervention in Laravel 5.1 and I am using the image upload and resize something like this: Route::post('/upload', function() { Image::make(Input::file('photo'))->resize(300, 200)->save('foo.jpg'); }); What I dont understand is,…
Neel
  • 9,352
  • 23
  • 87
  • 128
19
votes
3 answers

Intervention Image: Save image directly from an url with original file name and ext?

How to get the filename, when taking image from a remote server? And how to save with original size and filename? // Take remote image $img = Image::make('http://image.info/demo.jpg'); // how to save in the img/original/demo.jpg $img->save(????); I…
Salines
  • 5,674
  • 3
  • 25
  • 50
14
votes
7 answers

Image source not readable in Laravel 5.2 - Intervention Image

I have a small problem concerning the resizing process of a given image, I am trying to submit a form containing an input type -->file<-- I was able to upload a picture without resizing it, after that I decided to resize that image so I installed…
KaldoLeb
  • 169
  • 1
  • 1
  • 8
12
votes
2 answers

Round image corners using intervention image and laravel 5.4

I need insert some images to another image using intervention image and laravel. This is my main image: And these are my images to insert to main image: And finally this image after insert: Well, I use this code to make this: $img =…
Kiyarash
  • 2,437
  • 7
  • 32
  • 61
12
votes
1 answer

Intervention Image - save to variable in base64 encoded format

I'm using Laravel with image manipulating package Intervention Image. I want to save cropped image to variable and then to DB but can't find in documentation how to export result as string. Here's my code: $img =…
Limon Monte
  • 52,539
  • 45
  • 182
  • 213
10
votes
1 answer

Argument 1 passed must be an instance of App\Request, instance of Illuminate\Http\Request given

I have created a method in my User model to upload a poster (with intervention)for the user: /** * Store user's poster. */ public static function storePoster(Request $request) { if($request->hasFile('posterUpload')){ $poster =…
Marco
  • 624
  • 1
  • 6
  • 21
10
votes
5 answers

Laravel 5.2 Intervention Image 500 Server Error

When I upload big images (4.2 MB) Intervention Image is throwing 500 Error... private function resizeImage($path, $imgName){ $sizes = getimagesize($path.$imgName); if($sizes[0] > $sizes[1]){ …
Buglinjo
  • 2,067
  • 1
  • 15
  • 26
10
votes
2 answers

Laravel image intervention compression

I have a script which saves and caches images with intervention, and it's working 100% However i am trying to work out how i can add 75% compression to jpg & png files, but i don't know i would apply it in this situation. I didn't think PNG files…
cardi777
  • 563
  • 2
  • 9
  • 22
10
votes
2 answers

Intervention image Allowed memory size of 20971520 bytes exhausted (tried to allocate 10240 bytes)

I am implementing some image manipulation using great intervention library on Laravel 5. It works fine if image is small, like under 700KB with size lower than 800px wide. But its not able to handle large size images, I want to upload images as big…
Saqueib
  • 3,484
  • 3
  • 33
  • 56
9
votes
2 answers

PHP Fileinfo extension must be installed/enabled to use Intervention Image

I've used intervention image package in Laravel 5 project. It is working in local server. Now when I uploaded in shared server via cpanel, I am getting error: MissingDependencyException in ImageManager.php line 123: PHP Fileinfo extension must be…
psuresh
  • 535
  • 2
  • 13
  • 25
8
votes
4 answers

Laravel Image Intervention avoid rotation

I'm uploading an iPhone image - taken by iPhone camera in vertical - with the dimensions of 2448x3264 and because this dimensions are so high (?) when I create a thumb of 600x360 it automatically rotates to horizontal. What have I tried without any…
Linesofcode
  • 5,327
  • 13
  • 62
  • 116
8
votes
1 answer

Command (GetRealPath) is not available for driver (Gd)

I am trying to create a watermarked version of an uploaded image and store both of them to the storage folder using laravel 5.6 and Intervention. //create the watermarked image $watermarkedImage = Image::make($request->file('photo')); …
Connor Walker
  • 191
  • 1
  • 2
  • 9
8
votes
2 answers

Add white space to image using Laravel 5 intervention image to make square image

Assume I have a favourite square size, and in this case it has 2236 px width and height. I need to save my images in this size on my server using php intervention package. It's not important that what is user's image size, but the point is that the…
Kiyarash
  • 2,437
  • 7
  • 32
  • 61
8
votes
2 answers

ReflectionException in Container.php Class image does not exist for intervention

I tried to save an image which comes form POST request using laravel. but it gives me the following error. ReflectionException in Container.php line 741: Class image does not exist I did the following things : enabling the fileinfo extension in…
roledene JKS
  • 405
  • 2
  • 8
  • 12
1
2 3
30 31