The issue has been discussed before and for JPEG images you get a quality loss (due to re-compression) if the cropping is not done in multiples of 16 pixels or something like that.
So cropping JPEG images is not trivial if you want to avoid quality losses.
I'm quoting Peter Nermander from 11 Years ago:
"The way a JPEG is compressed it has to be recompressed after any
change. Change one pixel and the image has to be recompressed. That is
why using JPEG as a working format during image editing is no good.
It seems however it is possible to do lossless cropping if you crop
along the borders of the "blocks" the image is made up of.
And if that is true that would probably be a working solution.It would
of course mean that the cropped images might become a little bigger
than the frame, but not more than 30 pixels (assuming worst case with
16 pixel blocks, giving 15 pixels on each side)."
https://scribus.scribus.narkive.com/9MO4dPPP/image-cropping#post4