-
Notifications
You must be signed in to change notification settings - Fork 54
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 generation not parsed by PrusaLink #475
Thumbnail generation not parsed by PrusaLink #475
Comments
gcode file with thumbnail not rendering attached for reference |
The generated thumbnails that don't render on PrusaLink do render on the printer's screen. |
I'm seeing this same problem as well. |
I have experienced that .bgcode is not affected. |
I was just playing around with it myself, and if you move the PNG thumbnail from the last one in the list to the first, the image loads correctly in PrusaLink. So when I change to this: the image loads. |
I think the problem is actually in Digging through the code, the problem starts here: And then AFAICT depending on if you have a binary g-code or a regular g-code file a different code path is followed ( As to why it works when moving the PNG thumbnail to the front of the list; it looks like there is a limit to the number of lines searched for a PNG thumbnail here: So I guess someone will need to determine what they feel is the best way to evaluate the regular g-code for thumbnails. If the Prusa devs are okay with just increasing |
Description of the bug
I am using PrusaSlicer 2.7.1 on the default mk4/IS printer profile and I am finding the thumbnails for the slices I generate are not being interpreted. By PrusaLink. I cannot be sure it was rendered on the printer's screen, I'll have to check on the next print. (PrusaConnect can parse the thumbnail correctly).
This is a single colour print, using the 'Generic PETG' profile output to a text gcode file.
I had a look through the gcode and compared a couple of files, one with thumbnails that render and one with thumbnails that do not render. The similarities are that thumbnails exist on both files. The differences are that the ones that work were generated by PrusaSlicer 2.7.0 and have one less tn format:
PrusaSlicer 2.7.0 - thumbnails render correctly:
PrusaSlicer 2.7.1 - thumbnails not rendering
Notice the latter has 5 thumbnail images in different resolutions, whereas the former (the one that works) has 4 - it is missing 480x240/QOI. But this does not appear to be the problem, because I removed this thumbnail from the gcode, changed the
thumbnails =
line and re-uploaded to PrusaLink; It still does not render.Project file & How to reproduce
Checklist of files included above
Version of PrusaSlicer
2.7.1+linux-x64-GTK3-202312121425
Operating system
Linux Debian 12
Printer model
Prusa mk4 IS
The text was updated successfully, but these errors were encountered: