xdrx
v1.1.0
Published
A custom image file format where each pixel is represented by a hex color value.
Readme
xdrx
NOTE FROM DEV: This is the only occasion ever where I will use electron, in my opinion electron is hot trash because it takes up lots of memory, but for occasions like this, it is very useful. Also, this project was inspired by facedev's bruh image file type.
Overview
xdrx is a custom image file format where each pixel is represented by a hex color value, with each new line of pixels starting on a new line. It allows you to convert images to the .xdrx format and view them in a draggable window.
Installation
Install xdrx globally using npm:
npm install -g xdrxOr with Yarn:
yarn global add xdrxOr with pnpm:
pnpm add -g xdrxUsage
Converting an Image to .xdrx Format:
To convert an image to the .xdrx format, you must specify the input file first, followed by the desired output file name:
xdrx convert path/to/input-image.png output-fileThis command will convert input-image.png to output-file.xdrx. Make sure to provide the correct path to the input image and specify the name of the output .xdrx file.
Viewing an .xdrx File:
To view an .xdrx file, specify the file name directly:
xdrx view path/to/image.xdrxThis will open a new draggable window displaying the image from the .xdrx file.
Contributing
To contribute:
- Fork the repo.
- Create a new branch.
- Make your changes.
- Push to your fork.
- Create a Pull Request.
License
xdrx is licensed under the ISC License.
Contact
For questions or issues, open an issue on the GitHub repo.
