[wp-trac] [WordPress Trac] #62712: "Edit image" in Media Modal not work for PSD/SVG ( mime_type image/* )
WordPress Trac
noreply at wordpress.org
Fri Dec 20 21:52:43 UTC 2024
#62712: "Edit image" in Media Modal not work for PSD/SVG ( mime_type image/* )
-----------------------------+------------------------------
Reporter: Hrohh | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 6.7.1
Severity: minor | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by Hrohh):
I think, that it doesn't matter whether the file is an image. If we have
metadata sizes for example for DOCX, MP3 etc, we can use image editor for
cropping thumbnails ( metadata sizes ). It is same situation like with
PDF.
So we have image/*, it is image, but only
**viewable to browser**
'image/jpeg', 'image/png', 'image/gif', 'image/bmp', 'image/webp',
'image/avif', ( no heic for now https://caniuse.com/heif )
**editable by image editor**
{{{#!php
<?php
wp_image_editor_supports( array(
'mime_type' => 'image/vnd.adobe.photoshop',
'methods' => array(
'rotate',
'resize',
'save'
)
) );
// return true for me so "Edit Image" should work
}}}
I found little bug in image editor
https://core.trac.wordpress.org/ticket/62729#ticket
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62712#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list