We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c95431 commit f999409Copy full SHA for f999409
1 file changed
include/functions.image.php
@@ -92,7 +92,7 @@ function newbbAttachmentImage($source)
92
$attachmentImage .= '<img src="' . $image_url . '" ' . $pseudo_size . ' alt="' . $source . ' ' . $img_info . '" style="max-width: 100%; height: auto;">';
93
$attachmentImage .= '</a>';
94
} elseif (file_exists($image)) {
95
- $attachmentImage = '<img src="' . $image_url . '" alt="' . $source . ' ' . $img_info . '" style="max-width: 100%; height: auto;">';
+ $attachmentImage = '<img src="' . $image_url . '" alt="' . $source . ' ' . $img_info . '" width="' . $imginfo[0] . 'px" height="' . $imginfo[1] . 'px" style="max-width: 100%; height: auto;">';
96
} else {
97
$attachmentImage = '';
98
}
0 commit comments