Opened 11 years ago
Closed 11 years ago
#30211 closed defect (bug) (fixed)
WP_Image_Editor_Imagick::supports_mime_type return incorrect result for image/tiff
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.2 | Priority: | normal |
| Severity: | normal | Version: | 4.0 |
| Component: | Media | Keywords: | |
| Focuses: | Cc: |
Description
I've got the case with TIFF files:
wp_get_mime_types() by default give for image/tiff these extensions: tif|tiff
In WP_Image_Editor::get_extension() return only the first one: tif.
But in WP_Image_Editor_Imagick::supports_mime_type() the test fail because ImageMacick support TIFF format (note the FF).
Solutions are:
- in
WP_Image_Editor_Imagick::supports_mime_type()addif( $mime_type == 'image/tiff' ) $imagick_extension = 'TIFF'; - in
WP_Image_Editor_Imagick::supports_mime_type()addif( $imagick_extension == 'TIF' ) $imagick_extension = 'TIFF'; - in
wp_get_mime_types()change'tif|tiff'to'tiff|tif'
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 31044: