[wp-trac] [WordPress Trac] #63302: SVG images can't be uploaded anymore due to a resizing issue

WordPress Trac noreply at wordpress.org
Fri Apr 18 20:21:21 UTC 2025


#63302: SVG images can't be uploaded anymore due to a resizing issue
-------------------------------------------------+-------------------------
 Reporter:  audrasjb                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.8.1
Component:  Editor                               |     Version:  6.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch dev-       |     Focuses:
  feedback needs-testing has-testing-info        |
-------------------------------------------------+-------------------------
Changes (by SirLouen):

 * keywords:  has-screenshots has-patch => has-screenshots has-patch dev-
     feedback needs-testing has-testing-info


Comment:

 Replying to [comment:19 pbiron]:
 > @SirLouen I tend to agree, I was just trying to add some future
 proofing, in case some other image format in the future becomes common
 that doesn't need sub-sizes created.

 I've come with the idea of adding a global constant for this purpose
 (future-proofing and providing a more descriptive idea of what's going
 on). As I've described, I still think that a double-filter to enable SVG
 is too much (moreover this is nothing helpful for the user, like the first
 filter, that is actually there for some sort of security purpose, in this
 case it's just a flaw in code, just because GD technically doesn't support
 resizing for a type of file that doesn't need resizing by its nature)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63302#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list