diff options
author | dependabot[bot] | 2024-04-08 21:04:58 +0000 |
---|---|---|
committer | Vitaly Takmazov | 2024-04-09 13:05:43 +0300 |
commit | 934859aaa88131316c1b471ec435c4f912050f3c (patch) | |
tree | 89574b0a757935b36ba1bd25d9b4181d907a6247 /src/main | |
parent | 399c27a7b834128d01ef5e291c5e1e8b721a113a (diff) |
build(deps): bump org.apache.commons:commons-imaging
Bumps org.apache.commons:commons-imaging from 1.0-alpha3 to 1.0.0-alpha4.
---
updated-dependencies:
- dependency-name: org.apache.commons:commons-imaging
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/juick/service/FileSystemStorageService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/service/FileSystemStorageService.java b/src/main/java/com/juick/service/FileSystemStorageService.java index c3ec9333..57032492 100644 --- a/src/main/java/com/juick/service/FileSystemStorageService.java +++ b/src/main/java/com/juick/service/FileSystemStorageService.java @@ -36,7 +36,6 @@ import com.juick.model.Message; import com.juick.model.Photo; import com.juick.model.User; -import org.apache.commons.imaging.ImageReadException; import org.apache.commons.imaging.Imaging; import org.apache.commons.imaging.common.ImageMetadata; import org.apache.commons.imaging.formats.jpeg.JpegImageMetadata; @@ -146,7 +145,7 @@ public class FileSystemStorageService implements StorageService { ImageMetadata metadata = Imaging.getMetadata(imageFile); if (metadata instanceof JpegImageMetadata jpegMetadata) { - TiffField orientationField = jpegMetadata.findEXIFValue(TiffTagConstants.TIFF_TAG_ORIENTATION); + TiffField orientationField = jpegMetadata.findExifValue(TiffTagConstants.TIFF_TAG_ORIENTATION); if (orientationField != null) { int orientation = orientationField.getIntValue(); @@ -179,7 +178,7 @@ public class FileSystemStorageService implements StorageService { } } } - } catch (ImageReadException | IOException e) { + } catch (IOException e) { // failed to read metadata. // nothing to do here, return image as is. } |