Conversation
🆗 Pre-flight checks passed 😃This pull request has been checked and contains no modified workflow files, spoofing, or invalid commits. It should be safe to Approve and Run the workflows that need maintainer approval. |
|
Hi, I am surprised about the rendering differences. I have used this part of your lesson within my own carpetries-based tutorial (with proper citation) https://dr-eberle-zentrum.github.io/intro-to-git-and-github/instructor/01-git-basics.html and it scales just fine:
Personally, I find the images in the original sizes much too big given their low (but important!) information content. I see your point in the non-scaling strategy, but eventually I would says this is exactly what stylesheets etc are for?!! Will see if I find the time to alter the svgs instead. best, |
|
as an alternative you can put a fixed
and the files will be scaled to similar dimensions. Hope that helps, |
|
Hi Martin, Thank you for the detailed follow-up — I appreciate you thinking through alternatives. This is not a discussion about whether the images are too large, it's a discussion about where responsibility for layout lives (ie where the fix should occur). I am not comfortable with adding fixed widths (either in Markdown or inside the SVGs), as that couples these assets to a particular rendering context which a lesson cannot control. Case in point is the difference in our respective screenshots. I would be happy if the SVG canvases/viewBoxes were adjusted so they scale consistently under the existing CSS and I think that would be a solid improvement. Otherwise, I’m inclined to keep the current behaviour. |
|
Hi, sure, your repo. Eventually, I dont see a difference between a absolute change of the viewport (ie the svg-internal coordinate system) and setting the intended svg-width that does the standard scaling of the viewport to the targeted width. Since SVG is a vector graphics, such a scaling is done anyway and intended. So from my perspective, setting width equals to scaling a pixelgraphics to the respective dimension but without changing the internal coordinate system, which might cause rounding issues and thus results in a distorted image.. Eventually, I went for the svg-width solution in my repo (without the markdown-css-scaling suggested first). I can rewrite this PR towards this as well if you like. Otherwise I am not offended when this PR is closed without merging. 😉 Best, |
|
Asked Carpentries' Workbench team for best practice advice on this and Toby was the only one who piped up with "have certainly used the same approach as in that PR". Merging. |
Auto-generated via `{sandpaper}`
Source : 3228dd6
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-04-10 04:18:58 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 622aafd
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-04-10 04:17:01 +0000
Message : Merge pull request #1112 from martin-raden/patch-1
scale image sizes


The images to illustrate the need for version control were not scaled.
I added appropriate width values.
Best Martin