Skip to content

Commit

Permalink
keep image original ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
sourovamin committed Feb 12, 2025
1 parent 93c9a76 commit d83d1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def update_output(n_clicks, microscope, objective, test, bead_size, bead_number,
html.Img(
src=f"/images/{image}", # Replace with actual image path logic
title=os.path.basename(image),
style={"width": "200px", "margin": "10px"}
style={"max-width": "400px", "max-height": "400px", "margin": "10px", "object-fit": "contain"}
)
for image in get_image_paths(bead_path)
],
Expand Down

0 comments on commit d83d1c4

Please sign in to comment.