Placed graphic displays and exports outside stroke.
A placed graphic will show onscreen and in graphic exports like PNG and JPG outside the stroke when the stroke is aligned to the inside of the frame. InDesign 2020 and earlier. To reproduce: place a graphic, add a stroke to the frame, align stroke to inside, export the page to jpg or png. A thin portion of the image is visible outside the stroke. Obviously, this is most noticeable when the stroke is thick and white.
Thank you for reporting the issue to us.
We are currently reviewing it.
I'm experiencing this too.
Uwe Laubender commented
a longstanding bug, I think.
Already saw this with e.g. InDesign CS5.
The issue is the alignment of the stroke: Inside Path
Also test different types of images. JPEG, TIFF, PSD and ( just for testing, but not for production: ) EPS saved from PhotoShop.
I can recall that in one occassion EPS was superior to TIFF or JPEG, but nowadays with color management in mind no one will or should use the EPS file format over a TIFF, JPEG or a PSD file format where ICC profiles could be applied.
( ACP )
Buggy thin line (part of the photo inside frame) is visible If frame have stroke aligned inside of the frame. See the screenshot and photo of issue. Photo present proof from printed after RIP in printing house.
Problem is known from 2009 and still exist!