farm24 Posted March 1, 2022 Share Posted March 1, 2022 i want to create a little html website using HTML CSS and JavaScript but i cant find a way to display the SDO images without downloading them Link to comment Share on other sites More sharing options...
3gMike Posted March 1, 2022 Share Posted March 1, 2022 This is not really my area of expertise, but could you use the data feeds from SDO? https://sdo.gsfc.nasa.gov/resources/feeds.php Link to comment Share on other sites More sharing options...
farm24 Posted March 1, 2022 Author Share Posted March 1, 2022 55 minutes ago, 3gMike said: This is not really my area of expertise, but could you use the data feeds from SDO? https://sdo.gsfc.nasa.gov/resources/feeds.php all of the images there appear to be a year out of date Link to comment Share on other sites More sharing options...
Jesterface23 Posted March 2, 2022 Share Posted March 2, 2022 Something like this? After removing the space after https:// <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_4096_0193.jpg"/> <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_2048_0193.jpg"/> <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_1024_0193.jpg"/> <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_512_0193.jpg"/> That feeds page has examples of archived imagery. 1 Link to comment Share on other sites More sharing options...
farm24 Posted March 2, 2022 Author Share Posted March 2, 2022 1 hour ago, Jesterface23 said: Something like this? After removing the space after https:// <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_4096_0193.jpg"/> <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_2048_0193.jpg"/> <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_1024_0193.jpg"/> <img src="https:// sdo.gsfc.nasa.gov/assets/img/latest/latest_512_0193.jpg"/> That feeds page has examples of archived imagery. That works thank you!!!! I’ll credit you for helping me in the site Link to comment Share on other sites More sharing options...
farm24 Posted March 5, 2022 Author Share Posted March 5, 2022 its up now if you want to take a look https://farm24.github.io/ Link to comment Share on other sites More sharing options...
Vancanneyt Sander Posted March 5, 2022 Share Posted March 5, 2022 It’s painfully slow because you’re linking to the high res images directly in the img tags. This is harmful for the SDO server (as you do not host the images yourself). You can link to the high res imagery but not in the img tag! At SWL we often have local caches to prevent load on the SDO servers and optimise image size for a fast loading site. Link to comment Share on other sites More sharing options...
farm24 Posted March 5, 2022 Author Share Posted March 5, 2022 22 minutes ago, Vancanneyt Sander said: It’s painfully slow because you’re linking to the high res images directly in the img tags. This is harmful for the SDO server (as you do not host the images yourself). You can link to the high res imagery but not in the img tag! At SWL we often have local caches to prevent load on the SDO servers and optimise image size for a fast loading site. The img tags are only the low res not the big ones but the click links are the high res Link to comment Share on other sites More sharing options...
Vancanneyt Sander Posted March 5, 2022 Share Posted March 5, 2022 1 minuut geleden, farm24 zei: The img tags are only the low res not the big ones but the click links are the high res I only checked on my mobile so I didn’t check the source but due to the loading time being above 20sec I could only think of that as the cause. Link to comment Share on other sites More sharing options...
farm24 Posted March 5, 2022 Author Share Posted March 5, 2022 6 uren geleden, Vancanneyt Sander zei: I only checked on my mobile so I didn’t check the source but due to the loading time being above 20sec I could only think of that as the cause. It’s because GitHub pages isn’t the fastest hosting service It’s kinda slow also who do you guys use to host? Link to comment Share on other sites More sharing options...
Vancanneyt Sander Posted March 6, 2022 Share Posted March 6, 2022 5 uren geleden, farm24 zei: also who do you guys use to host? We have our own server and in front of that a CDN. Link to comment Share on other sites More sharing options...
farm24 Posted March 6, 2022 Author Share Posted March 6, 2022 18 minutes ago, Vancanneyt Sander said: We have our own server and in front of that a CDN. Ah I can’t set up my own server due to ISP rules Link to comment Share on other sites More sharing options...
Solarflaretracker200 Posted March 6, 2022 Share Posted March 6, 2022 6 hours ago, Vancanneyt Sander said: I only checked on my mobile so I didn’t check the source but due to the loading time being above 20sec I could only think of that as the cause. It’s pretty fast on Computer 💻 🖥 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now