Raise MP limit and improve message about limit on decode page

git-svn-id: https://zxing.googlecode.com/svn/trunk@2597 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-03-27 09:54:44 +00:00
parent 921c0178e0
commit fe9e0ccf6a
2 changed files with 3 additions and 3 deletions

View file

@ -79,8 +79,8 @@ public final class DecodeServlet extends HttpServlet {
// No real reason to let people upload more than a 2MB image
private static final long MAX_IMAGE_SIZE = 2000000L;
// No real reason to deal with more than maybe 2 megapixels
private static final int MAX_PIXELS = 1 << 21;
// No real reason to deal with more than maybe 8.3 megapixels
private static final int MAX_PIXELS = 1 << 23;
private static final byte[] REMAINDER_BUFFER = new byte[8192];
private static final Map<DecodeHintType,Object> HINTS;
private static final Map<DecodeHintType,Object> HINTS_PURE;

View file

@ -64,7 +64,7 @@
</form>
<form action="decode" method="post" enctype="multipart/form-data">
<tr>
<td style="text-align:right">Or upload a file (&amp;lt;2MB):</td>
<td style="text-align:right">Or upload a file (&amp;lt;2MB, &amp;lt;8MP):</td>
<td><input type="file" name="f"/></td>
<td><input type="submit"/></td>
</tr>