diff --git a/web/concrete/src/Editor/LinkAbstractor.php b/web/concrete/src/Editor/LinkAbstractor.php
index <HASH>..<HASH> 100644
--- a/web/concrete/src/Editor/LinkAbstractor.php
+++ b/web/concrete/src/Editor/LinkAbstractor.php
@@ -120,6 +120,18 @@ class LinkAbstractor extends Object
 				$fID = $picture->fid;
 				$fo = \File::getByID($fID);
 				if (is_object($fo)) {
+					// move width px to width attribute and height px to height attribute
+					$widthPattern = "/width:\\s([0-9]+)px;?/i";
+					if (preg_match($widthPattern, $picture->style, $matches)) {
+						$picture->style = preg_replace($widthPattern, '', $picture->style);
+						$picture->width = $matches[1];
+					}
+					$heightPattern = "/height:\\s([0-9]+)px;?/i";
+					if (preg_match($heightPattern, $picture->style, $matches)) {
+						$picture->style = preg_replace($heightPattern, '', $picture->style);
+						$picture->height = $matches[1];
+					}
+					$picture->style = preg_replace('/\s+/', '', $picture->style);
 					if ($picture->style) {
 						$image = new \Concrete\Core\Html\Image($fo, false);
 						$image->getTag()->width(false)->height(false);
Allows images that might have something like <img style="width: <I>px; height: <I>px;"...> to leverage the responsive picture elements


Former-commit-id: <I>c<I>d<I>d<I>ffd8cbd2d<I>c<I>
Former-commit-id: <I>c5f<I>c<I>b<I>b<I>f<I>a5a7