Skip to content

Commit

Permalink
увеличен допустимый размер скриншота
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Jun 19, 2009
1 parent 940450c commit 889867a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/ru/org/linux/site/ScreenshotProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
import ru.org.linux.util.UtilException;

public class ScreenshotProcessor {
private static final int MAX_SCREENSHOT_FILESIZE = 500000;
private static final int MIN_SCREENSHOT_SIZE = 400;
private static final int MAX_SCREENSHOT_SIZE = 2048;
public static final int MAX_SCREENSHOT_FILESIZE = 1000000;
public static final int MIN_SCREENSHOT_SIZE = 400;
public static final int MAX_SCREENSHOT_SIZE = 3000;

private final File file;
private final String extension;
Expand Down
6 changes: 4 additions & 2 deletions web/WEB-INF/jsp/add.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@
<p>
Технические требования к изображению:
<ul>
<li>Ширина x Высота: от 400x400 до 2048x2048 пикселей</li>
<li>Ширина x Высота:
от <%= ScreenshotProcessor.MIN_SCREENSHOT_SIZE %>x<%= ScreenshotProcessor.MIN_SCREENSHOT_SIZE %>
до <%= ScreenshotProcessor.MAX_SCREENSHOT_SIZE %>x<%= ScreenshotProcessor.MAX_SCREENSHOT_SIZE %> пикселей</li>
<li>Тип: jpeg, gif, png</li>
<li>Размер не более 300 Kb</li>
<li>Размер не более <%= (ScreenshotProcessor.MAX_SCREENSHOT_FILESIZE / 1024) - 50 %> Kb</li>
</ul>
</p>
<% } %>
Expand Down

0 comments on commit 889867a

Please sign in to comment.