reasons not to use
reasons to use
Miao Image can be used in multiple ways. This guide will show you how to use Miao Image through the command line interface.
Make sure you have either the miao.pyw
file or the miao.exe
file. If you dont have it, you can download it from the releases page
This documentaion will cover using the exe for examples, but you can replace miao.exe
with python miao.pyw
for the same results with the python file
Miao Image supports most common image formats to convert into a Miao file. It is recommended to use small dimension images for quicker conversion, quicker loading and smaller file size.
miao.exe convert <input.png> <output.miao>
Alternatively you can use one parameter. The output file will be located in the working directory with the same file name but with the .miao
file extension
miao.exe <input.png>
Miao Image can convert a miao file back into an image. The larger the image, the longer it will take to convert.
miao.exe png <input.miao> <output.png>
Alternatively you can use two parameters to convert. The output file will be located in the working directory with the same name but with the .png
extension
miao.exe png <input.miao>
Miao Image convert the miao file back into an image to display though a gui window. The larger the image, the longer it will take to display.
miao.exe display <input.miao>
Miao Image can also display the miao file through one parameter. If the given file path is a miao file it will display it.
miao.exe <input.miao>
Miao Image can spit out the hex data of the miao file.
miao.exe spit <input.miao>
You can use the demo command to see a demo of Miao Image.
miao.exe demo
Miao Image can be used in multiple ways. This guide will show you how to use Miao Image through the exe file.
Make sure you have the miao.exe
file. If you dont have it, you can download it from the releases page
Drag and drop an image file onto the miao.exe
file to convert it into a Miao file. The output file will be located in the working directory with the same name as the input file but with the .miao
extension.
Drag and drop a Miao file onto the miao.exe
file to display it as an image. The larger the image, the longer it will take to display.
Alternatively, you can use the installer to install Miao Image on your system. The installer will create a shortcut on your desktop and in the start menu for easy access.
Miao Image is built using PyInstaller. The following steps will show you how to build Miao Image from source.
First you need to install the required packages. You can do this by running the following command in the terminal.
pip install -r requirements.txt
Make sure to install pyinstaller and install auto-py-to-exe if you want to use GUI to build the exe.
pip install pyinstaller auto-py-to-exe
Run the following command to build Miao Image using PyInstaller.
pyinstaller --noconfirm --onefile --windowed --icon "miao.ico" --name "Miao Image" --version-file "version.rc" --add-data "demo.miao;." --add-data "help.miao;." --add-data "miao.ico;." "miao.pyw"
Open auto-py-to-exe and import the build.json
file under Settings. Then click on the Convert .py to .exe
button to build the exe.
auto-py-to-exe
Miao Image is a file type that stores images in miao format.
First of all miao image stores each hex value of each pixel in the image. The data is then compressed with zlib.
When displaying an image, the data is decompressed and built back into a temporary image so that the gui window can display the file.
Miao image is not at all designed to save space or be efficient. It is designed to be funny and a meme. It is not recommended to use this file type for any serious work.
What to do if you are using a different operating system.
Python is a cross-platform language, so the code should work on any operating system. You will need pip installed. Then you can install the required packages by running pip install -r requirements.txt
.
For MacOS and Linux I recommend using the Python source instead. But if you wish you should use wine to run the exe. For MacOS you can use winebottler. The exe will run significantly slower than the Python source and the exe on Windows.
This has been a very fun project to work on. Its taught me how to maintain and publish a project.