mobian, pinephone camera, and megapixels
#11
(03-25-2021, 02:56 PM)Maus Wrote: I'm sorry to read you lost your images, but you are absolutely right, reading only the introductory comment lines, especially the last two of them, would have helped:

# The post-processing script is responsible for cleaning up
# temporary directory for the burst.

<snip>

Thanks, Maus! Yeah, I'm not much of a script meister so sometimes I take heuristic shortcuts to study behavior rather than studying the code. I've been in computing since before "microcomputers" even existed. FORTRAN, K&R C, and assembler is mostly how I learned a living many years ago.

But at least I finally settled into reviewing the code and I found the bug. I guess it's best to stick to POSIX syntax when using sh and perhaps a new intolerance to legacy code just bit postprocess.sh!

I changed line 69 in postprocess.sh from
Code:
if [ "$CONVERT" == "convert" ]; then

to

Code:
if [ "$CONVERT" = "convert" ]; then
I setup test subdirectories and ran the script from the terminal and it worked only with the change in operator syntax. I have .jpg files now! Big Grin

From https://stackoverflow.com/questions/2044...erators-eq

== is a bash-ism, by the way. It's better to use the POSIX =. In bash the two are equivalent, and in plain sh = is the only one guaranteed to work.

Now I need to discover where to file a bug report.
  Reply


Messages In This Thread
RE: mobian, pinephone camera, and megapixels - by calinb - 03-25-2021, 04:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian repository status henrythemouse 16 8,724 04-10-2024, 10:02 AM
Last Post: diederik
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 15 1,988 03-25-2024, 09:07 AM
Last Post: anonymous
  cant verify mobian image at website gnugpg penguins_rule 0 130 03-18-2024, 08:54 PM
Last Post: penguins_rule
  The program doesn`t detect the camera blag0rag 2 322 02-15-2024, 08:03 PM
Last Post: Kevin Kofler
  unofficial kali linux for pinephone help needed pinesmell 5 3,625 01-08-2024, 02:50 PM
Last Post: ERPlegend
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 1,987 11-22-2023, 11:46 AM
Last Post: aLoop100o
  What actions needed to keep on mobian testing user641 3 1,809 09-05-2023, 06:44 AM
Last Post: Zebulon Walton
  Mobian boot failed with zstd message after upgrade. Mahgue 0 632 09-01-2023, 11:29 AM
Last Post: Mahgue
  [Megapixels] Flash strobe, pictures viewer and MPCamera error 22 freelectro 1 1,114 08-30-2023, 03:59 AM
Last Post: karensather
  GStreamer Camera Issue (Unsupported pixformat: 0x56595559 with mbus code: 0x3001) sog8b 1 1,196 07-17-2023, 01:49 AM
Last Post: junelung

Forum Jump:


Users browsing this thread: 1 Guest(s)