Opened 12 years ago
Closed 12 years ago
#30211 closed defect (bug) (fixed)
WP_Image_Editor_Imagick::supports_mime_type return incorrect result for image/tiff
| Reported by: | mmems | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Media | Version: | 4.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 31044: