joedolson
a88967db6e
Media: Fix admin image cropping calculations.
...
The admin image editor crop function introduced rounding errors by using a scaled image to calculate values. Fix uses the image at 100% scale for calculations. Also avoid recalculating selection when the selection position is changed, and prevent incorrect values after scaling or restoration.
Previously committed in [58456] and reverted in [58571]. The revert was due to a misattributed test failure.
Props Jossnaz, johnillo, shailu25, rachelbaker, sudipatel007, joedolson, kevin940726 , andrewserong, hmbashar.
Fixes #32282 .
Built from https://develop.svn.wordpress.org/trunk@58915
git-svn-id: http://core.svn.wordpress.org/trunk@58311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-08-19 20:47:17 +00:00
..
2023-09-25 17:06:34 +00:00
2024-06-14 15:21:10 +00:00
2024-05-02 17:20:10 +00:00
2024-05-02 17:20:10 +00:00
2024-05-02 17:20:10 +00:00
2024-06-04 06:30:16 +00:00
2023-12-07 15:14:27 +00:00
2024-03-02 20:15:13 +00:00
2024-03-07 05:58:15 +00:00
2024-02-12 12:07:10 +00:00
2024-05-02 17:20:10 +00:00
2024-04-30 08:39:07 +00:00
2024-03-31 05:52:15 +00:00
2024-05-02 17:20:10 +00:00
2024-02-20 07:27:06 +00:00
2024-05-02 17:20:10 +00:00
2024-02-26 20:35:08 +00:00
2024-01-08 23:19:16 +00:00
2024-08-13 23:37:16 +00:00
2023-09-08 09:32:23 +00:00
2023-09-14 12:46:20 +00:00
2024-02-16 21:47:12 +00:00
2024-06-18 14:41:05 +00:00
2024-08-12 21:28:13 +00:00
2023-09-12 15:23:18 +00:00
2024-08-12 04:54:15 +00:00
2024-02-16 21:47:12 +00:00
2024-02-16 21:47:12 +00:00
2024-02-16 21:47:12 +00:00
2024-02-16 21:47:12 +00:00
2024-02-16 21:47:12 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-08-13 23:37:16 +00:00
2023-09-08 09:32:23 +00:00
2024-02-29 12:17:08 +00:00
2023-09-22 19:58:16 +00:00
2024-06-15 12:34:13 +00:00
2023-09-26 00:27:12 +00:00
2024-08-19 15:21:14 +00:00
2024-03-02 20:15:13 +00:00
2024-06-15 12:34:13 +00:00
2024-07-17 15:43:15 +00:00
2024-07-17 15:43:15 +00:00
2024-05-02 17:20:10 +00:00
2024-06-04 06:30:16 +00:00
2024-01-10 11:57:15 +00:00
2024-07-27 00:27:16 +00:00
2024-08-12 21:28:13 +00:00
2024-01-10 11:57:15 +00:00
2024-04-15 20:03:09 +00:00
2024-07-05 10:12:16 +00:00
2024-08-19 20:47:17 +00:00
2024-08-05 04:13:15 +00:00
2024-07-27 00:27:16 +00:00
2024-06-09 22:53:14 +00:00
2023-11-06 09:27:23 +00:00
2024-07-21 18:58:16 +00:00
2024-05-02 13:19:14 +00:00
2024-05-11 14:47:06 +00:00
2024-06-15 12:34:13 +00:00
2024-05-09 23:09:13 +00:00
2023-09-21 01:27:26 +00:00
2024-02-26 20:18:09 +00:00
2024-08-09 00:18:16 +00:00
2024-06-15 12:34:13 +00:00
2024-06-15 12:34:13 +00:00
2024-02-16 21:47:12 +00:00
2024-06-13 10:00:11 +00:00
2024-06-15 12:34:13 +00:00
2024-06-15 12:34:13 +00:00
2024-02-26 20:35:08 +00:00
2024-07-27 00:27:16 +00:00
2024-07-27 00:27:16 +00:00
2024-07-17 13:35:15 +00:00
2024-07-27 00:27:16 +00:00
2024-07-25 22:40:09 +00:00
2023-11-17 13:29:26 +00:00
2023-09-09 09:28:26 +00:00