Project

General

Profile

bug #7093

choosing representation which best fits the available size for taxon profile picture not working in all cases

Added by Andreas Kohlbecker almost 3 years ago. Updated 7 months ago.

Status:
Worksforme
Priority:
New
Category:
cdm-dataportal
Target version:
-
Start date:
09/21/2017
Due date:
% Done:

0%

Severity:
critical
Found in Version:
Tags:

Description

even fixed in #6969 choosing representation which best fits the available size for taxon profile picture not working in all cases

see http://portal.cybertaxonomy.org/flora-greece/cdm_dataportal/taxon/1c7a0a82-bd99-44eb-91cf-77a36206d0ad

where some images are loading slow, in these cases the algorithm chooses the high quality representation even if the thumbnail size perfectly fits the preferred size

  • Thumbnails with 150x96 available (=> product is 14400)
  • Preferred size 120x120 defined in setting of taxon gallery (=> product is 14400)

Related issues

Related to Edit - bug #6969: Use media representation which best fits the available size for taxon profile picture Closed 09/21/2017
Related to Edit - bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized Closed 09/22/2017

Associated revisions

Revision 84331f40 (diff)
Added by Andreas Kohlbecker 7 months ago

ref #6970 fixing bug related to undefined values and adding test for ref #7093

History

#1 Updated by Andreas Kohlbecker almost 3 years ago

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

#2 Updated by Andreas Müller almost 3 years ago

  • % Done changed from 100 to 0

#3 Updated by Andreas Müller almost 3 years ago

  • Target version changed from Release 4.12 to Release 4.13

#4 Updated by Andreas Müller over 2 years ago

  • Target version changed from Release 4.13 to Release 4.14

#5 Updated by Andreas Müller over 2 years ago

  • Target version changed from Release 4.14 to Release 5.0

#6 Updated by Andreas Kohlbecker over 2 years ago

  • Target version changed from Release 5.0 to Release 5.1

#7 Updated by Andreas Müller about 2 years ago

  • Target version changed from Release 5.1 to Release 5.2

#8 Updated by Andreas Kohlbecker about 2 years ago

  • Target version changed from Release 5.2 to Release 5.3

#9 Updated by Andreas Kohlbecker about 2 years ago

  • Target version changed from Release 5.3 to Release 5.4

#10 Updated by Andreas Kohlbecker almost 2 years ago

  • Target version changed from Release 5.4 to Release 5.5

#11 Updated by Andreas Kohlbecker over 1 year ago

  • Target version changed from Release 5.5 to Release 5.6

#12 Updated by Andreas Kohlbecker over 1 year ago

  • Target version changed from Release 5.6 to Unassigned CDM tickets

#13 Updated by Andreas Kohlbecker 7 months ago

  • Related to bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized added

#14 Updated by Andreas Kohlbecker 7 months ago

  • Status changed from New to Duplicate
  • Target version deleted (Unassigned CDM tickets)

This is a duplicate of the issue #6970

#15 Updated by Andreas Kohlbecker 7 months ago

  • Related to deleted (bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized)

#16 Updated by Andreas Kohlbecker 7 months ago

  • Related to bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized added

#17 Updated by Andreas Kohlbecker 7 months ago

  • Related to deleted (bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized)

#18 Updated by Andreas Kohlbecker 7 months ago

  • Duplicates bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized added

#19 Updated by Andreas Kohlbecker 7 months ago

  • Duplicates deleted (bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized)

#20 Updated by Andreas Kohlbecker 7 months ago

  • Status changed from Duplicate to Worksforme

Andreas Kohlbecker wrote:

This is a duplicate of the issue #6970

Not really, since the problem in #6970 is exactly the opposite effect.

This issue cant be reproduced at the moment in the production system so this problem might have been solved in a different way - could have been a data problem?

#21 Updated by Andreas Müller 7 months ago

Andreas Kohlbecker wrote:

Andreas Kohlbecker wrote:

This is a duplicate of the issue #6970

Not really, since the problem in #6970 is exactly the opposite effect.

This issue cant be reproduced at the moment in the production system so this problem might have been solved in a different way - could have been a data problem?

The current images (see link in description) have not the size that was mentioned in the description anymore. They were adapted in a way that they work well with the current situation (specific situation in flora-greece portal and general situation in dataportal and cdmlib).
You may decide if you think that the ticket is "Worksforme" anyway. I personally do not remember that it was explicitly fixed but do not really remember. Definetely there are still problems with the specific implementations for flora-greece but is probably another issue.

#22 Updated by Andreas Kohlbecker 7 months ago

  • Status changed from Worksforme to Feedback
  • Assignee changed from Andreas Kohlbecker to Andreas Müller
  • Target version set to Release 5.13

Thank you for pointing this out.
Have only the thumbnails been adapted or also the large images? Do you know more about the details of the former image sizes?

#23 Updated by Andreas Müller 7 months ago

Andreas Kohlbecker wrote:

Thank you for pointing this out.
Have only the thumbnails been adapted or also the large images? Do you know more about the details of the former image sizes?

See description

#24 Updated by Andreas Kohlbecker 7 months ago

Andreas Müller wrote:

Andreas Kohlbecker wrote:

Thank you for pointing this out.
Have only the thumbnails been adapted or also the large images? Do you know more about the details of the former image sizes?

See description

"algorithm chooses the high quality representation", but there is no information on the size of these large images, this is why I was asking you for further information. Do you know I it was necessary to also change the size of the lager images?

#25 Updated by Andreas Müller 7 months ago

Andreas Kohlbecker wrote:

Andreas Müller wrote:

Andreas Kohlbecker wrote:

Thank you for pointing this out.
Have only the thumbnails been adapted or also the large images? Do you know more about the details of the former image sizes?

See description

"algorithm chooses the high quality representation", but there is no information on the size of these large images, this is why I was asking you for further information. Do you know I it was necessary to also change the size of the lager images?

No usually the size of the large images was not changed (as far as I know)

#26 Updated by Andreas Kohlbecker 7 months ago

Ok, I will test with these sizes ....

#27 Updated by Andreas Müller 7 months ago

  • Status changed from Feedback to In Progress
  • Assignee changed from Andreas Müller to Andreas Kohlbecker

#28 Updated by Andreas Kohlbecker 7 months ago

  • Status changed from In Progress to Worksforme

I could not reproduce this issue with the test cases implemented in 84331f40
A research in the old emails did not reveal better details on the actual image sized with which this problem occured.

Finally it seems as if the new algorithm implemented in MediaUtils (#6970) solves this problem.

Thus I am closing this as worksforme

#29 Updated by Andreas Kohlbecker 7 months ago

  • Related to bug #6970: MediaUtils.filterAndOrderMediaRepresentations perfers thumbnail MediaRepresentations over full sized added

#30 Updated by Andreas Kohlbecker 7 months ago

  • Target version deleted (Release 5.13)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)