leafview icon indicating copy to clipboard operation
leafview copied to clipboard

Minimalist image viewer based on Leaflet.js and Electron.

leaves LeafView

GitHub CI GitHub Release Date GitHub all releases GitHub contributors GitHub stars GitHub license

A minimalist image viewer based on Leaflet.js and Electron.

Image by Myriams-Fotos from Pixabay.

:thumbsup: Features

  • Pan & Wheel Zoom
  • Browse the images in a folder
  • Auto Update

:inbox_tray: Download

You can download the latest version of LeafView from the releases page here: https://github.com/sprout2000/leafview/releases

:green_book: Usage

:keyboard: Keyboard Shortcuts

Key Function
J or CmdOrCtrl+ Next Image
K or CmdOrCtrl+ Previous Image
+ Zoom In
- Zoom Out
0 Reset Zoom
Pan
Fn+Delete or Del Move to Trash

:computer_mouse: Mouse Operations

Mouse Function
Drag Pan
Wheel Zoom in/out
Double click Reset zoom
Right click Show the context menu when available

:globe_with_meridians: Supported Languages

Language Code Language Code Language Code
اللغة العربية ar Français fr Русский ru
Čeština cs Magyar hu 简体中文 zh_CN
Deutsch de 日本語 ja 繁体中文 zh_TW
English en Polski pl
Español es Português pt

:scroll: Contributing

You can easily contribute to this repository by providing translation files.

  1. Create {your_LANG}.json in src/locales.
  src
  ├── @types
  ├── createMenu.ts
  ├── locales
+ │   ├── cs.json
  │   ├── en.json
  │   └── ja.json
  ├── main.ts
  ├── preload.ts
  ├── setLocales.ts
  └── web
  1. Import the locale into src/setLocales.ts as follows:
  import en from './locales/en.json';
  import ja from './locales/ja.json';
+ import cs from './locales/cs.json';

  export const setLocales = (locale: string): void => {
    i18next.init({
      lng: locale,
      fallbackLng: 'en',
      resources: {
        en: { translation: en },
        ja: { translation: ja },
+       cs: { translation: cs },
      },
    });
  };
  1. And then please send a pull request to this repository.

:tada: Contributors

Special Thanks to:

:copyright: Copyright

Copyright (c) 2020 sprout2000 and other contributors