Skip to content

Update Converter.py - JPEG QUALITY AND RES_CORRECTION#1

Open
titionex wants to merge 2 commits into
mainfrom
titionex-patch-1-converter
Open

Update Converter.py - JPEG QUALITY AND RES_CORRECTION#1
titionex wants to merge 2 commits into
mainfrom
titionex-patch-1-converter

Conversation

@titionex

Copy link
Copy Markdown
Owner

JPEG QUALITY to Q=95 AND RES_CORRECTION
This PR introduces two important fixes to the image conversion process in Converter.py:

  1. JPEG Quality Enhancement: Forced JPEG compression quality to Q=95. The default behavior of 'tiffsave' uses Q=75, which can lead to excessive compression artifacts. Increasing this value ensures better image fidelity for large-scale processing.

  2. Resolution Correction (MPP): Fixed a bug where the original MPP (Microns Per Pixel) was being incorrectly reduced by a factor of 10 (e.g., scaling $0.25$ down to $0.025$). This fix ensures that the spatial metadata remains accurate and consistent with the original slide resolution.

JPEG QUALITY to Q=95 AND RES_CORRECTION
Fix: move line to correct position
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