Because many photo editing tools on the market require paid subscriptions, are filled with ads, or are limited to web interfaces that are painful to use on slow connections, I created this simple offline photo editor.
This is a feature-rich, web-based photo editor implemented using frontend technologies (HTML/CSS/JavaScript). It supports a variety of common image processing features, drawing tools, and batch processing.
Try it in your browser now! Easy-Photo-Editor
- Multiple Import Methods: Supports clicking to open files, Drag & Drop, and pasting from the clipboard (Ctrl+V).
- Image Saving: Edited results can be exported as PNG, JPEG, or WEBP formats.
- Direct Conversion: Batch convert image formats quickly without loading them onto the canvas.
- Zoom & Pan: Supports mouse wheel zooming, fit to screen, and drag panning.
- Shortcut Support: Use shortcuts like
Ctrl+Z(Undo),Ctrl+Y(Redo), andV(Select) to boost workflow efficiency.
- Pan/Select: Default tool to pan the canvas and hide attribute panels for a better view (press
V). - Crop: Custom crop area with support for dragging corners to resize, with an auto-apply feature and a confirm button (press
C). - Pen: Freehand drawing with adjustable brush size and color (press
P). - Eraser: Remove drawings or parts of the image with adjustable sizes (press
E). - Text: Add dynamic text objects. Supports loading local fonts, adjusting colors and sizes. Text can be flattened onto the canvas or deleted (press
T). - Shape Drawing:
- Rectangle: Supports outline and solid modes (press
Rto toggle). - Circle: Supports outline and solid modes (press
Oto toggle).
- Rectangle: Supports outline and solid modes (press
- Mosaic: Blur specified areas to protect privacy or create effects (press
M).
- Parameter Tweaks: Real-time adjustment of image Brightness, Contrast, and Saturation.
- Transformations:
- Rotate 90 degrees left/right.
- Flip horizontally/vertically.
- History: Comprehensive Undo / Redo mechanism to easily revert editing mistakes.
- When importing multiple images at once, the system automatically creates a batch processing list.
- You can adjust brightness, contrast, rotation, and export format on the first image, then click "Apply current edits and format and download". The system will automatically process and sequentially download all images in the list.
Packaged using Electron and @electron/packager.
- Node.js (Recommended version v18 or above)
- npm (Installed with Node.js)
-
Install Dependencies: Open a terminal in the project root directory and run the following command to install Electron and packaging tools:
npm install
-
Local Development Test (Optional, for development testing only):
npm start
-
Compile to .exe: Run the following command to start the build and packaging process:
npm run build
The build process may take a few minutes, please be patient.
-
Retrieve Compiled Files: After the build is complete, a
distfolder will be automatically generated in the project directory. Inside it, you will find a standalone executable (e.g.,Photo Editor Pro 1.0.0.exeor similar portable.exefile). This is a true single executable file; you can upload or share this specific file directly, and others can download and run it without needing any other folders or.dllfiles.
Tech Stack:
- HTML5 Canvas API
- Vanilla JavaScript (No external framework dependencies)
- Lucide Icons (Vector icons)
- Electron (Desktop application packaging)
因為市面上的圖片編輯軟體很多都需要要求使用者課金訂閱或是廣告一堆,不然就是受限於網頁介面,網路慢用起來就非常痛苦,於是我做了一個簡易的線下圖片編輯器。
這是一個功能豐富,基於前端技術(HTML/CSS/JavaScript)實作的網頁版圖片編輯器。它支援多種常見的影像處理功能、繪圖工具及批量處理。
試用網頁版! Easy-Photo-Editer
- 多種匯入方式:支援點擊開啟檔案、拖放圖片 (Drag & Drop) 以及從剪貼簿貼上 (Ctrl+V)。
- 影像儲存:可將編輯後的結果匯出為 PNG、JPEG 或 WEBP 格式。
- 直接轉檔:不需將圖片載入畫布,即可快速批次轉換圖片格式。
- 縮放與平移:支援滑鼠滾輪縮放、畫面適應 (Fit to screen) 及拖曳平移。
- 快捷鍵支援:支援使用如
Ctrl+Z(復原)、Ctrl+Y(重做)、V(選取) 等快捷鍵操作,提升工作效率。
- 平移/選取 (Pan/Select):預設工具,用於平移畫布,並會自動隱藏屬性面板以提供更大視野 (可按
V)。 - 裁切 (Crop):可自訂裁切範圍,並支援拖曳四角縮放、自動套用裁切與確定按鈕 (可按
C)。 - 畫筆 (Pen):自由繪圖,可調整筆刷粗細與顏色 (可按
P)。 - 橡皮擦 (Eraser):清除畫布上的繪圖或影像內容 (可按
E)。 - 文字 (Text):新增動態文字物件,支援載入本機字型、調整顏色與大小,並可選擇合併至畫布或刪除文字 (可按
T)。 - 形狀繪製:
- 矩形 (Rectangle):支援空心與實心模式 (可按
R切換)。 - 圓形 (Circle):支援空心與實心模式 (可按
O切換)。
- 矩形 (Rectangle):支援空心與實心模式 (可按
- 馬賽克 (Mosaic):模糊化指定區域,保護隱私或製作特效 (可按
M)。
- 參數微調:可即時調整影像的亮度 (Brightness)、對比度 (Contrast) 與飽和度 (Saturation)。
- 變形處理:
- 向左/向右旋轉 90 度。
- 水平翻轉 / 垂直翻轉。
- 歷史紀錄: Undo / Redo 機制,隨時還原編輯錯誤。
- 當一次匯入多張圖片時,系統會自動建立批量處理清單。
- 您可以先在第一張圖片上調整好亮度、對比度、旋轉、匯出格式等設定,接著按下「套用現有編輯與格式並下載」,系統會自動處理清單中的所有圖片並依序下載。
使用 Electron 搭配 @electron/packager 進行封裝。
- Node.js (建議版本 v18 或以上)
- npm (隨 Node.js 安裝)
-
安裝依賴套件: 在專案根目錄中開啟終端機,執行以下指令安裝 Electron 與打包工具:
npm install
-
本地開發測試 (非必要,僅供開發階段測試):
npm start
-
編譯為 .exe 執行檔: 執行以下指令開始編譯封裝程序:
npm run build
編譯過程可能需要幾分鐘的時間,請耐心等候。
-
取得編譯完成的檔案: 編譯完成後,專案目錄中會自動生成一個
dist資料夾。在裡面您可以找到一個獨立的免安裝執行檔 (例如Photo Editor Pro 1.0.0.exe)。這是一個真正的單一執行檔,您可以直接上傳或分享這個檔案,其他人下載後點擊即可直接使用,不需附帶任何其他資料夾或.dll檔案。
技術棧:
- HTML5 Canvas API
- Vanilla JavaScript (無依賴外部框架)
- Lucide Icons (向量圖示)
- Electron (桌面應用程式封裝)
This project is licensed under the MIT License.