From 650090c044e975b440c09536c113ecb9089f03bf Mon Sep 17 00:00:00 2001 From: Nathan Bomshteyn Date: Thu, 18 Jul 2024 23:59:18 -0400 Subject: [PATCH] Update README.md - saveImage() save method doesn't exist it should say `saveImage` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e80138..7b36207 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,12 @@ Converting a PDF to an image is easy. ```php $pdf = new \Spatie\PdfToImage\Pdf($pathToPdf); -$pdf->save($pathToWhereImageShouldBeStored); +$pdf->saveImage($pathToWhereImageShouldBeStored); ``` If the filename you pass to `saveImage` has the extensions `jpg`, `jpeg`, `png`, or `webp` the image will be saved in that format; otherwise the output format will be `jpg`. -The `save()` method returns an array with the filenames of the saved images if multiple images are saved, otherwise returns a string with the path to the saved image. +The `saveImage()` method returns an array with the filenames of the saved images if multiple images are saved, otherwise returns a string with the path to the saved image. ## Other methods