[MGNLIMG-335] WEBP dimensions have no value Created: 17/Oct/23 Updated: 20/Dec/23 |
|
| Status: | Accepted |
| Project: | Imaging |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Roberto Gaona | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 4 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Template: |
|
||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||
| Epic Link: | Support | ||||||||||||||||||||
| Team: | |||||||||||||||||||||
| Description |
| Comments |
| Comment by Marvin Boie [ 12/Dec/23 ] |
|
The problem here seems to be that the lib org.devlib.schmidt.imageinfo.ImageInfo was last updated in 2006 and WEBP was released in 2018.
long imageWidth; long imageHeight; try { final BufferedImage read = ImageIO.read(image.getContentStream()); if (read != null) { imageHeight = read.getHeight(); imageWidth = read.getWidth(); } } catch (final IOException ignored) { } Tika could be used to get the MimeType, but not java.net.URLConnection#guessContentTypeFromStream, this method already causes problems with IMGREC-88 My comment from IMGREC-88 may also contain some information relevant to this ticket.
|