Skip to content

Commit c0ea1d4

Browse files
Fix an error in the resize-images.js script.
Re add missing image for collaborative GIS blog post. Place the 2 images for the last 2 added blogs at the right place and remove old unnecessary size informations in blogpostsDetails.json.
1 parent e0cec89 commit c0ea1d4

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

scripts/resize-images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function calculateImageSize(fullSizePath) {
2626
}
2727
else {
2828
targetHeight = containerHeight;
29-
targetWidth = Math.round(targetHeight / width * height);
29+
targetWidth = Math.round(targetHeight * width / height);
3030
}
3131
return [targetWidth, targetHeight];
3232
}

src/components/blog/blogpostsDetails.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,20 @@
22
{
33
"url": "https://david-brochart.medium.com/create-your-own-layers-in-jupytergis-cbb995a89b16",
44
"title": "Create your own layers in JupyterGIS",
5-
"image": "img/blogposts/Create-layers-JupyterGIS.png",
5+
"image": "img/blogposts/resized-images/Create-layers-JupyterGIS.png",
66
"summary": "JupyterGIS-tiler is a JupyterGIS extension that lets you use a notebook to process your (Xarray) data and make it available as raster tiles, so that it can be visualized in JupyterGIS.",
77
"date": "June 25, 2025",
88
"authors": "David Brochart",
9-
"imageID": "blogpost-image-134",
10-
"imageNaturalWidth": 1400,
11-
"imageNaturalHeight": 681,
12-
"imageRenderedWidth": 273,
13-
"imageRenderedHeight": 132.8
9+
"imageID": "blogpost-image-136"
1410
},
1511
{
1612
"url": "https://blog.jupyter.org/c-in-jupyter-interpreting-c-in-the-web-c9d93542f20b",
1713
"title": "C++ in Jupyter — Interpreting C++ in the Web",
18-
"image": "img/blogposts/CPP-in-JupyterLite.png",
14+
"image": "img/blogposts/resized-images/CPP-in-JupyterLite.png",
1915
"summary": "Scientists and engineers utilize programming languages not only to build software systems but also to drive interactive exploratory workflows. They leverage developer tools to explore and reason through problems effectively.",
2016
"date": "June 19, 2025",
2117
"authors": "Anutosh Bhat, Vassil Vassilev",
22-
"imageID": "blogpost-image-133",
23-
"imageNaturalWidth": 1400,
24-
"imageNaturalHeight": 1120,
25-
"imageRenderedWidth": 225,
26-
"imageRenderedHeight": 180
18+
"imageID": "blogpost-image-135"
2719
},
2820
{
2921
"url": "https://blog.jupyter.org/jupyterlite-0-6-0-is-released-b4bc69bfc8f4",
Loading

0 commit comments

Comments
 (0)