Skip to content

[Bug] Change resolution operation chips model for no reason #1031

@Jyers

Description

@Jyers

System

UVtools v5.1.1 X64
Operative system: Microsoft Windows 10.0.26100 X64
Processor: 12th Gen Intel(R) Core(TM) i7-1280P
Processor cores: 20
Memory RAM: 15.68 / 31.71 GB
Runtime: win-x64
Framework: .NET 9.0.4
AvaloniaUI: 11.3.0
OpenCV: 4.10.0

Sreens, resolution, working area, usable area:
1: 2256 x 1504 @ 150% (Primary) (On this)
    WA: 2256 x 1432    UA: 1504 x 955

Path:       C:\Program Files\UVtools\
Executable: C:\Program Files\UVtools\UVtools.exe
Loaded file: Rook_1_202505281149.goo [Version: 0] [Class: GooFile]

Printer and Slicer

No response

Description of the bug

When running a change resolution operation (in this case simply expanding one dimension, retaining the same pixel size) the model is clipped for no reason.

Before resolution change:
Image

After resolution change:
Image

How to reproduce

  1. Load a model at resolution 2560x1620 (width=130.56, height=82.62)
  2. Run change resolution, new resolution 2560x2560 (width=130.56, height=130.56)
  3. Resolution changes correctly, but image is clipped on edges

Files

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions