MessagesBug
This is a talk page for improving
Transforms To Rotate Images
Can we add CSS transform to the style attributes recognized within the WikiStyle specification?
Rotate image 90 degrees using transform: rotate(90deg); Example:
https://www.w3schools.com/cssref/tryit.php?filename=trycss_func_rotate2
I got an image that was taken with a camera that is turned sideways.
I would rather just apply a style to rotate it 90 degrees than to open a shell,
login, go to directory, find the CSS file, edit the CSS file, then have to set
a class on the image then it does not work, then you have to mess with it for hours
and maybe it eventually works, and it is just a big hassle to use.
I hate CSS and would prefer to just do everything in the wiki, without a recipe
or addon, or anything complicated like too much of PmWiki is.
It would be much easier to just enter %transform="rotate(90deg)"%Attach:filename.jpg%%
--gnuzoo
I would recommend using jpegtran or exiftran or convert
to rotate the picture before or after uploading it. Rotating an
element with CSS
messes the spacing
and the rotated image overflows the text. Petko
*SIGH*
Rotation of an Element with CSS Breaks Layout Flow.
I did not know this. Thank you for the explanation.
CSS fails me again. Why they gotta make it so difficult?
--gnuzoo
There is already Cookbook:RotatePicture where you can rotate the pictures in the wiki. Petko