Coder Social home page Coder Social logo

alf-arv / bmp-transformer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 615 KB

Transform (virtually) any modern picture to an old-school system compatible 3-layer bitmap image with bit depth 24! 🌆

License: The Unlicense

Python 99.36% Makefile 0.64%
file-converter image-processing legacy-application

bmp-transformer's Introduction

BMP Transformer

This is a small project made without fee on request from an industrial knitting factory in Sweden, which feeds its (old) machines with images containing patterns to knit. Compatibility errors due to the images' bit depth, transparency layer or file format were frequently encountered, which is why they asked me for a small application that converts to the correct file format, and allows resizing and stretching.

Feel free to take inspiration from, modify or improve this small project to your liking without notice to me as long as it is in accordance with the licenses of Pillow and PySimpleGUI.

Usage

  1. Start main.py
  2. Choose file with the button 'Choose file...'
  3. Check 'Use original dimensions' to do so, otherwise specify new dimensions using the available inputs. Rescaling can be done by inputting a float value in the scale input.
  4. Press 'Transform'
  5. The transformed picture is outputted in alongside the original with the ending _tr

This application takes all common file formats (jpeg, png, tif, jp2 and bmp among others) and outputs a 3 layer bitmap image with bit depth 24.

Screenshot

Screenshot of main window

Credits:

The Python Imaging Library (PIL) is

Copyright © 1997-2011 by Secret Labs AB
Copyright © 1995-2011 by Fredrik Lundh

Pillow is the friendly PIL fork. It is

Copyright © 2010-2020 by Alex Clark and contributors

The full Python-Pillow license can be found here.

bmp-transformer's People

Contributors

alf-arv avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.