Project

General

Profile

Actions

bug #6970

closed

MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized

Added by Andreas Kohlbecker over 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:

Description

portal/taxon/{uuid}/media service only delivers a filtered media object
which only contains the thumbnail representation even if the height and width filters are not set.

In cases where no filter is set this service should return all media.


old subject: portal/taxon/{uuid}/media returns only one media object even if no filter is set


Related issues

Related to EDIT - bug #6969: Use media representation which best fits the available size for taxon profile pictureClosedAndreas Kohlbecker

Actions
Related to EDIT - bug #6684: Use media representation which best fits the available viewport size for the Image Overlay ClosedAndreas Kohlbecker

Actions
Related to EDIT - bug #6683: Use best quality media representation in image viewer on media page ClosedAndreas Kohlbecker

Actions
Related to EDIT - feature request #8867: media list services as iiif manifest serviceClosedAndreas Kohlbecker

Actions
Related to EDIT - bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all casesWorksformeAndreas Kohlbecker

Actions
Actions #1

Updated by Andreas Kohlbecker over 5 years ago

  • Related to bug #6969: Use media representation which best fits the available size for taxon profile picture added
Actions #2

Updated by Andreas Kohlbecker over 5 years ago

  • Related to bug #6684: Use media representation which best fits the available viewport size for the Image Overlay added
Actions #3

Updated by Andreas Kohlbecker about 3 years ago

  • Assignee changed from Andreas Müller to Andreas Kohlbecker
  • Priority changed from New to Highest
  • Target version changed from Unassigned CDM tickets to Release 5.13

This issue is due to problems in the algorithm implemented in MediaUtils.filterAndOrderMediaRepresentations(). The same problem has already been solved for the cdm-dataportal (#6683, #6969). The better algorithm from the portal code should be used also for the cdmlib.

Actions #4

Updated by Andreas Kohlbecker about 3 years ago

  • Related to bug #6683: Use best quality media representation in image viewer on media page added
Actions #5

Updated by Andreas Kohlbecker about 3 years ago

  • Subject changed from portal/taxon/{uuid}/media returns only one media object even if no filter is set to MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized
  • Description updated (diff)
Actions #6

Updated by Andreas Kohlbecker about 3 years ago

  • Category changed from cdmlib-remote to cdmlib
Actions #7

Updated by Andreas Kohlbecker about 3 years ago

Actions #8

Updated by Andreas Müller about 3 years ago

  • Status changed from New to Feedback

This ticket (by description and by old title) is about handling the "no filter" case. Not sure if the new title still covers this. As far as I understand your comment you may only improve the image selection algorithm but if no filter is set not image selection has to take place.

But ofcourse I agree that we may additionally improve the image selection algorithm if there is a better one.

Actions #9

Updated by Andreas Kohlbecker about 3 years ago

  • Status changed from Feedback to In Progress

Andreas Müller wrote:

This ticket (by description and by old title) is about handling the "no filter" case. Not sure if the new title still covers this. As far as I understand your comment you may only improve the image selection algorithm but if no filter is set not image selection has to take place.

But ofcourse I agree that we may additionally improve the image selection algorithm if there is a better one.

One of the problems is that "no filter" case is interpreted as a filter with preferred size = 0 and width = 0 which will always will return the thumbnail. So many aspects of the implementation are wrong that I refrain from mentioning all these problems only for the sake of transparency.

Actions #10

Updated by Andreas Kohlbecker about 3 years ago

  • Related to bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases added
Actions #11

Updated by Andreas Kohlbecker about 3 years ago

  • Related to deleted (bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases)
Actions #12

Updated by Andreas Kohlbecker about 3 years ago

  • Related to bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases added
Actions #13

Updated by Andreas Kohlbecker about 3 years ago

  • Related to deleted (bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases)
Actions #14

Updated by Andreas Kohlbecker about 3 years ago

  • Has duplicate bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases added
Actions #15

Updated by Andreas Kohlbecker about 3 years ago

  • Has duplicate deleted (bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases)
Actions #16

Updated by Andreas Kohlbecker about 3 years ago

  • Related to bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases added
Actions #17

Updated by Andreas Kohlbecker about 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
Actions #18

Updated by Andreas Kohlbecker about 3 years ago

closing as all tests succeed

Actions

Also available in: Atom PDF