Recognize img width/height auto

This commit is contained in:
M66B 2019-07-26 21:21:12 +02:00
parent afbfd20b9b
commit 0b53989826
1 changed files with 3 additions and 2 deletions

View File

@ -241,9 +241,10 @@ public class HtmlHelper {
String awidth = img.attr("width");
String aheight = img.attr("height");
if (!TextUtils.isEmpty(awidth))
if (!TextUtils.isEmpty(awidth) && !"auto".equals(awidth.toLowerCase()))
width = Integer.parseInt(awidth);
if (!TextUtils.isEmpty(aheight))
if (!TextUtils.isEmpty(aheight) && !"auto".equals(aheight.toLowerCase()))
height = Integer.parseInt(aheight);
if (width != 0 || height != 0) {