bug #9610
openMediaMetadataFileReader (formerly in CdmImageInfo) loads same image file multiple times
40%
Description
For one and the same image file the UriUtils methos getInputStream()
and getResourceLength()
are being used multiple times:
getInputStream()
: 4xgetResourceLength()
: 1x
This will cause in the worst case that the file is loaded 5x from the internet! What as waste of time an resources!!!
Related issues
Updated by Andreas Kohlbecker almost 3 years ago
- Related to bug #9608: UriUtils to use HTTP HEAD requests where possible added
Updated by Andreas Kohlbecker almost 3 years ago
- Related to task #9607: read image metadata from MediaInfoService if available added
Updated by Andreas Kohlbecker almost 3 years ago
- Target version changed from Release 5.25 to Release 5.45
Updated by Katja Luther about 2 years ago
- Subject changed from MediaMedadataFileReader (formerly in CdmImageInfo) loads same image file multiple times to MediaMetadataFileReader (formerly in CdmImageInfo) loads same image file multiple times
Updated by Andreas Müller about 2 years ago
- Subject changed from MediaMetadataFileReader (formerly in CdmImageInfo) loads same image file multiple times to MediaMedadataFileReader (formerly in CdmImageInfo) loads same image file multiple times
- Assignee changed from Andreas Kohlbecker to Andreas Müller
- Target version changed from Release 5.45 to Release 5.44
Check if this is not yet fixed in the meanwhile.
Updated by Andreas Müller about 2 years ago
- Subject changed from MediaMedadataFileReader (formerly in CdmImageInfo) loads same image file multiple times to MediaMetadataFileReader (formerly in CdmImageInfo) loads same image file multiple times
Updated by Andreas Müller about 2 years ago
- Related to feature request #5016: Use asynchronous loading for images added
Updated by Andreas Müller 2 months ago
- Status changed from New to Feedback
- Assignee changed from Andreas Müller to Katja Luther
As far as I remember we have worked on this some time ago. Can you please check if you think that this still happens?
Updated by Andreas Müller 2 months ago
- Target version changed from Release 5.44 to Release 5.43
Updated by Katja Luther 2 months ago
In dataportal getInputStream() is only called twice
But for the editor getInputStream() is called 4 times!!!
The first call is only to test whether the file exists.
Two calls in MediaInfoFileReader (baseInfo() and readMetaData()) and a fourth call to show the image.
Updated by Katja Luther 2 months ago
- Status changed from Feedback to In Progress
- % Done changed from 0 to 40
I adapted the MediaInfoFileReader in a way that the imageInfo and the metadata using the same inputStream.
So currently we have for the dataportal only one call of getInputStream() and in TaxEditor two calls, the second call is caused by the ImageElement which displays the image.