[wp-trac] [WordPress Trac] #26381: Scaling Image Up Fails Silently

WordPress Trac noreply at wordpress.org
Tue Aug 2 14:42:52 UTC 2022


#26381: Scaling Image Up Fails Silently
-------------------------------------+---------------------------
 Reporter:  bandonrandon             |       Owner:  markoheijnen
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.1
Component:  Media                    |     Version:  3.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------
Changes (by desrosj):

 * keywords:  needs-patch => has-patch needs-testing
 * milestone:   => 6.1


Comment:

 I did some testing and this is still present today in 6.0.x.

 [attachment:"26381.diff"] disables the scale button when the entered
 dimensions would result in upscaling. But it feels confusing not to
 present more information to the user.

 Additionally, I think that `wp_save_image()` (which is the function called
 for `scale` AJAX requests) could probably be updated to return an error
 when attempting to enlarge an image. I'll upload a separate patch that
 includes that change, but this may cause some problems in other locations,
 so may need more testing.

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


More information about the wp-trac mailing list