A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/coobird/thumbnailator/issues/91 below:

Resizing sideways images applies resize before rotation · Issue #91 · coobird/thumbnailator · GitHub

I need to make thumbnails from photos and I don't know in advance if they need rotation or not:

  Thumbnails.of(new FileInputStream(origFile))
        .useExifOrientation(true).outputFormat("jpg")
        .size(280, 360)
        .toFile(thumbFile);

The problem here is if I provide a non-rotated image, it sizes it correctly, and a side-ways oriented image gets scaled to 210 x 280, so it seems like it's calculating the max width and height based on the original dimensions instead of the rotated dimensions?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4