* Seamless foreground/background switching
* Background Defocus
* RAM usage of many operations reduced by 60%
* Image Preview in File Open dialog
* Copy Foreground to clipboard
-
Linux Appimage: Download, make executable and run
-
Ubuntu .deb Installer: Download and install using apt or gdebi
-
Windows Installer: Download and install, tested on Windows11
All releases can be found onthe release page ( expand the Asset sections )
PhotoGlimmer is an image editing application that leverages Artificial Intelligence tools to separate people in the image from the background, and allows you to tweak the two separately.
Therefore, you can brighten all the people in an image while darkening or softening the background, or vice versa.
It can handle large images and does not require a GPU. It's a totally local and offline graphical application, primarily for Linux Desktops.
It has evolved from something I had originally written to improve a number of photographs in my own collection. As an avid photographer I had countless photos of family , travels,landscapes and even indoor parties where the background was stunning but the people in foreground were underlit and looked dim in comparison. I could see that a better illumination of faces would do a world of good to the photo, yet was not too keen on painstakingly selecting shapes on GIMP. This app uses Mediapipe and Opencv and improves lighting on people with a couple of gentle nudges to 2-3 sliders.
In short, if you are an AI enthusiast photographer, it is the user-friendly segmentation tool you have been thinking of developing yourself for last few years :-) Though it's perfectly useful for an everyday common user like me.
Beware- Unlike a phone app, PhotoGlimmer gives you full control of the segmentation and illumination process and it's easy to go overboard. But as you will see, it does the work in more than 95% of cases. The only caveat is that the image should not be too cluttered to segregate foreground(people) form the background.
Photo Credit: Flickr cc
Photo Credit: Flickr cc
-
Smart people identification: PhotoGlimmer's intelligent algorithms demarks people and background in an image
-
No need of manual masking
-
** Foreground/People/Face Lighting**:
-
** Background Illumination/Darkening **
-
** Background Defocus (Blur) **
-
**Seamless toggle between background and foreground **
-
Background Preservation: Say goodbye to painstaking masking and cropping. A few nudges at the sliders ensure that your enhanced foreground blend seamlessly with the original background.
-
**Lean and Intuitive Interface - just some sliders **:
-
GPU Not Required:
-
Large Image Sizes: PhotoGlimmer can handle large image dimensions like 6000x4000 megapixels (10-15 MBs)
-
Local Processing: Resides completely on your computer.
-
Self contained: Installation does not mess with system's python setup.
-
Privacy: Local processing.Therefore no data is sent to any servers.
-
Retains Exif Data
The packaged/Installable version of PhotoGlimmer includes all its dependencies and the user does NOT need to install anything other than Python 3.8+
So, if you are using the .deb or .AppImage version, you need to have only Python version 3.8 or above
- Python 3.8+
- Qt 5 5.12+
- Python Packages:
- opencv-contrib-python~=4.8
- PySide2~=5.15
- mediapipe~=0.10
- numpy~=1.19
- pyqtdarktheme ~=2.1.0
- splines ~= 0.3.0
- Ubuntu 20.04,22.04
- Fedora Linux 35 (VM, 4 GB RAM)
- Windows11
Note
Binary installers are at the top of this page (V0.3 Binaries)[https://github.com/codecliff/PhotoGlimmer/edit/0_3/README.md#-download-version-03-binaries-] All Binary Release Assets.
- Just download the Appimage file and execute.
- You don't need to install anything, appimages have everything and the kitchen sink bundled in.
- This method gives you the better integration with OS. You can just right-click on images and open them in PhotoGlimmer
- All requirements are bundled in the installer itself. You don't need to install any requirements
- Installing through this .deb file does not pollute your system environment. Photoglimmer and all its required software is contained in its own bundle and do not interfere with versions of stuff already installed on the system
Follow these steps to install dependencies and run PhotoGlimmer :
- Create a python environment with python 3.8/3.9
- Activate this environment
- Install requirements as above
- Then-
git clone https://github.com/codecliff/PhotoGlimmer.git
cd PhotoGlimmer
python photoglimmer/
ORpython photoglimmer/photoglimmer_ui.py
-
All editing is done with the help of 3 or 4 sliders
-
Hover over each element to know what that element does
-
Result image is previewed on the right, while the current selection mask appears as a small black and white image on left.
-
Main Sliders:
- Brightness and saturation of selected area can be tweaked with the relevant slider
- Selection can be grown or shrunk by using the
Threshold
slider - **The
Edge Blur
slider blends the edited portion smoothly with background
- Open an image in PhotoGlimmer
- Slide the brightness slider a bit. Apart form showing your edited image, now the application will also show the current section mask
- You might need to grow or shrink the selection with
Threshold
slider - If the edits start looking patchy , increase the
Edge Blur
. This will make the edited portion blend seamlessly with its background - Press mouse button on the image to compare edit with original image
- When satisfied , Save the edited Image.
- Note- on
save
, the processing might take significantly longer than previous edits.This is because previous edits were being made on a scaled-down version of the image.
As of now, the the application discards the EXIF data of the image. (Implemented in V 0.3.0)You cannot simultaneously edit both background and foreground in one session. (Implemented in V 0.3.0)- No Preference Dialog
- Reset messes up image display height
- Issue Tracker is here: Issues
- Mediapipe
- Opencv
- PyQtDarkTheme
- PyExif
- StackOverflow contributors (links in source code)
This Software is released under the LGPL-2.1 License
░░░░░░░░░░░░░░░ © Rahul Singh ░░░░░░░░░░░░░░░