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

larger picture allowed in profile

parent c5ce7ef7
...@@ -636,8 +636,8 @@ var cmxClt = (function() { ...@@ -636,8 +636,8 @@ var cmxClt = (function() {
} }
cC.uform.checkShowPic = function (aForm, doHighlight) { cC.uform.checkShowPic = function (aForm, doHighlight) {
// TEMPORARY initial size already 200 kB, user has to do it himself // TEMPORARY initial size already 500 kB, user has to do it himself
var max_size = 204800 var max_size = 512000
// TODO max source image size before resizing // TODO max source image size before resizing
// see libs or stackoverflow.com/a/24015367 // see libs or stackoverflow.com/a/24015367
...@@ -658,7 +658,7 @@ var cmxClt = (function() { ...@@ -658,7 +658,7 @@ var cmxClt = (function() {
if (theFile.size > max_size) { if (theFile.size > max_size) {
// msg pb // 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 picMsg.style.color = cmxClt.colorRed
} }
else { else {
......
...@@ -472,6 +472,12 @@ ...@@ -472,6 +472,12 @@
</div> --> </div> -->
<h3 class="formcat"> Picture </h3> <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"> <div class="question">
<p class="legend">Link to a picture of yours...</p> <p class="legend">Link to a picture of yours...</p>
<div class="input-group"> <div class="input-group">
...@@ -483,7 +489,7 @@ ...@@ -483,7 +489,7 @@
</div> </div>
<div class="question" style="margin-bottom:.5em" > <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> --> <!-- <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"> <div class="input-group">
<label for="pic_file" class="smlabel input-group-addon">Picture</label> <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