cu-mkp / sandbox

The “Sandbox” space makes available a number of resources that utilize and explore the data underlying "Secrets of Craft and Nature in Renaissance France. A Digital Critical Edition and English Translation of BnF Ms. Fr. 640" created by the Making and Knowing Project at Columbia University.
https://cu-mkp.github.io/sandbox/
6 stars 1 forks source link

sp23-nelkin final project - rotate image #134

Open ps2270 opened 5 months ago

ps2270 commented 5 months ago

Related to #133 in sp23-nelkin final project, many images need to be rotated 90 degr.

njr2128 commented 5 months ago

These are the images that need attention: image image image image

njr2128 commented 5 months ago

use:

style="transform:rotate(90deg);">

From https://www.w3schools.com/cssref/css3_pr_transform.php

njr2128 commented 5 months ago

this ended up looking like this: image

Need a different solution

njr2128 commented 5 months ago

Trying to add a margin to see if that will help - a la https://www.geeksforgeeks.org/how-to-rotate-image-in-html/ and https://www.w3schools.com/cssref/tryit.php?filename=trycss3_image_gallery

<img src="./media-nelkin/image9.jpg" style="width:3.65278in;height:2.73959in" style="transform:rotate(90deg);" style="margin-top:100px;" style="margin-bottom:100px;" alt="A hand holding a string Description automatically generated with medium confidence" />
njr2128 commented 5 months ago

This has landed me with this layout :( image

njr2128 commented 5 months ago

@tcatapano - help?

njr2128 commented 4 months ago

Update after removing the sizing:

<img src="./media-nelkin/image9.jpg" style="transform:rotate(90deg);" style="margin-top:100px;" style="margin-bottom:100px;" alt="A hand holding a string Description automatically generated with medium confidence" />

image

njr2128 commented 4 months ago

Now trying removing the margins: <img src="./media-nelkin/image9.jpg" style="transform:rotate(90deg);" alt="A hand holding a string Description automatically generated with medium confidence" />

this resulted in the same as the first try: image

njr2128 commented 4 months ago

Seems to have had no effect:

image

<p><img src="./media-nelkin/image9.jpg" style="transform:rotate(90deg);" alt="A hand holding a string Description automatically generated with medium confidence" /></p>

Looks like it was already in its own <p> -- as all images are in their own -- so it overwrote it image

njr2128 commented 4 months ago

This had no effect: <div><img src="./media-nelkin/image9.jpg" style="transform:rotate(90deg);" alt="A hand holding a string Description automatically generated with medium confidence" /></div>

image

image

njr2128 commented 4 months ago

NOTE: it does look like these changes are having an effect on how much of the text is covered by the image

ps2270 commented 4 months ago

can we rotate the originals then add them in a new media file to github, deleting the old ones? Seems like you are spending a lot of time on this issue?