Skip to content

blyamur/Feodora

Repository files navigation

Feodora

Feodora - Script for resaving images with GUI V3 (python 3 and tkinter)

Феодора - Скрипт для пересохранения изображений с графическим интерфейсом (python 3 и tkinter)

Light screenshot

Version 3.1 (current):

A small development of the script / program, which was laid out earlier.

Simple to use. We turned on the options we needed, pressed the image selection button, selected all those images that need to be saved and are waiting for the end of the work. The finished images are in the same place as the originals.

Пользоваться просто. Включили нужные нам опции, нажали кнопку выбора изображений, выбрали все те изображения, которые необходимо пересохранить и ждем окончания работы. Готовые изображения там же, где и оригиналы.

Light screenshot

The first photo is the original, then the photo after resaving with compression, the photo with compression and enhancement, and in the last version, only the enhancement option is enabled. The first two results are smaller than the original, somewhere much smaller, somewhere the difference is almost imperceptible. Visually, there is practically no difference between the original and the saved versions.

Первое фото-оригинал, далее фотография после пересохранения с сжатием, фотография с сжатием и улучшением и в последнем варианте включена только опция улучшения. Первые два результата имеют размер меньше оригинала, где-то существенно меньше, где-то разница практически незаметна. Визуально практически не видно разницы между оригиналом и сохраненными вариантами.

Light screenshot

In the latter case, the file size even increased by an order of magnitude, this is due to the fact that the amount of information in the image itself increased after increasing the contrast and sharpness. This enhancement parameter, like the compression parameter, can be changed as needed in the script (line 143 and line 179).

В последнем случае размер файла даже вырос на порядок, это связано с тем, что увеличилось количество информации в самом изображении после повышения контрастности и резкости. Этот параметр улучшения, как и параметр сжатия, при необходимости можно изменить в скрипте (строка 143 и строка 179).

Inside, the following process takes place: the program makes a copy of the file, while saving it in .bmp, then opens only the created .bmp file and simply renames it to the format that was previously.

Внутри происходит следующий процесс: программа делает копию файла, при этом сохраняя его в .bmp, затем открывает только созданный .bmp файл и просто переименовывает в тот формат, который был ранее.

You can make your own version of the application by taking a script with the source code from Github python (it was written for Python 3.8), the necessary sources of the icon in the .PNG format and the finished icon file in the .ICO format. All this can be edited, removed or added to its functionality and, if desired, through pyinstaller, compile into one file, after unpacking all the contents of the archive into one folder (for example, Feodora_(lang)).

Вы можете сделать свой вариант приложения, взяв с Github python скрипт с исходным кодом (писалось под версию Python 3.8), необходимые исходники иконки в формате .PNG и готовый файл иконки в формате .ICO. Все это можно отредактировать, что-то убрать или дописать свой функционал и при желании через pyinstaller собрать в один файл, предварительно распаковав все содержимое архива в одну папку (например Feodora_(язык)).

For convenience, two versions have been made:

Для удобства сделаны две версии:

Feodora_en.py - English version | Feodora_ru.py - Русская версия

You need to download the version of the script you need, the icon, the theme file and the folder with the theme design. Then it only remains to run the script on the PC if you have Python 3 installed or build it into an executable file through pyinstaller. For example, for windows, the assembly command for me looked like this:

Необходимо скачать нужную вам версию скрипта, иконку, файл темы и папку с оформлением темы. Далее останется только запустить скрипт на пк, если у вас установлен Python 3 или через pyinstaller собрать в исполняемый файл. Например для windows команда на сборку у меня выглядела так:

pyinstaller Feodora_ru.py --noconsole --onefile --icon=icon.ico

Или вы можете воспользоваться графическим интерфейсом для Pyinstaller GUI-Pyinstaller-Pichuga

What's new in version 3.1 | Что нового в версии 3.1

  • New visual design based on TTK theme Spring-Noon
  • Animation when enabling / disabling options
  • Ability to enable replacement of original images with resaved ones
  • Ability to enable Image Compression
  • Ability to enable Image Enhancement
  • Multi-selection, the ability to process multiple images at once
  • Check for updates

Что нового в версии 3.1

  • Новое визуальное оформление на базе TTK темы Spring-Noon
  • Анимация при включении \ отключении опций
  • Возможность включить замену оригиналов изображений, пересохраненными
  • Возможность включить Сжатие изображений
  • Возможность включить Сжатие изображений
  • Возможность включить Улучшение изображений
  • Мультивыбор,возможность обработки сразу нескольких изображений
  • Проверка наличия обновлений

Copyrights and Licenses

Not for commercial use.

© 2022

Special thanks

Отдельная благодарность

rdbende and his ttk Theme Sun-Valley-ttk-theme, based on which the current Theme was made.

Did you find this useful?! | Вы нашли это полезным ?!

Happy to hear that :) If You want to help me, you can buy me a cup of coffee ☕ ( yoomoney or ko-fi, boosty.to )

Рад это слышать :) Если вы хотите мне помочь, вы можете угостить меня чашечкой кофе

Thanks for reading 😻

Спасибо за чтение!

~Mons

About

Script for resaving images with GUI V3 (python 3 and tkinter)

Topics

Resources

Stars

Watchers

Forks