Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaption of the thumbnail #809

Closed
wants to merge 8 commits into from
Closed

Adaption of the thumbnail #809

wants to merge 8 commits into from

Conversation

fe-kre
Copy link
Contributor

@fe-kre fe-kre commented Mar 30, 2016

Problem was a thumbnail that would be bigger than a usual screen.

I set up fixed values as limits. If the aspect ratio exceeds one limit, than calculate the width or height again with a correction variable. After that point, recalculate the aspect ratio and the new width.

Because of quality reasons for the thumbnail, I set the width to a fixed value.

Show up thumbnail for wider images than the screen.
Show up the thumbnail in an acceptable quality of a wider image than the screen, if the width of the thumbnail bigger than 90 px.
Adjust Aspectratio, if the image for the thumbnail is wider than the screen.
Update manifestListItem.js
@rsinghal
Copy link
Collaborator

Thanks @fe-kre. Can you include an example manifest that caused the problem originally?

@fe-kre
Copy link
Contributor Author

fe-kre commented Mar 31, 2016

http://iiif.ub.uni-leipzig.de/0000000001/manifest.json is an example manifest for our problem.

@rsinghal
Copy link
Collaborator

rsinghal commented Apr 4, 2016

@fe-kre The code changes are messing up the thumbnails for existing images.

Before:
screen shot 2016-04-04 at 11 51 14 am

After:
screen shot 2016-04-04 at 11 51 27 am

@rsinghal
Copy link
Collaborator

rsinghal commented Apr 4, 2016

@fe-kre Please fix and reopen the PR when you are ready.

@rsinghal rsinghal closed this Apr 4, 2016
@fe-kre fe-kre mentioned this pull request May 3, 2016
@fe-kre fe-kre mentioned this pull request May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants