if (_photo.getExifThumbnail() != null) {
// Use exif thumbnail
Image image = new ImageIcon(_photo.getExifThumbnail()).getImage();
_thumbnail = ImageUtils.createScaledImage(image, image.getWidth(null), image.getHeight(null));
image = null;
}
if (_photo.getExifThumbnail() != null) {
// Use exif thumbnail
Image image = new ImageIcon(_photo.getExifThumbnail()).getImage();
_thumbnail = ImageUtils.createScaledImage(image, image.getWidth(null), image.getHeight(null));
image = null;
}