You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by GitBox <gi...@apache.org> on 2026/09/18 15:27:20 UTC

[GH] (poi/image-dpi-guard): Workflow run "Java CI with Gradle" is working again!

The GitHub Actions job "Java CI with Gradle" on poi.git/image-dpi-guard has succeeded.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
3de15a4186d5544ee052a92bbe38efd2b8825c4e / PJ Fanning <pj...@users.noreply.github.com>
ImageUtils.getResolution: unusable pixel-size metadata falls back to 96 dpi instead of throwing

The HorizontalPixelSize/VerticalPixelSize an image's metadata reports is untrusted
input. A value of 0 made 25.4/0 infinite and MathUtil.safeDoubleToInt threw
IllegalArgumentException out of Picture.getImageDimension() and resize(); a
non-numeric value threw NumberFormatException. Both now give the default 96 dpi,
as a missing value already did.

Co-Authored-By: Claude Opus 5 (1M context) <no...@anthropic.com>

Report URL: https://github.com/apache/poi/actions/runs/35361228573

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org