You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f0734b5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/changelogs/v4.7.7.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Release Date: Unreleased
20
20
-**Database:** Fixed a bug where `SQLSRV\Forge::_alterTable()` interpolated table and column names without escaping in default constraint lookups.
21
21
-**Database:** Fixed a bug where `SQLite3\Table::dropIndexes()` used single-quoted string literals instead of escaped identifiers in `DROP INDEX IF EXISTS`, causing syntax errors on index names containing quotes or special characters.
22
22
-**HTTP:** Fixed a bug where `UploadedFile::move()` and `UploadedFile::store()` on Windows could store a file under a different name than `getName()` reported, or write its contents to an NTFS alternate data stream. Filenames ending in a period or space or containing a colon are now rejected, including explicitly supplied names.
23
+
-**Images:** Fixed a bug in `ImageMagickHandler::save()` where saving without an extension or with an unsupported extension threw an `ImagickException` instead of falling back to the image's format.
23
24
-**Security:** Fixed a bug where `Security::__construct()` threw a `TypeError` when the CSRF cookie was an array, causing an HTTP 500 response for affected requests.
24
25
-**Worker Mode:** Fixed a bug where every request that ended with an uncaught exception, including a `404 Page Not Found` without a 404 override, called `exit()` in the exception handler. This ended the worker script, so FrankenPHP booted a new one, and the worker loop skipped its cleanup after the request. The exception handler now returns to the worker loop.
Copy file name to clipboardExpand all lines: docs/libraries/images.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ This example would take the same image and first fix any mobile phone orientatio
86
86
The parameter `$quality` for WebP can be used since v4.4.0.
87
87
88
88
!!! note "Note"
89
-
When using ImageMagick, the target path passed to `save()` determines the output format by its extension. ImageMagick may also interpret explicit format prefixes like `jpg:filename.png`. If the target path is based on user input, validate it against the formats your application allows, including any format prefix or extension.
89
+
When using ImageMagick, the target path passed to `save()` determines the output format by its extension. If the target has no extension or an unsupported extension, the handler falls back to the image's `$imageType`. ImageMagick may also interpret explicit format prefixes like `jpg:filename.png`. If the target path is based on user input, validate it against the formats your application allows, including any format prefix or extension.
90
90
91
91
```php
92
92
<?php
@@ -192,7 +192,7 @@ convert(int $imageType)
192
192
```
193
193
194
194
!!! note "Note"
195
-
ImageMagick already saves files in the type indicated by their extension, ignoring `$imageType`.
195
+
When using ImageMagick, a supported target filename extension determines the output format and takes precedence over `$imageType`. If the target has no extension or an unsupported extension, the handler uses `$imageType` instead.
0 commit comments