Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Molodos committed Sep 18, 2023
1 parent a531414 commit d7dee10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[3.2.3]
- Fixed another bug, that caused thumbnails to be generated wrongly on Neptune 2, Neptune 2S, Neptune 2D and Neptune X printers

[3.2.2]
- Fixed a bug, that caused thumbnails to be generated wrongly on Neptune 2, Neptune 2S, Neptune 2D and Neptune X printers

Expand Down
2 changes: 1 addition & 1 deletion package_plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"display_name": "Elegoo Neptune Thumbnails",
"package_id": "ElegooNeptune3Thumbnails",
"package_type": "plugin",
"package_version": "3.2.2",
"package_version": "3.2.3",
"sdk_version": 8,
"sdk_version_semver": "8.0.0",
"website": "https://github.com/Molodos/ElegooNeptuneThumbnails"
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Elegoo Neptune Thumbnails",
"id": "neptune_thumbnails",
"author": "Molodos",
"version": "3.2.2",
"version": "3.2.3",
"description": "Adds Elegoo Neptune printer thumbnail to G-code. Contains options to display parameters like estimated print time or model height on the thumbnail",
"supported_sdk_versions": ["8.0.0", "8.1.0", "8.2.0", "8.3.0", "8.4.0"],
"api": 8
Expand Down
4 changes: 1 addition & 3 deletions tools/thumbnail_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def generate_gcode_prefix(cls, slice_data: SliceData) -> str:
gcode_prefix: str = ""
if SettingsManager.get_settings().is_old_thumbnail():
gcode_prefix += cls._parse_thumbnail_old(thumbnail, 160, 160, "simage")
gcode_prefix += cls._parse_thumbnail_old(thumbnail, 200, 200, "gimage")
gcode_prefix += cls._parse_thumbnail_old(thumbnail, 200, 200, ";gimage")
else:
gcode_prefix += cls._parse_thumbnail_new(thumbnail, 200, 200, "gimage")
gcode_prefix += cls._parse_thumbnail_new(thumbnail, 160, 160, "simage")
Expand Down Expand Up @@ -195,8 +195,6 @@ def _parse_thumbnail_old(cls, img: QImage, width: int, height: int, img_type: st
TODO: Maybe optimize at some time
"""
img_type = f";{img_type}:"
if img_type == "gimage":
img_type = f";{img_type}"
result = ""
b_image = img.scaled(width, height, Qt.AspectRatioMode.KeepAspectRatio)
img_size = b_image.size()
Expand Down

0 comments on commit d7dee10

Please sign in to comment.