Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail Formats Option Ported from PrusaSlicer and add BIQU/BTT format #2405

Merged
merged 7 commits into from
Oct 17, 2023

Conversation

Ocraftyone
Copy link
Contributor

@Ocraftyone Ocraftyone commented Oct 13, 2023

First major change is adding the option for thumbnail format under the thumbnail size option. The options ported from PrusaSlicer are PNJ, PJG, and QOI.
Second major change is the addition of the BIQU, or BigTreeTech, image format that is used on their TFTs. Doing this also required a small change to the GCodeProcessor.post_process method that passes through the existing end of line characters

fixes #1894

@discip
Copy link
Contributor

discip commented Oct 13, 2023

@sarvenn
@effgarces
Just letting you know that this is finally getting implemented!

THANK YOU! @Ocraftyone

@SoftFever
Copy link
Owner

@Ocraftyone I renamed BIQU to BTT_TFT for better clarity in 6edf66e

Let me know whether the changes look good for you

@Ocraftyone
Copy link
Contributor Author

Ocraftyone commented Oct 16, 2023

@SoftFever looks great! actually, I'm going to change the dropdown option to remove the underscore

Ocraftyone and others added 6 commits October 16, 2023 12:22
use \r\n for new lines in the biqu thumbnail portion. the firmware requires these end characters to function properly.
update names of variables and add comments to be more descriptive
replace modified Qt pixel algorithm with much simpler algorithm from BTT TFT firmware
@Ocraftyone
Copy link
Contributor Author

ok. i made the change. just changed the drop down option to remove the underscore between BTT and TFT

@Ocraftyone
Copy link
Contributor Author

just checked and everything else seems to be working as expected 👍

@SoftFever
Copy link
Owner

Thank you 👍

@SoftFever SoftFever merged commit 4d14ee1 into SoftFever:main Oct 17, 2023
@Ocraftyone Ocraftyone deleted the patch-thumbnail-options branch October 17, 2023 17:12
@discip
Copy link
Contributor

discip commented Oct 17, 2023

@Ocraftyone
First of all: Thank you for getting this finally done!

Unfortunately, I noticed that the thumbnails generated with the method you implemented leaves the objects outline jagged (as if the transparency was missing).

Do you know what could be causing this?

Here is a screenshot of a side by side comparison.

on the left: your implementation
on the right: the python scripts output

image

Here are the corresponding code-blocks:

your implementation

;00460046
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021045acb5acb7bcfb5b639c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007bcfef5def5dd69ace59d6bad69aad75ef5d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039c7defba514defbdefbef7ddefbd6bae71cef5d6b4d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073aeef5ddefbbdf7ef7def7def7dd6baef5de71cc638000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef5ddedbef5ddedbef7def7def7def7de71cdedbd6ba841000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007befef7dd6baef5def7def7def7def7def7ddefbef7ddefbad7539e70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef5def7de73cdedbef5def7def7def7def7df79edefbef5dad75ad550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000002104f79eef7def5dd69ae71cef7def7def7def7def7de73cef5db596c6389cd3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000008430f79ef79eef5ddefbce79ef5def7def7def7def7def7def5dce59ad75c61818c300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef7df79ef79eef7de71cce79e71cef7def7def7de71cd6baef5dd69ab5b6ad75ad7539c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000007bef9cd3dedbf79ef79ee73cd6bace59ef5d42280000000000005acbdedbb5b6b596ad75d6bab596000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000bdd7b596a534f7bef79eef5ddedbbdd7e71c5acb00000000000052aadefbbdd7b5b6b596c638ef5def5d39c700000000000000000000000018e3000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000d6babdf7e73cffdfffdff79ee71cce59bdf7ef5d0000000000002104ef5dbdd7bdd7b5b6bdd7e73cdefbd6ba94b2632c7befa5349cf36b4d6b4d6b4d00000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000052aaef5dfffffffff7beef5ddedbb596d6ba5acb000000000000ef5dc618ad55ad559cf38c718c718c718c71b5967bef52aa8c718c717bef210400000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002965d69afffff79ee71cce59b5b6ef5d000000000000ef5dce79b596a5148c718c71bdd794b28c719cf3c63894b26b4d31a60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009cf3ef5ddedbbdd7dedb5acb00000000b5b6d69abdf7bdf7bdd7ad558c716b4d4a6931a600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a49ce59c618ef5d18e300005acbdedbbdf7bdf7bdf7bdd7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002945d6bace795acb31a6ef5dbdf7bdf7ce79c61852aa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018e3ef5dc638d6baef5dbdf7bdf7d6bab596d69a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008410defbbdf7ef5dc638c618c638c618949200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef5dce59defbb596ad55a5149cf373ae00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005aeba534632c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
; bigtree thumbnail end

python script:

;00460046
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018e318e35acb94929492a514ce7973ae0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018e3a514ef5def5dd69ace59d6bad69aad75ef5d18e3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073aedefba514defbdefbef7ddefbd6bae71cef5d9492000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018c39cf3ef5ddefbbdf7ef7def7def7dd6baef5de71cc638294500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039c7ef5ddedbef5ddedbef7def7def7def7de71cdedbd6ba94b200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ad55ef7dd6baef5def7def7def7def7def7ddefbef7ddefbad75632c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000018e3ef5def7de73cdedbef5def7def7def7def7df79edefbef5dad75ad552945000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000052aaf79eef7def5dd69ae71cef7def7def7def7def7de73cef5db596c638ad7539c700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000b596f79ef79eef5ddefbce79ef5def7def7def7def7def7def5dce59ad75c618420800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000039c7ef7df79ef79eef7de71cce79e71cef7def7def7de71cd6baef5dd69ab5b6ad75ad75738e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000a5349cd3dedbf79ef79ee73cd6bace59ef5d738e0000000000009492dedbb5b6b596ad75d6bace7939c700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000018e3bdd7b596a534f7bef79eef5ddedbbdd7e71c94920000000000008c51defbbdd7b5b6b596c638ef5def5d73ae00000000000018e318e331a64a6910a200000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000d6babdf7e73cffdfffdff79ee71cce59bdf7ef5d18e3000000005acbef5dbdd7bdd7b5b6bdd7e73cdefbd6baad7584309492a5349cf37bcf7bcf7bcf00000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000008430ef5dfffffffff7beef5ddedbb596d6ba9492000000003186ef5dc618ad55ad559cf38c718c718c718c71b596ad55738e8c718c718c71422800000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005acbd69afffff79ee71cce59b5b6ef5d18e300000000ef5dce79b596a5148c718c71bdd794b28c719cf3c63894b27bcf52aa2104000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018e3b5b6ef5ddedbbdd7dedb949200000000ce79d69abdf7bdf7bdd7ad558c717bcf6b4d52aa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073aece59c618ef5d4a6900009492dedbbdf7bdf7bdf7bdd710a200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000528ad6bace7973ae6b6def5dbdf7bdf7ce79c618843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a69ef5dc638d6baef5dbdf7bdf7d6bab596d69a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b596defbbdf7ef5dc638c618c638c618949218c30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003186ef5dce59defbb596ad55a5149cf3843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007befa53473ae210418e300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000108200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
; bigtree thumbnail end

@Ocraftyone
Copy link
Contributor Author

Is this on the latest beta build?

@discip
Copy link
Contributor

discip commented Oct 17, 2023

@Ocraftyone
Copy link
Contributor Author

Ocraftyone commented Oct 17, 2023

and did you notice this issue while we were running tests in the issue discussion? if not, I may need to move back to the Qt algorithm. The algorithm I am currently using is what the tft display uses when converting png encoded thumbnails to native on display.

@discip
Copy link
Contributor

discip commented Oct 17, 2023

Unfortunately I did not pay attention to this earlier! 😓

Have you seen the python script that produces the output we need?
https://github.com/effgarces/Biqu-Thumbnail-Generator/blob/main/biqu_convert_p24.py

and did you notice this issue while we were running tests in the issue discussion?

Now I remember! #1894 (comment)

There were no such issues, as only the end of line was different!

@Ocraftyone
Copy link
Contributor Author

are you able to show a picture with the differences shown on the tft

@discip
Copy link
Contributor

discip commented Oct 17, 2023

Here you go:

DSC_0874

@Ocraftyone
Copy link
Contributor Author

ok. after a bit of a headache of trying to see if there was any way to improve my version and trying to understand what qt's algorithm does, it seems that whatever calculation they are doing with bitwise is just more accurate that the standard way of converting. I can't even find anyone talking about the way they are doing this conversion. Either way, I am opening a pull request to merge those changes.

@discip
Copy link
Contributor

discip commented Oct 18, 2023

So is this affected by the RGBA thing you mentioned in the measure tool PR?

@Ocraftyone
Copy link
Contributor Author

Nope. Completely separate. I'm going to try to get you a build and see if it works as expected.

@MonoAnji
Copy link

Are you sure you meant to @ me? :) Not sure how I can help.

@discip
Copy link
Contributor

discip commented Oct 18, 2023

Ops ... Sorry! 😅
Just delete if you wish.

@MonoAnji
Copy link

:D It's totall fine, just wondered if your question is somehow related to me having added png decoding option for the to the BTT TFTs a while back, because thats the only thing that I can think of ;) Maybe I didn't get it from browsing the messages here, can I acually help somehow?

@discip
Copy link
Contributor

discip commented Oct 18, 2023

I'm not in the know about the code, but trying to help to find those who could potentially know what is not working out.
Maybe you could have a look at the code.
The current issue is as described above: That some 'pixels' (mostly related to alpha) do have the wrong 'color'.
As stated before I'm not the coder here so maybe you could get in touch with @Ocraftyone. 😀

Or, as just found out, @CyberDeck might be willing to help as he implemented the base64 thing into BTT TFT.

@Ocraftyone
Copy link
Contributor Author

does the same issue you showed in the picture persist if you use the BTT TFT built in decode?

@discip
Copy link
Contributor

discip commented Oct 18, 2023

Sorry, what do you mean by decode?

Or what exactly should I do to reproduce what you are asking for?

@discip
Copy link
Contributor

discip commented Oct 20, 2023

@Ocraftyone
I really don't mean to bother you, but is there any updates so far?
If you need testing, I will certainly help! 😊

@Ocraftyone
Copy link
Contributor Author

Thanks for reminding! I was working on getting GH actions working on my repo. Here are the artifacts from the run. https://github.com/Ocraftyone/OrcaSlicer/actions/runs/6593634075

@discip
Copy link
Contributor

discip commented Oct 21, 2023

Good morning,

Thanks for reminding!

Thank you for seeing it that way! 😊

Unfortunately still not fixed:

image

@Ocraftyone
Copy link
Contributor Author

This is the build right before it was merged. https://github.com/SoftFever/OrcaSlicer/actions/runs/6534955943

@discip
Copy link
Contributor

discip commented Oct 21, 2023

Nope, this doesn't work either.

@Ocraftyone
Copy link
Contributor Author

Ocraftyone commented Oct 21, 2023

Do you get different results if you use the other script in that repo? I was going off the one without p24

@discip
Copy link
Contributor

discip commented Oct 21, 2023

The one with p24 is the latest and that is the one I use.

@Ocraftyone
Copy link
Contributor Author

Ocraftyone commented Oct 21, 2023 via email

@discip
Copy link
Contributor

discip commented Oct 21, 2023

I'm right on it. 😊

@discip
Copy link
Contributor

discip commented Oct 21, 2023

Unfortunately this old script is not compatible.

This is the error it results in:

Post-processing script python /home/user/.config/OrcaSlicer/biqu_convert_new.py failed.
The post-processing script is expected to change the G-code file
/tmp/orcaslicer_model/Sat_Oct_21/22_49_56#3713#55/Metadata/.3713.0.gcode.pp in place, but the G-code file was deleted and
likely saved under a new name.
Please adjust the post-processing script to change the G-code in place and consult the manual on how to optionally rename the post-processed G-code file.

@Ocraftyone
Copy link
Contributor Author

Export the gcode then run the script on it manually

@discip
Copy link
Contributor

discip commented Oct 21, 2023

Ok, did what you said and it produced what we need.

@Ocraftyone
Copy link
Contributor Author

Ocraftyone commented Oct 21, 2023 via email

@discip
Copy link
Contributor

discip commented Oct 21, 2023

Thank you!

@discip
Copy link
Contributor

discip commented Oct 30, 2023

Good afternoon @Ocraftyone,
did you happen to have time to look at it again?

thanks in advance

@discip
Copy link
Contributor

discip commented Dec 17, 2023

@Ocraftyone
Good evening Sir,
any updates on this one?

thanks in advance
kind regards

@discip
Copy link
Contributor

discip commented Jan 27, 2024

@Ocraftyone

Any news yet?

@discip
Copy link
Contributor

discip commented Apr 18, 2024

@Ocraftyone
Sorry to bother, but are you still planing on fixing this?

thanks in advance
kind regards

@discip
Copy link
Contributor

discip commented Jul 16, 2024

@Ocraftyone
I hope you don't mind me reminding you, but is there any chance you could look into this once more?

@discip
Copy link
Contributor

discip commented Jul 24, 2024

@Ocraftyone
I'm sorry, but will you have time to look into this? 😊

thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow more formats of G-Code Thumbnails as Prusa Slicer
4 participants