mobian, pinephone camera, and megapixels
#10
(03-25-2021, 01:32 PM)calinb Wrote: In an attempt to learn / debug the behavior of the script and its interaction with Megapixels output, I renamed some .dng files in my Pictures folder to 1.dng, 2.dng, 3.dng, etc. Then I issued the command.

"/usr/share/megapixels/postprocess.sh /home/mobian/Pictures test"

and the result was it deleted my entire Pictures subdirectory with all my (wanted) pictures in it! Cry

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.


I can confirm that the software combination (Megapixels with the current postprocessing script) just produces .dng files. Curiously, if I manually prepare files and start the script, it does produce .jpg files:

Maus@pine:~$ bash -x /usr/share/megapixels/postprocess.sh /tmp/test test
+ '[' 2 -ne 2 ']'
+ BURST_DIR=/tmp/test
+ TARGET_NAME=test
+ MAIN_PICTURE=/tmp/test/1
+ cp /tmp/test/1.dng test.dng
+ DCRAW=
+ TIFF_EXT=dng.tiff
+ command -v dcraw_emu
+ '[' -x /usr/lib/libraw/dcraw_emu ']'
+ DCRAW=/usr/lib/libraw/dcraw_emu
+ set -- -fbdd 1
+ CONVERT=
+ command -v convert
+ CONVERT=convert
+ set -- -fbdd 1
+ '[' -n /usr/lib/libraw/dcraw_emu ']'
+ /usr/lib/libraw/dcraw_emu +M -H 4 -o 1 -q 3 -T -fbdd 1 /tmp/test/1.dng
+ '[' -n convert ']'
+ '[' convert == convert ']'
+ convert /tmp/test/1.dng.tiff -sharpen 0x1.0 test.jpg
+ command -v exiftool
+ exiftool -tagsFromfile /tmp/test/1.dng.tiff -software=Megapixels -overwrite_original test.jpg
    1 image files updated
+ echo test.jpg
test.jpg
+ rm -rf /tmp/test

Works as designed, I'd say, so I have to inspect Megapixels why it does not call the postprocessing that way (or why it fails to do so).
  Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian repository status henrythemouse 16 8,746 04-10-2024, 10:02 AM
Last Post: diederik
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 15 2,002 03-25-2024, 09:07 AM
Last Post: anonymous
  cant verify mobian image at website gnugpg penguins_rule 0 131 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,630 01-08-2024, 02:50 PM
Last Post: ERPlegend
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 1,994 11-22-2023, 11:46 AM
Last Post: aLoop100o
  What actions needed to keep on mobian testing user641 3 1,821 09-05-2023, 06:44 AM
Last Post: Zebulon Walton
  Mobian boot failed with zstd message after upgrade. Mahgue 0 633 09-01-2023, 11:29 AM
Last Post: Mahgue
  [Megapixels] Flash strobe, pictures viewer and MPCamera error 22 freelectro 1 1,117 08-30-2023, 03:59 AM
Last Post: karensather
  GStreamer Camera Issue (Unsupported pixformat: 0x56595559 with mbus code: 0x3001) sog8b 1 1,202 07-17-2023, 01:49 AM
Last Post: junelung

Forum Jump:


Users browsing this thread: 2 Guest(s)