You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to create thumbnails similar to the Facebook ones. What Facebook do is
maintain the aspect ratio, but forcing a defined size of thumbnail.
It resizes the image to the defined size and then cuts what is left, forcing
the height or the width (and avoiding blank spaces around the image). For me is
the best approach when we talk about thumbnails.
I tried to use something like this:
Thumbnails.of(myInputStream).forceSize(width,
height).keepAspectRatio(true).outputFormat("jpg").outputQuality(1.0f).toOutputSt
ream(myOutputStream);
But it does not work. I think this approach is not possible yet with
thumbnailator so can you implement it? Just a suggestion to make this library
even better (it is definately the best and simplest all over the web).
Thanks in advance.
Original issue reported on code.google.com by lua...@gmail.com on 13 Oct 2011 at 8:06
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
lua...@gmail.com
on 13 Oct 2011 at 8:06The text was updated successfully, but these errors were encountered: