diff --git a/src/preprocessor.js b/src/preprocessor.js index eef343b2dda0dedd63012214a1ba6b82fe86195b..b388ada0bd471c3d90b3f59d0ad23d2ae6269c76 100644 --- a/src/preprocessor.js +++ b/src/preprocessor.js @@ -320,8 +320,8 @@ function img_to_picture(content, node, image) { res += ``; return (res += ''); @@ -354,8 +354,8 @@ function dynamic_img_to_picture(content, node, src_var_name) { const details = { src: `{${src_var_name}.img.src}`, - width: `{${src_var_name}.img.w}`, - height: `{${src_var_name}.img.h}` + width: `{${src_var_name}.img.w / 2}`, + height: `{${src_var_name}.img.h / 2}` }; return `{#if typeof ${src_var_name} === 'string'}