diff --git a/src/components/views/messages/MImageBody.js b/src/components/views/messages/MImageBody.js index 2f12022140..78af5da727 100644 --- a/src/components/views/messages/MImageBody.js +++ b/src/components/views/messages/MImageBody.js @@ -172,8 +172,8 @@ export default class MImageBody extends React.Component { // thumbnail resolution will be unnecessarily reduced. // custom timeline widths seems preferable. const pixelRatio = window.devicePixelRatio; - const thumbWidth = 800 * pixelRatio; - const thumbHeight = 600 * pixelRatio; + const thumbWidth = Math.round(800 * pixelRatio); + const thumbHeight = Math.round(600 * pixelRatio); const content = this.props.mxEvent.getContent(); if (content.file !== undefined) {