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
3
votes
0 answers

File upload with laravel 5 and image intervention

I tried to use image intevention with laravel 5 to upload images and resize.. but i have this error message: NotSupportedException in Driver.php line 18: ImageMagick module not available with this PHP installation. installation: require…
Leoh
  • 642
  • 2
  • 17
  • 41
3
votes
2 answers

Intervention laravel 5

I'm trying to install intervention. I run this command composer require intervention/image and composer.json is updated. I add 'Image' => 'Intervention\Image\Facades\Image::class'in $aliases array and it's ok. Then i…
3
votes
5 answers

How to install intervention image with Windows

In Intervention Image's website, it says that in order to install the most recent version, I must run the following command : php composer.phar require intervention/image I am using Windows 8.1 and I guess this isn't going to work. I already tried…
user3038607
  • 411
  • 3
  • 7
  • 18
3
votes
1 answer

Laravel 5 - blurry image after upload - intervention

I am making an eCommerce web portal. I am trying to upload the image in different resolutions, which is working completely fine. But the problem is that, if I view it in the browser after uploading, I get to see the blurry image which is not what I…
Saiyan Prince
  • 3,930
  • 4
  • 28
  • 71
2
votes
1 answer

resize and Crop image with intervention/image

I want to resize crop image like below : if image is lower than 500x400, scale up and crop, also if image is higher, scale down and crop. i used some resize, canvas, fit and other functions but getting some confused at all. I see users try to reach…
Mahdi
  • 923
  • 1
  • 6
  • 17
2
votes
2 answers

Auth guard [api] is not defined

I checked several questions with the same error above I mentioned. But couldn't find the answer. I'm trying to turn my base64 string into an image file. Here is the code in my controller, public function createImage(Request $request) { …
2
votes
2 answers

Is it possible to set quality in Image Intervention for WebP images?

I want to convert jpg to webp and set the quality to 50 (as an example). But the Image Intervention only supports the quality parameter only for jpg files. quality (optional) Define the quality of the encoded image optionally. Data ranging from 0…
kodfire
  • 1,612
  • 3
  • 18
  • 57
2
votes
1 answer

Saving Images in two size in Laravel Livewire

I have a form where I upload images using Laravel Livewire. In my class I can save the files in original size using: $filenames = collect($this->photos)->map->store('posts'); The issue that I faced is that I don't know how to save the same images…
Sham
  • 23
  • 9
2
votes
5 answers

Image intervention package not install for laravel 8

Your requirements could not be resolved to an installable set of packages. Problem 1 - intervention/image[2.5.0, ..., 2.5.1] require guzzlehttp/psr7 ~1.1 -> found guzzlehttp/psr7[1.1.0, ..., 1.x-dev] but the package is fixed to 2.0.0 (lock file…
Nazmul Hoque
  • 761
  • 9
  • 9
2
votes
2 answers

Resize image and store into Storage in Laravel 7

So far I'm uploading an image with the following code bellow: if($request->hasFile('image')) { $path = $request->image->getClientOriginalName(); $name = time() . '-' . $path; $news->image = $request->file('image')->storeAs('public/news',…
user2519032
  • 819
  • 1
  • 18
  • 34
2
votes
0 answers

Getting Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files while uploading image

I have integrated Intervention Image library (v-2.5) into my laravel application (v-5.1) to resize images. It is working fine in local server, but when i deploy it to live server i'm getting this error: Unsupported image type. GD driver is only able…
Alauddin Ahmed
  • 1,128
  • 2
  • 14
  • 34
2
votes
1 answer

iOS / EXIF Orientation - if iOS resizes file before uploading, it alters exif orientation value

I'm using the Intervention package to handle file uploads in a mobile-focused web application built using Laravel. I have a photo that has an exif orientation of 8 (sideways) When uploading this file at full size and then using Intervention's…
sparkwatson
  • 111
  • 6
2
votes
1 answer

Memory exhausted and PHP Version mismatch errors. Not able to install image intervention laravel 5.5 package

I want to change color of my image. So I'm trying to use image/intervention of laravel. Followed their documentation: http://image.intervention.io/getting_started/installation https://packagist.org/packages/intervention/image When i tried the…
2
votes
0 answers

Adding watermark to an image

I am using the image/Intervention package to write a text (as a watermark) on an image. Now, I want the text to have a background color with a distinct shape. I want something like this. This is what I am doing currently $code = 7025; if…
shekwo
  • 1,411
  • 1
  • 20
  • 50
2
votes
0 answers

How to know size of text?

I try to use intervention, library to manipulate image. I succeeded to create one, use watermake with "insert" function but I write text without knowing size. How to do that ? I would like to enhance text readability by adding a box…
z0om
  • 133
  • 1
  • 10