Project

General

Profile

bug #6969

Use media representation which best fits the available size for taxon profile picture

Added by Andreas Müller about 1 year ago. Updated about 1 year ago.

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

100%

Severity:
critical
Found in Version:

Description

As an example you find a taxon with 3 different images here: http://test.e-taxonomy.eu/dataportal/preview/salvador/cdm_dataportal/taxon/29899fed-812d-49ae-b88f-70d25fd27691

I used 3 different pictures to easier distinguish which image was taken. There is a thumbnail image (120px), medium 350px and large image.

Currently the thumbnail is shown as profile picture, but the medium should be shown.


Related issues

Related to Edit - bug #6684: Use media representation which best fits the available viewport size for the Image Overlay Closed 06/01/2017
Related to Edit - bug #6683: Use best quality media representation in image viewer on media page Closed 06/01/2017
Related to Edit - bug #6970: portal/taxon/{uuid}/media returns only one media object even if no filter is set New 09/22/2017
Related to Edit - bug #7093: choosing representation which best fits the available size for taxon profile picture not working in all cases New 09/21/2017
Copied to Edit - bug #6975: improve preferred media calculation algorithm in cdmlib New 09/22/2017

Associated revisions

Revision 02faa087 (diff)
Added by Andreas Kohlbecker about 1 year ago

fix #6969 using the size defined in settings to use the preferred representation
- also using a workaround to circumvent the problem decribed in ref #6970

Revision 673929dd (diff)
Added by Andreas Kohlbecker about 1 year ago

ref #6969 fixing bug in preferred media calculation

History

#1 Updated by Andreas Müller about 1 year ago

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

#2 Updated by Andreas Müller about 1 year ago

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

#3 Updated by Andreas Müller about 1 year ago

  • Description updated (diff)

#4 Updated by Andreas Kohlbecker about 1 year ago

  • Related to bug #6970: portal/taxon/{uuid}/media returns only one media object even if no filter is set added

#5 Updated by Andreas Kohlbecker about 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#6 Updated by Andreas Müller about 1 year ago

  • Assignee changed from Andreas Kohlbecker to Andreas Müller

#7 Updated by Andreas Müller about 1 year ago

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

Generally the switch seems to work.

Only the algorithm for me should decide earlier to take a larger image.

I played around with the given example and changed in the admin tools the size of the profile picture. Somewhere between 310 and 320 it switched from thumbnail to medium size.

The thumbnail has size 120(h)x80(w), medium has 527x350.

With picture size 310 this results in a picture of bad quality as the thumbnail is augmented by factor >2.5.

However, we may close this ticket and create a new one for adjusting the algorithm (both in dataportal and cdmlib)

#8 Updated by Andreas Kohlbecker about 1 year ago

  • Copied to bug #6975: improve preferred media calculation algorithm in cdmlib added

#9 Updated by Andreas Kohlbecker about 1 year ago

  • Status changed from Feedback to Closed

Ok, agreed, I created a new ticket for the improvement of the calculation: #6975 and I am closing this ticket by now.

#10 Updated by Andreas Kohlbecker about 1 year ago

  • % Done changed from 50 to 100

#11 Updated by Andreas Kohlbecker about 1 year ago

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)