Photo upload

More
1 year 4 months 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

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 year 4 months 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

Please Log in or Create an account to join the conversation.

More
1 year 4 months 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

Please Log in or Create an account to join the conversation.

More
1 year 4 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
Attachments:
The following user(s) said Thank You: cbranch

Please Log in or Create an account to join the conversation.

More
1 year 4 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.

Please Log in or Create an account to join the conversation.

More
1 year 4 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

Please Log in or Create an account to join the conversation.

More
1 year 4 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

Please Log in or Create an account to join the conversation.

More
1 year 4 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.

Please Log in or Create an account to join the conversation.

More
1 year 4 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

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago - 1 year 4 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:
<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: 1 year 4 months ago by cbranch.

Please Log in or Create an account to join the conversation.

More
1 year 4 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?

Please Log in or Create an account to join the conversation.

More
1 year 4 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

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago #167179 by holch
Replied by holch on topic Photo upload
@jelo: Backwards compatibility? I assume that any change to the API would only be applied to 3.x and newer, while Aaskoura mentions that many clients that use Offline-Surveys still use LS 2.x.

However, I agree with you. For me and my use cases, FTP access on every device is a deal breaker for using Offlinesurveys. Actually the apps also need a very open access to the Limesurvey installation. This might work if all the devices are from your company and installed by someone you trust. But ideally I would be able to request the interviewer to install the app and then just send them the survey file to install on their tablet. Because when you do research in a big country it is not very practical to send devices over 800-1000km to the interviewers. It would be a lot better if the interviewer could use its own device and just intall Offlinesurveys and import the respective survey. This is how most other tools that I know work.

But currently, as it is, I wouldn't want to give access to the LS backend to every interviewer (not sure if this has changed, but it was this way when I last tested).

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago #167285 by aaskoura
Replied by aaskoura on topic Photo upload
It is a very valid point, the need to share sensitive data with people outside your organisation. I though this problem is addressed by share survey feature. it produces an encrypted file with all required setup ".lso file" www.offlinesurveys.com/ufaqs/share-survey-offlinesurveys-users
Don't you think it addresses this concern?

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago #167294 by holch
Replied by holch on topic Photo upload
Hi Aaskoura,

I haven't played with the Offlinesurveys app for a while, so I guess this was implemented after my tests. I had mentioned this issue to Mazi. Because besides the case of companies sending interviewers/datacollectors with company tablets (setup by the proper company), we often see the case where we just want to send the questionnaire to the interviewer which might be spread out over the whole country (not feasible send tablets through the whole country and back).

From what I have read, the .lso file could resolve this problem. I'll have a look at this when I have a little bit more time.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!