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 am trying to create thumbnails from images with .gif format having transparent backgrounds. I am creating thumbnails of dimensions 200x200 in .jpg format. I ahve numerous solutions suggested in previous issues to no effect. I have also tried to change the output format to something and still drawn blank.
Expected behavior
The result that comes must have a white or transparent background.
Actual behavior
The images come with a black background
Steps to reproduce the behavior
I am using the following methodology to create the thumbnail.
Here, the "inFile" has the image input and "os" is the FileOutputStream in which retrieving the thumbnail and saving it into another file to be uploaded. I have checked with all the download and upload features and none of them are interfering with this procedure or causing any problems.
Environment
OS vendor and version: Microsoft WIndows 10 Pro by Microsoft Corporation
JDK vendor and version: jdk 1.6.0_45
Thumbnailator version: 0.4.8
This is the original image.
This is the thumbnail being generated.
The text was updated successfully, but these errors were encountered:
I am trying to create thumbnails from images with .gif format having transparent backgrounds. I am creating thumbnails of dimensions 200x200 in .jpg format. I ahve numerous solutions suggested in previous issues to no effect. I have also tried to change the output format to something and still drawn blank.
Expected behavior
The result that comes must have a white or transparent background.
Actual behavior
The images come with a black background
Steps to reproduce the behavior
I am using the following methodology to create the thumbnail.
Thumbnails.of(inFile).size(200, 200).outputFormat("jpg").toOutputStream(os);
Here, the "inFile" has the image input and "os" is the FileOutputStream in which retrieving the thumbnail and saving it into another file to be uploaded. I have checked with all the download and upload features and none of them are interfering with this procedure or causing any problems.
Environment
This is the original image.
This is the thumbnail being generated.
The text was updated successfully, but these errors were encountered: