leafview
leafview copied to clipboard
Minimalist image viewer based on Leaflet.js and Electron.
LeafView
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.
- Create
{your_LANG}.json
insrc/locales
.
src
├── @types
├── createMenu.ts
├── locales
+ │ ├── cs.json
│ ├── en.json
│ └── ja.json
├── main.ts
├── preload.ts
├── setLocales.ts
└── web
- 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 },
},
});
};
- And then please send a pull request to this repository.
:tada: Contributors
Special Thanks to:
- @BackSpace54 #312
- @vedantmgoyal2009 #308, #311
- @Levminer #305
- @SuhaibAtef #274
- @mwoz123 #260, #261
- @ArcherGu #235
- @guaycuru #228, #232
- @kitt3911 #215
- @nukeop #214
- @singuerinc #178
- @DrDeee #166
- @PetrTodorov #68
:copyright: Copyright
Copyright (c) 2020 sprout2000 and other contributors