Skip to main content

PySimpleGUI demo tool and utility to resize your images and encode them to Bas64 format.

Project description

Python GUIs for Humans

psgresizer

A PySimpleGUI Application

Convert between formats, resize, and Base64 encode your images quickly and easily with this GUI application. Resizes and encodes to Base64 so that the result can be pasted into your PySimpleGUI program for easy distribution of your applications without the need to distribute image files.

image

Installation

Old-school Straight Pip

pip install psgresizer

pip via python -m pip the python recommended way

If python is your command

python -m pip install psgresizer

If python3 is your command

python3 -m pip install psgresizer

Usage

Open a command window and type:

psgresizer

Create a Shortcut To This Program

If you're a Windows user, then use the psgshortcut application to make a shortcut to this program so that you can then put on your desktop or pin to your taskbar (or any other use that stops the need to type psgresizer ever again).

To get psgshortcut, like all of the other psg application projects, pip install it. (e.g. pip install psgshortcut)

To do this, follow these steps:

  1. Open a command window (I promise, it's the last time you'll need to for this program)
  2. Type - where psgresizer
  3. Copy the line that where psgresizer gave you into the first input of the shortcut maker program
  4. Run psgresizer by typing psgresizer in your command window
  5. Right click and choose "File Location"
  6. Copy the file location results, but change the extension from .py to .ico and paste into the Icon file input of the shortcut maker
  7. Click "Create Shortcut"

This will create a shortcut in the same folder as the target file. You can safely move this shortcut file to any place you want (like to your desktop). Double-click the shortcut and your program should launch.

Release Notes

1.6.0 12-July-2022

  • Fixed output filename to match the size indicated under the filename.

1.5.4 10-May-2022

  • Had to mess around with the entry point due to setuptools

1.5.0 10-May-2022

  • Moved icon to bottom of file and called set_global_icon so all windows in this application (including popups) will use this icon

1.4.0 16-Nov-2021

  • Explicitly set the settings filename. I'm still learning about these PyPI .EXE releases. Need to be explicit rather than default

1.3.1 16-Nov-2021

  • Added correct readme to PyPI Release

1.3.0 16-Nov-2021

  • Finally getting around to adding release notes
  • Added conversion feature
  • Added version number
  • Added live links to this repo and the PySimpleGUI project at the bottom of the window

License

Licensed under an LGPL3 License
Copyright 2021

This PySimpleGUI Application Was Designed and Written By

The PySimpleGUI Project

This program originated from the PySimpleGUI Demo Programs. You'll find it here: Demo_Image_Resize_and_Base64_Encode.pyw

Mike from PySimpleGUI.org

Contributing

Like the PySimpleGUI project, this project is currently licensed under an open-source license, the project itself is structured like a proprietary product. Pull Requests are not accepted.

Copyright

Copyright 2021, 2022 PySimpleGUI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psgresizer-1.8.0.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psgresizer-1.8.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file psgresizer-1.8.0.tar.gz.

File metadata

  • Download URL: psgresizer-1.8.0.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for psgresizer-1.8.0.tar.gz
Algorithm Hash digest
SHA256 10b589b39f600358bdeeac1c0c73a62ae8e92e215760458a81e16383d9734d60
MD5 80cda6556950e7015272fd659ff345fb
BLAKE2b-256 ca9f462a92318f3f8754b012d5db5856d2dc74b60a33436098f97f0d477e693a

See more details on using hashes here.

File details

Details for the file psgresizer-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: psgresizer-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for psgresizer-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c172878ff9f496c2631eb8675727fd7cabd6698a1f146513e27c2ab118d266bd
MD5 ecf4bf24ffa7c280a119b10c7765d1fc
BLAKE2b-256 6c181bc2e2b10924980a8d0ef1dcc7a1ba991031b9de6b1c5dbcdd921396b1f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page