Commit 2a6e1785 authored by Romain Loth's avatar Romain Loth

larger picture allowed in profile

parent c5ce7ef7
......@@ -636,8 +636,8 @@ var cmxClt = (function() {
}
cC.uform.checkShowPic = function (aForm, doHighlight) {
// TEMPORARY initial size already 200 kB, user has to do it himself
var max_size = 204800
// TEMPORARY initial size already 500 kB, user has to do it himself
var max_size = 512000
// TODO max source image size before resizing
// see libs or stackoverflow.com/a/24015367
......@@ -658,7 +658,7 @@ var cmxClt = (function() {
if (theFile.size > max_size) {
// msg pb
picMsg.innerHTML = "The picture is too big (200kB max)!"
picMsg.innerHTML = "The picture is too big (500kB max)!"
picMsg.style.color = cmxClt.colorRed
}
else {
......
......@@ -472,6 +472,12 @@
</div> -->
<h3 class="formcat"> Picture </h3>
<p class="mini-hero">
You can link a picture that's already on the web or upload a picture yourself.
</p>
<div class="question">
<p class="legend">Link to a picture of yours...</p>
<div class="input-group">
......@@ -483,7 +489,7 @@
</div>
<div class="question" style="margin-bottom:.5em" >
<p class="legend">... or upload a picture (png, jpg or gif, max source size: 200kB)</p>
<p class="legend">... or upload a picture (png, jpg or gif, max source size: 500kB)</p>
<!-- <p class="legend">Upload a picture of yours (max source size: 4MB, then the image will be reduced to 200kB)</p> -->
<div class="input-group">
<label for="pic_file" class="smlabel input-group-addon">Picture</label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment