You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
625 B

<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<title>ADD</title>
</head>
<body>
<form method="POST" enctype="multipart/form-data">
{% csrf_token %}
<input type="file" name="img">
<button type="submit">上传</button>
</form>
<p1>注意:相减图像需尺寸一致</p1>
<p1>原图</p1>
<br>
{% for i in img %}
<img src="{{ i.img.url }}" />
{% endfor %}
{# <img src="{{ img.img.url }}" alt=""/>#}
<br>
<p1>相减后</p1>
<br>
<img src="/media/SUBTRACT/subtract.jpg" alt="subtract.jpg"/>
<br>
</body>
</html>