Photos not staying rotated

53 views
Skip to first unread message

Jon

unread,
Jul 30, 2019, 3:01:01 AM7/30/19
to TiddlyWiki
Hi,

If I link to a photo that has been rotated in my folder, for example <img src="Folder name/photo name" >, the image appears in my wiki in it's original, unrotated position.

What's the best way round this?

Regards
Jon

Jed Carty

unread,
Jul 30, 2019, 3:47:10 AM7/30/19
to TiddlyWiki
Browsers don't always play nicely with exif data in images.

I am not sure it will work but you could try adding

image-orientation: from-image;

To the tags style attribute.

Jeremy Ruston

unread,
Jul 30, 2019, 3:49:36 AM7/30/19
to tiddl...@googlegroups.com
Hi Jon

Rotating images used to be a time-consuming operation for digital cameras and phones. To avoid it, the JPEG standard allows a bitmap to be specially flagged to cause it to be rotated through 90, 180 or 270 degrees for display. This allows cameras and image editing programs to very quickly rotate images, without having to modify the pixels comprising the image.

The trouble is that these flags are used inconsistently, and not always honoured by display software. Hence your experience that a single image can appear differently in different contexts.

There are some more details here:


The usual  solution is to use different software to rotate the images. If it’s an image embedded in TW5 (rather than an external image using _canonical_uri) then you can use the provided rotate image toolbar button:

Best wishes

Jeremy


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/74d3b58c-9fbc-447d-98c7-5664882844e7%40googlegroups.com.

PMario

unread,
Jul 30, 2019, 3:57:22 AM7/30/19
to TiddlyWiki
Hi,

For Windows I'm using Irfanview software, which has a lossless rotation - save feature.
It also has a lot of other image manipulation features. Especially interesting is the BATCH processing.

-m

Jon

unread,
Jul 30, 2019, 5:17:10 AM7/30/19
to tiddl...@googlegroups.com
Thanks everyone for your quick replies and I understand the issues a bit better now. The Irfanview software worked a treat.

Regards
Jon
Reply all
Reply to author
Forward
0 new messages