Skip to content

Commit

Permalink
Update image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecraank committed Mar 13, 2024
1 parent d1c8f62 commit 1f7b53e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/PresentationProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function processPdf($presentation)
$pdf->setResolution(300);

// $pdf->setPage($i)->saveImage(storage_path('app/public/presentations/' . $presentation->id . '/orig-' . $imagename));
$imageData = $pdf->setPage($i)->getImageData(storage_path('app/public/presentations/' . $presentation->id . '/orig-' . $imagename));
$pdf->setPage($i)->saveImage(storage_path('app/public/presentations/' . $presentation->id . '/orig-' . $imagename));

$resizeImage = \Intervention\Image\Facades\Image::make($imageData);
$resizeImage = \Intervention\Image\Facades\Image::make(storage_path('app/public/presentations/' . $presentation->id . '/orig-' . $imagename));
$resizeImage->resize(1920, 1080)
->save(public_path('data/presentations/' . $presentation->id . '/' . $imagename));

Expand Down

0 comments on commit 1f7b53e

Please sign in to comment.