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
Generate lower resolution images for faster loading times #4
Generate lower resolution images for faster loading times #4
Conversation
(Difference from #1 is that this one has multiple sizes instead of just 1000x) |
Awesome work by the way! Much better than my proposal :) |
Thanks for the PR! This looks great, would you mind creating new image versions for the better Carina Nebula images I recently added? (img/Carina_Hubble_rotated_wide_short.png, and img/Carina_webb.jpg) Also did how did you create the different Image sizes? I'm assuming you used a tool to quickly generate them? |
Updated! I used the command-line tool ImageMagick, which has a file=carina
type=png
for size in "350" "700" "1400" "2800"
do
convert -resize ${size}x ${file}.${type} ${file}_${size}.${type}
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making those changes! This will definitely help out folks with slower internet!
Currently, the website's images load very slowly. I've generated 2800x, 1400x, 700x, and 350x versions of all images used in the comparisons, and added HTML sizing declarations so the browser will automatically use the image best for the screen resolution.