DOWNLOAD: https://github.com/profmitchell/png2hdri/releases/tag/1.0
![Screenshot 2025-01-25 at 11 35 42 PM](https://private-user-images.githubusercontent.com/122713703/406705963-ffd56373-f66b-4a98-9acc-69eb37470b65.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjQzNDMsIm5iZiI6MTczOTI2NDA0MywicGF0aCI6Ii8xMjI3MTM3MDMvNDA2NzA1OTYzLWZmZDU2MzczLWY2NmItNGE5OC05YWNjLTY5ZWIzNzQ3MGI2NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwODU0MDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MTAyN2QyMmNmMmYyZGI0Zjk3ODNiYjNkYjgzMGJkZDYzOTY3MGExMzdiOTM0NTExMWU1OWVhNDkwZDM1ZDg3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.YJsbrMvlt2y_B1kdsbTy2R1wpRaVZ5gGs0sTAJ3Xlh8)
![](https://private-user-images.githubusercontent.com/122713703/406706145-ac45b5bb-ebe2-4221-8c2d-4cb15ecdd4b5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjQzNDMsIm5iZiI6MTczOTI2NDA0MywicGF0aCI6Ii8xMjI3MTM3MDMvNDA2NzA2MTQ1LWFjNDViNWJiLWViZTItNDIyMS04YzJkLTRjYjE1ZWNkZDRiNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwODU0MDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNGYyMWRmZTUzMjFmYTViNjgzOGFhNjIyZjVkNWU4ZTlmZjBhNjdiNTUzZDA3NTQwYWRlZjZjYjA3M2M1NmYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.vywR1wsW4vpK8QBXBGfc4G4Vgoa3h7VY8mGbGjxgfUk)
This repository provides two Python applications to convert PNG images into HDR format with optional upscaling. Both a Tkinter GUI version and a Streamlit modern web-based version are included for flexibility and ease of use.
- Convert PNG to HDR: Save HDR files directly to your Desktop.
- Batch Processing: Select multiple PNG files for conversion.
- Upscaling Options: Enable optional upscaling with predefined factors (
0.5x
,1x
,1.5x
,2x
, etc.). - Tkinter GUI:
- Robust, compact UI with a checkbox and dropdown for upscaling.
- Help button with instructions and credits.
- Streamlit Version:
- Modern and minimalistic web-based UI.
- Streamlined workflow for selecting files and options.
- Python 3.8+
- Required Python libraries:
pip install opencv-python pillow streamlit
png_to_hdr_tkinter.py
: Tkinter-based GUI version.png_to_hdr_streamlit.py
: Streamlit-based modern version.
To add a custom icon to the Tkinter application, ensure the icon file (icon.png
) is located at:
/Users/mitchellcohen/Desktop/icon.png
- Run the application:
python png_to_hdr_tkinter.py
- Use the GUI to select options and files.
To package the Tkinter version as a standalone executable:
pyinstaller --onefile --windowed --icon=/Users/mitchellcohen/Desktop/icon.png png_to_hdr_tkinter.py
The packaged file will be in the dist/
folder.
- Run the application:
streamlit run png_to_hdr_streamlit.py
- Open the provided localhost link in your browser.
To package the Streamlit version as a standalone executable:
pyinstaller --onefile png_to_hdr_streamlit.py
- Upscaling Options: Enable upscaling with a checkbox and select the scale factor (
0.5x
,1x
,1.5x
, etc.) using a dropdown menu. - Help Button: Displays instructions and credits.
- File Selection: Use the "Select PNG Files" button to choose files.
- Batch Processing: Select multiple files at once for conversion.
- Drag and Drop: Upload PNG files via the drag-and-drop interface.
- Upscaling Options: Enable upscaling with a checkbox and select the scale factor.
- Modern Design: Minimal and responsive web-based interface.
Developed by Mitchell Cohen Newton, MA, 2025
Visit: www.mitchellcohen.net
This project is licensed under the MIT License. See the LICENSE file for details.