I have installed it in a 5.3.2 and it seems to work as expected, with one exception; image crops are always from center/center even with other postitions declared like “center”,”top”.
I dug around in the code and I found an error, and fixed it, but the crop positions are ignored, still. I think it is a problem with WP 5.x own image scaling and the resulting “original-image-scaled-123×123.jpg” files.
Anyway, here is the bug line:
(in simple-image-sizes/classes/admin/Media.php line 407:)
$crop = '["' . $crop[0] . '", "' . $crop[1] . '")';
should be
$crop = '["' . $crop[0] . '", "' . $crop[1] . '"]';
(also on github: https://github.com/Rahe/Simple-image-sizes/issues/59 )
cheers,
Tom
-
This reply was modified 4 years, 11 months ago by
Webrocker.