Skip to content

Conversation

@antoineruzette
Copy link

Scale bars allowed now in both physical units and fraction modes, and accounting for image resizing.

Changes:

  • Added imageio as depedency
  • Updated PanelCreator._add_scalebar to handle both physical units and fraction cases
  • Now both modes work as following:
    • For physical units: scale bar length is calculated as (physical_length / pixel_size) * resize_factor
    • For fraction mode: physical length is calculated using the original image width before resizing

@antoineruzette antoineruzette changed the title feat: physical scale bar length feat: physical scale bar length #2 May 10, 2025
@antoineruzette antoineruzette changed the title feat: physical scale bar length #2 feat: physical scale bar length May 10, 2025
@antoineruzette antoineruzette mentioned this pull request May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant