Skip to content
M-RocchinottiPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

LENSview

Fast, native C++ image viewer with full RAW support, tone editing, and batch conversion.

Built with Qt 6 + libraw. No Python. No runtime. Pure executable.

Features · Screenshots · Install · Build · Usage Tutorial · Settings · Shortcuts · Troubleshooting


Features

  • RAW decoding via libraw — RW2, CR2, CR3, NEF, ARW, DNG, ORF, RAF, PEF, SRW, X3F, RWL, MRW, ERF.
  • Native formats — JPG, PNG, BMP, GIF, TIFF, WebP.
  • Tone editor — Exposure, Highlights, Whites, Contrast, Shadows. Live preview, non-destructive.
  • EXIF preserved when converting RAW → JPG (camera, lens, ISO, shutter, GPS).
  • Sequential numbered output — auto-increments filenames in copy folder so you never overwrite.
  • Batch auto-copy — point at folder, LENSview converts every image in order.
  • Three themes — Dark, Light, Black (OLED-friendly).
  • Session restore — remembers source folders, copy folder, last viewed image, edits.
  • Google Drive folder import — paste a public Drive link, app pulls images locally.
  • Thumbnail strip with async loading; pages of 14.
  • Multi-folder source — add many folders, sorted by EXIF capture time across all.
  • Hi-DPI aware, splash screen, custom Windows installer (NSIS).

Screenshots

Add screenshots to docs/screenshots/ and reference them here.

docs/screenshots/main.png
docs/screenshots/edit-panel.png
docs/screenshots/dark-theme.png

Install

Windows (prebuilt installer)

  1. Grab LENSview-Setup-1.0.0.exe from the Releases page.
  2. Run it. Next → Next → Install.
  3. Launch from Start menu.

No external runtime required — Qt DLLs are bundled.

Linux / macOS

No prebuilt binaries yet — see Build from source.


Build from source

Windows (Visual Studio 2022)

1. Prerequisites

Tool Where to get it
Visual Studio 2022 (Desktop C++ workload) https://visualstudio.microsoft.com/
CMake 3.25+ https://cmake.org/download/
Qt 6.6+ (MSVC 2019 64-bit) https://www.qt.io/download-open-source
vcpkg https://github.com/microsoft/vcpkg
NSIS 3.x (optional, installer only) https://nsis.sourceforge.io/

2. Install libraw via vcpkg

git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
C:\vcpkg\bootstrap-vcpkg.bat
C:\vcpkg\vcpkg install libraw:x64-windows

3. Clone this repo

git clone https://github.com/M-Rocchinotti/lensview.git
cd lensview

4. Configure

cmake -B build -G "Visual Studio 17 2022" -A x64 ^
  -DCMAKE_PREFIX_PATH="C:\Qt\6.6.0\msvc2019_64" ^
  -DCMAKE_TOOLCHAIN_FILE="C:\vcpkg\scripts\buildsystems\vcpkg.cmake"

Replace C:\Qt\6.6.0\msvc2019_64 with your actual Qt path.

5. Build

cmake --build build --config Release --parallel

Output: build\Release\LENSview.exe

6. Deploy Qt DLLs

cd build\Release
C:\Qt\6.6.0\msvc2019_64\bin\windeployqt --release LENSview.exe

7. Build the installer (optional)

xcopy /E /I build\Release installer\release
"C:\Program Files (x86)\NSIS\makensis.exe" installer\lensview_installer.nsi

Output: installer\LENSview-Setup-1.0.0.exe

One-shot build script

build.bat

Reads sensible defaults, configures, builds, deploys, packages.


Linux

sudo apt install -y \
    cmake ninja-build \
    qt6-base-dev qt6-concurrent-dev \
    libraw-dev

cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel

./build/LENSview

Or use the helper:

./build.sh

macOS

brew install cmake qt libraw

cmake -B build -G Ninja \
    -DCMAKE_PREFIX_PATH="$(brew --prefix qt)" \
    -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel

./build/LENSview.app/Contents/MacOS/LENSview

Usage Tutorial

Step 1 — Add a source folder

  1. Launch LENSview.
  2. Click + Add folder in the top bar.
  3. Pick a folder containing images / RAW files.
  4. App scans recursively; status bar shows progress.
  5. First image appears once scan completes.

You can add multiple source folders. All images are merged and sorted by EXIF capture time (falls back to file mtime).

Step 2 — Browse

Input Action
→ / ← Next / previous image
PgDn / PgUp Jump 14 images (one page)
Home First image
Click thumbnail in strip Jump to that image
Type page number in field, press Enter Jump to page

The strip shows 7 thumbnails on each side of the current frame. Thumbnails load async — no blocking.

Step 3 — Edit tone

  1. Click Edit to open the right-side panel.
  2. Drag sliders:
    • Exposure ±2 EV
    • Highlights ±100 (recover blown skies)
    • Whites ±100 (set white point)
    • Contrast ±100
    • Shadows ±100 (lift/crush blacks)
  3. Preview updates live.
  4. RAW images get smart defaults on first view (e.g. RW2: −0.20 exposure, +45 highlights, +8 shadows). Click Reset to restore them, Zero for flat zero.

Edits are stored per-image in the session JSON — close the app, reopen, edits persist.

Step 4 — Set a copy folder

  1. Click Copy folder in the top bar.
  2. Pick output dir.
  3. Press ↑ on any image → it's converted (with current edits) and saved as 0001.jpg, 0002.jpg, …

RAW files become JPG. Native formats can also be re-saved with edits applied (depending on settings).

Step 5 — Batch convert a whole folder

  1. Click Auto-copy in the menu.
  2. Pick a target folder.
  3. LENSview iterates every image in order and writes them all to the copy folder.
  4. Progress overlay shows count / current filename / %.

Stop at any time with Esc.

Step 6 — Import from Google Drive (optional)

  1. Open Settings → paste your Google API key (Drive API v3 enabled).
  2. Click Add Drive folder.
  3. Paste a public Google Drive folder link.
  4. App lists images, downloads to local cache, then treats it as a normal source folder.

Settings

Open via the gear icon. Persisted to %APPDATA%\LENSview\settings.json (Windows) / ~/.config/LENSview/ (Linux) / ~/Library/Application Support/LENSview/ (macOS).

Setting Description
Output format jpg or png for copied files
JPG quality 1–100 (default 92)
Convert native formats If on, JPGs get re-saved with edits; if off, native files copy untouched
Google API key Drive API v3 key for folder import
Drive folder link Default Drive folder shown in import dialog

Session file

Located alongside settings: session.json. Stores source folders, copy folder, current image path, per-image edits. Delete to fully reset.

Clear all data

Settings dialog → Clear all data wipes session + settings. App relaunches as fresh install.


Keyboard shortcuts

Key Action
→ Next image
← Previous image
↑ Copy current image to copy folder
PgDn Next page (14 images)
PgUp Previous page
Home First image
Esc Cancel running batch / close dialog
Ctrl+S Save current image as JPG
T Cycle theme (Dark → Light → Black)
E Toggle edit panel

Project structure

lensview/
├── CMakeLists.txt              # Build system
├── README.md
├── build.bat / build.sh        # Convenience build scripts
├── src/
│   ├── main.cpp                # Qt app entry, splash screen
│   ├── core.h                  # Constants, ToneEdits, ImageEntry, ThemeColors
│   ├── themes.cpp              # Dark / Light / Black palettes (#included by mainwindow)
│   ├── scanner.{h,cpp}         # Recursive folder scan, EXIF date, JSON cache
│   ├── imageprocessor.{h,cpp}  # libraw decode, tone curve, JPEG save w/ EXIF
│   ├── session.{h,cpp}         # Session persistence
│   ├── settingsdialog.{h,cpp}  # Settings UI
│   ├── drivedownloader.{h,cpp} # Google Drive API v3 image fetcher
│   └── mainwindow.{h,cpp}      # Main UI: strip, edit panel, progress overlay
├── resources/
│   ├── lensview.svg            # Vector logo
│   ├── lensview.ico            # Multi-size Windows icon
│   ├── splash.png              # Splash image
│   ├── lensview.rc.in          # Win32 version info template
│   └── resources.qrc           # Qt resource bundle
└── installer/
    └── lensview_installer.nsi  # NSIS Windows installer

Architecture notes

  • Scanning runs on a QThread worker (ScanWorker). UI stays responsive on huge folders.
  • Copy queue is serialized via mutex + queue → no race when user mashes ↑.
  • Thumbnails load lazily through QtConcurrent; cache is per-strip.
  • RAW pipeline: libraw demosaic → 16-bit RGB → tone curve (imageprocessor.cpp) → 8-bit → JPG with original EXIF copied via QExifImageHeader shim.
  • Theme switching is one signal — every widget pulls colors from ThemeColors struct in core.h.

Troubleshooting

libraw not found at CMake configure → Install via vcpkg (Windows) / apt (Linux) / brew (macOS). On Windows, also pass -DCMAKE_TOOLCHAIN_FILE=...vcpkg.cmake.

Qt6 not found → Set -DCMAKE_PREFIX_PATH=<your Qt install>/msvc2019_64 (Win) or install qt6-base-dev (Linux).

App opens but no images appear → Check status bar. Folder may be scanning. Or files have unsupported extension. RAW vendor extensions are handled — but only those listed in core.h::rawExts().

Drive import fails with 403 → Your API key isn't allowed for Drive API v3, or the folder isn't public. Enable Drive API in Google Cloud Console; share folder as "Anyone with link".

Edits look applied in preview but not in copied file → Confirm Settings → "Convert native formats" is on, or edit a RAW file (RAW always re-encodes through tone pipeline).

Black screen on launch (Windows) → Qt platform plugin missing. Run windeployqt LENSview.exe from your Qt bin/ directory.


Dependencies

Library License Purpose
Qt 6 LGPL 3 UI, image loading, concurrency, networking
libraw LGPL 2.1 RAW decoding

License

See LICENSE (add one if missing — MIT recommended).


Contributing

PRs welcome. Please:

  1. Match existing code style (4-space indent, K&R braces, Qt naming).
  2. Test on Windows + at least one of Linux/macOS where feasible.
  3. Don't break session JSON compatibility without a migration path.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages