Skip to content

Commit 647e193

Browse files
authored
Formatting
1 parent 8f0e986 commit 647e193

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

user_guide_src/source/libraries/images.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,19 @@ offset values::
159159
Converting Images
160160
-----------------
161161

162-
The ``convert()`` method changes the library's internal indicator for the desired file format. This doesn't touch the actual image resource, but indicates to ``save()`` what format to use.
162+
The ``convert()`` method changes the library's internal indicator for the desired file format. This doesn't touch the actual image resource, but indicates to ``save()`` what format to use::
163163

164164
convert(int $imageType)
165165

166-
- **$imageType** is one of PHP's image type constants (see for example https://www.php.net/manual/en/function.image-type-to-mime-type.php)
166+
- **$imageType** is one of PHP's image type constants (see for example https://www.php.net/manual/en/function.image-type-to-mime-type.php)::
167167

168168
Services::image()
169169
->withFile('/path/to/image/mypic.jpg')
170170
->convert(IMAGETYPE_PNG)
171171
->save('path/to/new/image.png');
172172

173-
.. note:: ImageMagick already saves files in the type indicated by their extension, ignoring **$imageType**
173+
.. note:: ImageMagick already saves files in the type
174+
indicated by their extension, ignoring **$imageType**
174175

175176
Fitting Images
176177
--------------

0 commit comments

Comments
 (0)