Images resizing not correct
djcaesar9114 opened this issue · 2 comments
djcaesar9114 commented
Questions
Expected Behavior
When I put images in the timeline, I'd like to see them resized to fit the circles.
Actual Behavior
If the images are not sized well enough, you see ellipsoidal images too much inside the circles or too much outside.
Steps to Reproduce the Issue
- Put new images in the
/img/timeline/
folder - Change
_config.yml
jekyll serve
- Display the timeline
Specifications
Every version of the browser, with { Personal } up to date
djcaesar9114 commented
I've got two ways to solve this issue:
- The easy one: modifying the CSS so that the image fits whatever the original dimensions are. You can set the images of the timeline with these properties:
width: 100%;
height: 100%;
- Creating a "generate timeline images" script which resizes the images correctly, why not creating new images, "image.png" giving "timeline_image.png".
I'll work on this issue, so I'm open to any comment.
le4ker commented
The images should be square in order to be rendered correctly, but I like that you're trying to tackle that problem. Did you come up with a good enough solution?