Open aalster opened 8 months ago
Thank you for the suggestion! That's a great idea!
I also need this feature @coobird. Another feature: crop an transparent/white backgroud image automatically using a specify margin at orignal aspect ratio? The basic idea is that to find the start and end of X/Y cordinate by comparing pixel
It is a common use-case to crop an image to fit thumbnail size without leaving the gaps on sides. Currently examples page says
but doesn't provide a solution to force size keeping original aspect ratio.
Please add this example to
Forcing thumbnails to be exactly the specified size
section:This is a great feature of library but it is not easy to spot. Initially I was calculating sizes myself which required me to read bytes as BufferedImage to get original image size and then read bytes second time to make library determine output format automatically.