Equbuxu / BrailleBooks

A tool to convert any image into Minecraft written book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion -- Adding hex codes, issues with line spacing

doak-m opened this issue · comments

Since books can now support hex colour formats, I believe it's possible to implement this into the program to produce colours more accurate to the image given.

I've also encountered a problem where my images on the book would be stretched vertically, I believe this is due to how line spacing on the Minecraft books creates more vertical space.

Perhaps there could be an optional switch to compensate for this stretch?
Deforming the source image in the program could fix the issue, however this would decrease the image quality especially for stuff like pixel art where the image is to-scale to begin with,
or parts of the image can be 'erased' according to where the line spaces occur, which would conserve quality at the loss of parts of the image being erased.

Hopefully you're still working on this project, I've found this really useful as the only tool capable of bringing images to Minecraft books!

I haven't touched this project in a loong time, but maybe I will update in the future if I find some free time and motivation. I haven't heard that they added hex color support, but it sounds great. As for the stretch, you are right about the code not accounting for gaps between lines in any way. The two options you mentioned (stretching the image and skipping lines) are probably the only viable ways to go about it. You can already do both by pre-processing the image yourself You'd do that by either by "squishing" (resizing) the image vertically before you pass it to the app, or by keeping the first 4 rows of pixels, then deleting 2-3 rows, then keeping another 4, then deleting, ... , and finally moving all of he kept strips together to produce a "squished" image). It's definitely very annoying to do though