Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Photo upload

  • cbranch
  • cbranch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 day ago #166385 by cbranch
Photo upload was created by cbranch
Hi,

I still have issues with the foto upload:


Number one: the quality of the uloaded picture is quite bad. Would there be a way to improve it?
I took the template from here: www.offlinesurveys.com/wp-content/uploads/2016/08/camera.lsq

Number two: the image upload runs via ftp-server; hower, in the answer mask of limesurvey I was not able to open the images. Would I now have to write a separate program to combine the images with the survey data?

Best,
Christian
The topic has been locked.
More
6 years 1 day ago #166390 by jelo
Replied by jelo on topic Photo upload
I'm not aware that the app is changing the quality of photos. So the quality depends on the setting of the camera app on the device.

I haven't tested the FTP-upload, but LimeSurvey is not aware of the upload location via FTP. So there is no direct access via GUI of LimeSurvey.

I would like to see a deeper integration, since I won't open Pandora's box with FTP access from every mobile device. I don't like that concept. I'm aware of the technical issues, but the LimeSurvey team should be able to offer a way for deeper integration for third party apps. The offline app is a good thing for LimeSurvey too. A collaboration should be possible.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • cbranch
  • cbranch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 23 hours ago #166404 by cbranch
Replied by cbranch on topic Photo upload
Hi,
other pictures on the device are just fine (1-5 mb), so the camera app works just fine.

In the answer mask of the survey, a link with the name of the file is shown:
example: http://xxx/index.php/admin/responses?sa=actionDownloadfile&surveyid=abc&iResponseId=x&sFileName=xXxXx_123456789.jpg, but the link won't open.

ftp-server was set accordingly: www.offlinesurveys.com/sync-responses-automatically
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #166500 by Joffm
Replied by Joffm on topic Photo upload
Hi, I just tried it and this link is shown when hovering the picture in the answer table:


"https: //www.myServer.de/survey/index.php/admin/responses?sa=actionDownloadfile&surveyid=165799&iResponseId=4&iQID=41924&iIndex=0"

As you see it is different from yours.

Clicking the file it is opened:


And I do not see a quality issue:


So, there might be a problem in your configuration, your environment, or, or,...
Difficult to find out.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: cbranch
The topic has been locked.
  • cbranch
  • cbranch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #166509 by cbranch
Replied by cbranch on topic Photo upload
Thank you very much! The ftp folder was set to the parent directory.
The image quality is same in my case; try to zoom, for my workcase this is rather bad. It is a 70 kb image. Understandable, to reduce the traffic though.
The topic has been locked.
More
5 years 11 months ago #166940 by aaskoura
Replied by aaskoura on topic Photo upload
Hi, apologies for the later reply :)
Inside the camera question.lsq you will find a resolution parameter... "Android.requestCamera(1024, "CameraIMG-{QID}", inputID);" this 1024 is the required resolution and can be increased to 4096 if you desire

Regards,
Amr,
OfflineSurveys Support
The topic has been locked.
More
5 years 11 months ago #166949 by jelo
Replied by jelo on topic Photo upload
Is there a plan to get rid of the separate ftp access? What needs to be changed in LS to get everything done via Remotecontrol? A feature request for the LS core developer team possible?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
5 years 11 months ago #167003 by aaskoura
Replied by aaskoura on topic Photo upload
It is frankly not part of the plan, OfflineSurveys support LimeSurvey starting 2.0, a minimal portion of the users are using the latest LS version.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 11 months ago #167004 by LouisGac
Replied by LouisGac on topic Photo upload
Indeed, most users already moved to LS3, and many users push a lot to get the comfortUpdate from 2.73 to LS 3
The topic has been locked.
  • cbranch
  • cbranch's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago - 5 years 11 months ago #167011 by cbranch
Replied by cbranch on topic Photo upload
Thank you aaskoura, I changed that parameter. However, the result didn't change.
Question Code:
Code:
<h>Photo 1</h>
<p>Click on camera to create photo.</p>
 
<p style="text-align: center;"><img alt="" id="CameraIMG-{QID}" src="http://fourthwheel-eg.com/RedDime2/assets/uploads/files/b0575-camera.png" style="width: 256px;" /></p>
<script type="text/javascript" charset="utf-8">
    $(document).ready(function() {
        var questionObj = $('#question' + {QID});
        var inputID = questionObj.find('input[type="hidden"][id$=' + {QID} + ']').attr("id"); 
        questionObj.find('.questionhelp').hide();
        questionObj.find('.answer').hide();
        questionObj.addClass('upload-files');
        $('#CameraIMG-{QID}').on('click', function(event) {
            try {
                Android.requestCamera(4096, "CameraIMG-{QID}", inputID);
            } catch (ex) {
                console.log("No response to requestCamera");
            }
            return false;
        });
    });
</script>
Last edit: 5 years 11 months ago by cbranch.
The topic has been locked.
More
5 years 11 months ago #167012 by aaskoura
Replied by aaskoura on topic Photo upload
Then it is definitely a device issue. Can you try with a different device and compare quality?
The topic has been locked.
More
5 years 11 months ago #167014 by jelo
Replied by jelo on topic Photo upload

aaskoura wrote: It is frankly not part of the plan, OfflineSurveys support LimeSurvey starting 2.0, a minimal portion of the users are using the latest LS version.



I'm not sure I get it. What does LS 2 or LS 3 have to do with the separate FTP upload?
Would LS 3.X offering a way to get images uploaded without FTP?
It looks to me as if LS would need to be changed or enhanced to offer direct upload without FTP?

The offline survey android app is running with LS 3. I seem to misunderstand something about your statement.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose