Skip to content

Commit 8262674

Browse files
committed
Add intervention/image package and create ResizeProductImagesJob for image processing
This commit adds the intervention/image package to the project for enhanced image manipulation capabilities. Additionally, it introduces a new job, ResizeProductImagesJob, which is designed to handle the resizing of product images asynchronously, improving the efficiency of image processing tasks within the application.
1 parent d465597 commit 8262674

File tree

3 files changed

+176
-1
lines changed

3 files changed

+176
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace App\Jobs;
4+
5+
use Illuminate\Bus\Queueable;
6+
use Illuminate\Contracts\Queue\ShouldQueue;
7+
use Illuminate\Foundation\Bus\Dispatchable;
8+
use Illuminate\Queue\InteractsWithQueue;
9+
use Illuminate\Queue\SerializesModels;
10+
11+
class ResizeProductImagesJob implements ShouldQueue
12+
{
13+
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
14+
15+
/**
16+
* Create a new job instance.
17+
*/
18+
public function __construct()
19+
{
20+
//
21+
}
22+
23+
/**
24+
* Execute the job.
25+
*/
26+
public function handle(): void
27+
{
28+
//
29+
}
30+
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"php": "^8.1",
99
"guzzlehttp/guzzle": "^7.2",
1010
"illuminate/broadcasting": "^10.48",
11+
"intervention/image": "^3.11",
1112
"laravel/framework": "^10.10",
1213
"laravel/passport": "^12.3",
1314
"laravel/sanctum": "^3.3",

composer.lock

Lines changed: 145 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)