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

The Create Thumbnail plugin does not generate the thumbnail size correctly #20038

Open
M0gicYang opened this issue Dec 16, 2024 · 1 comment
Open
Labels
Status: Needs Info Needs more information before action can be taken. Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. Type: Bug The code does not produce the intended behavior.

Comments

@M0gicYang
Copy link

Cura Version

5.9.0

Operating System

Windows 10

Printer

Custom FFF printer

Reproduction steps

The Create thumbnail set the length and width to 100.

Actual results

...
; thumbnail begin 32 32 956
...
; thumbnail begin 300 300 23256
...

Expected results

...
; thumbnail begin 100 100 13328
...

Add your .zip and screenshots here ⬇️

2024-12-16_140548
2024-12-16_140642

@M0gicYang M0gicYang added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Dec 16, 2024
@GregValiant GregValiant added Status: Needs Info Needs more information before action can be taken. Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. and removed Status: Triage This ticket requires input from someone of the Cura team labels Dec 16, 2024
@GregValiant
Copy link
Collaborator

GregValiant commented Dec 16, 2024

Thanks for the report.
I cannot duplicate this with the "CreateThumbnail" script included with "UltiMaker Cura 5.9.0"
When set to "100 x 100" I get:
; thumbnail begin 100 100 6712
When set to "150 x 125" I get:
; thumbnail begin 150 125 8452

Each of the UM Cura clone slicers has it's own "CreateThumbnail" post-processor. Within the UltiMaker Cura post-processor is this line:
gcode.append("; thumbnail begin {}x{} {}".format(width, height, encoded_snapshot_length))
The "width" and "height" variables are taken from the settings and so must be whatever your input was.

I don't see a bug here if you are indeed using the "CreateThumbnail" that is included with UM Cura 5.9.0.
I recall seeing gcodes generated by one of the Cura clone slicers (I can't recall which one) that always produced both a 32x32 and a 300x300 thumbnail in the same file.

Double check that you are indeed using UM Cura. You can go to the installation folder:
"C:\Program Files\UltiMaker Cura 5.9.0\share\cura\plugins\PostProcessingPlugin\scripts"
and zip the "CreateThumbnail.py" file and post it here and I'll look at it. It should be the same one I have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Info Needs more information before action can be taken. Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

2 participants