Question: The spectrum gets vertical no matter how I upload the picture.

wangdydu is asking a question about spectral-workbench: Subscribe to answer questions on this topic

wangdydu asked on April 27, 2018 08:55
161 | 3 answers | #16220


I took photo with my smartphone, upload with smartphone and PC, checked and unchecked the checkbox of vertical, rotated the device for 90 degree on my smartphone, zoomed in/out, rename the file, and all the methods lead to the same result: vertical spectrum. Am I doing anything wrong?

smartphone: Zenphone 3

browser: Chrome

Original fileimage description

recapture with 90 degree rotation of the device
image description

and they came to be like this:
image description

click into the "claibration01" files, I got this:image descriptionAm I the kind not reading the manual?



3 Comments

I'm am having a similar issue here: trying to upload and cal for the 1st time, on a paper spectrometer with a Pixel phone. No matter if I check the vertical or not I get my image displayed in the calibration as "Calibration01 rotated' above: vertically. After several unsuccessful attempts I rotated the original jpg on my desk them uploaded that. This then displayed the spectra horizontally however the lines have severe curves to them which I think is preventing the software from finding/displaying the peaks as I see them; hence, a failed cal. I'm guessing I need to get the image better centered on my camera lens to get straighter lines, so I'll play with that. (I assume you can look at the images from me, McL, so I won't post them here...)


hi, i believe this is a new bug! Would you be able to open an issue at https://github.com/publiclab/spectral-workbench/issues please, and we can try to follow up? Thank you!

On Mon, Jul 16, 2018 at 4:11 PM \<notifications@publiclab.org> wrote:

Hi! There's been a response to a discussion you're involved in. Do NOT reply to this email; click this link to respond:

https://publiclab.org/questions/wangdydu/04-27-2018/the-spectrum-gets-vertical-no-matter-how-i-upload-the-picture#answer-0-comment-20137

McL wrote:


I'm am having a similar issue here: trying to upload and cal for the 1st time, on a paper spectrometer with a Pixel phone. No matter if I check the vertical or not I get my image displayed in the calibration as "Calibration01 rotated' above: vertically. After several unsuccessful attempts I rotated the original jpg on my desk them uploaded that. This then displayed the spectra horizontally however the lines have severe curves to them which I think is preventing the software from finding/displaying the peaks as I see them; hence, a failed cal. I'm guessing I need to get the image better centered on my camera lens to get straighter lines, so I'll play with that. (I assume you can look at the images from me, McL, so I won't post them here...)


Reply at: https://publiclab.org/questions/wangdydu/04-27-2018/the-spectrum-gets-vertical-no-matter-how-i-upload-the-picture#answer-0-comment

Report abuse to: moderators@publiclab.org

Check out the blog at https://publiclab.org/blog | Love our work? Become a Public Lab Sustaining Member today at https://publiclab.org/donate

Is this a question? Click here to post it to the Questions page.


I was having the same problem with my spectrum always going vertical, but I fixed it by using Paint 3D to rotate and crop the original image. I saved the image I cropped from Paint 3D and it worked.


Log in to comment

3 Answers

Hi, I believe you should be able to rotate the picture after uploading, but there should also be a "vertical" checkbox you can check or uncheck -- do either of those ideas work?

Can you link us to your spectrum so we can see?


I see that you can swap it (180deg) but can you rotate it (90 or 270)? I don't see that.

Is this a question? Click here to post it to the Questions page.


hi, i believe this is a new bug! Would you be able to open an issue at https://github.com/publiclab/spectral-workbench/issues please, and we can try to follow up? Thank you!

Is this a question? Click here to post it to the Questions page.


Log in to comment

I found how to solve this problem, and it seems to be simple enough. Zoom in, zoom further in , and if your smartphone has M mode, use it to make sure you take photo at same zooming every time. And you have to adjust your device to make sure the spectrum is still centered after you zoomed in. Sorry for ignored this for months, I just forget this thing after I finish that course. Hope this helps.


Log in to comment

I found how to solve this problem, and it seems to be simple enough. Zoom in, zoom further in , and if your smartphone has M mode, use it to make sure you take photo at same zooming every time. And you have to adjust your device to make sure the spectrum is still centered after you zoomed in. Sorry for ignored this for months, I just forget this thing after I finish that course. Hope this helps.


Log in to comment

Sign up or Login to post an answer to this question.