diff --git a/changelog.txt b/changelog.txt index be41fc7..823f365 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/package_plugin/package.json b/package_plugin/package.json index 6b1ddd9..5d0f330 100644 --- a/package_plugin/package.json +++ b/package_plugin/package.json @@ -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" diff --git a/plugin.json b/plugin.json index d7b8804..3a28afe 100644 --- a/plugin.json +++ b/plugin.json @@ -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 diff --git a/tools/thumbnail_generator.py b/tools/thumbnail_generator.py index c0aed07..eafcc4d 100644 --- a/tools/thumbnail_generator.py +++ b/tools/thumbnail_generator.py @@ -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") @@ -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()