error on resize picture in media
|Reported by:||jsarson||Owned by:|
When I try to resize (scale) image in media library, It return error message: Error while saving the scaled image. Please reload the page and try again.
Problem is only with some pictures with "bad" resolution and it doesnt fit this condition correctly (different is about 0.01 - 0.03):
check if it has roughly the same w / h ratio
if ( round($sX / $sY, 1) == round($fwidth / $fheight, 1) )