We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef06b58 commit a3db12fCopy full SHA for a3db12f
internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py
@@ -190,10 +190,7 @@ def set_image_size(self):
190
disp = lv.display_get_default()
191
target_h = disp.get_vertical_resolution()
192
#target_w = disp.get_horizontal_resolution() - self.button_width - 5 # leave 5px for border
193
- target_w = target_h # leave 5px for border
194
- if target_w == self.width and target_h == self.height:
195
- print("Target width and height are the same as native image, no scaling required.")
196
- return
+ target_w = target_h # square
197
print(f"scaling to size: {target_w}x{target_h}")
198
scale_factor_w = round(target_w * 256 / self.width)
199
scale_factor_h = round(target_h * 256 / self.height)
0 commit comments