itpresidents / thesis-archive-2020

10 stars 1 forks source link

images are scaled down #69

Open noisyneuron opened 4 years ago

noisyneuron commented 4 years ago

the header image and images through the text are scaled down -- the current URLs returned from wordpress point to images with resolution 1024x576 px --

<img width="100%" alt="Animation of lines of code and visual output"
src="https://itp.nyu.edu/thesis2020/wp-content/uploads/2020/04/animation5-1024x576.gif"
class="figure-img img-fluid">
EonYang commented 4 years ago

Can you please share a link to this page? thanks!

noisyneuron commented 4 years ago

link to my page again :) https://thesis-archive-2020.netlify.app/students/25

EonYang commented 4 years ago

I checked the actual image size which is 1024 by 576, which seems correct. It does look like blurry, but I personally think it's because of the format.

A suggestion is to use a jpeg or png if you don't mind.

EonYang commented 4 years ago

@oveddan BTW, is it possible to request a higher-res hero image size from the server? 1024 do seem a little bit low-quality.

noisyneuron commented 4 years ago

yea, the actual image I uploaded was 1920x1080 -- it's resized on the server and the 1024 is returned for some reason

EonYang commented 4 years ago

https://github.com/itpresidents/thesis-archive-2020/commit/e231951d92f11cfd9065f6152eeb07a0b6de0e5e

I pushed a workaround for temporarily and dangerously solving this.

Will remove this hack when the server serves a higher-res img.

noisyneuron commented 4 years ago

just incase it was missed, this is happening for all images, not just the header.

( and when the server resizes, gifs stop animating :( The image right after the abstract here is a gif - if I remove the _1024x576 suffix from the name, it animates again. )

EonYang commented 4 years ago

just incase it was missed, this is happening for all images, not just the header.

( and when the server resizes, gifs stop animating :( The image right after the abstract here is a gif - if I remove the _1024x576 suffix from the name, it animates again. )

Thank you! I assume the server-side has a good reason downscaling images - better traffic optimization.

However, the gif should be fixed.

Unfortunately the server-side can't respond as fast as we do. I think it will take days to implement that.