Forum Bugs

Bug photo by rendering process from html to PDF

PC_Principal
Hello, i have some strange problem with render a few photos from html file.

There is an html file, if you look at it, you can see that everything is good. After rendering, some photos are flipped and stretched - what could it be?

Here is link to output PDF: https://yadi.sk/d/Xw7kQuh8H5aJiA

PrinceLog for this generation:

Sun Nov 8 18:42:03 2020: ---- begin
Sun Nov 8 18:42:04 2020: http://lk.lantanaprint.ru: warning: unsupported properties: box-shadow
Sun Nov 8 18:42:04 2020: https://lk.lantanaprint.ru/css/styles.css: warning: unsupported properties: box-shadow
Sun Nov 8 18:42:04 2020: finished: success
  1. 4cfd6de4862e676df7c04e8b758345a0.html16.6 kB
    Html source
wangp
Please add
img { image-orientation: from-image }

The default value of the image-orientation property in Prince is 'none'. It looks the default value of the image-orientation property was recently changed in the CSS Images 3 draft to 'from-image'.
PC_Principal
Is that work in Prince 11?

Log after generate with img { image-orientation: from-image }:

Tue Nov 10 10:56:58 2020: ---- begin
Tue Nov 10 10:56:58 2020: https://lk.lantanaprint.ru: warning: unsupported properties: box-shadow, image-orientation
Tue Nov 10 10:56:58 2020: https://lk.lantanaprint.ru/css/styles.css: warning: unsupported properties: box-shadow
Tue Nov 10 10:56:58 2020: https://lk.lantanaprint.ru: warning: Unknown image MIME type: text/html
Tue Nov 10 10:56:58 2020: https://lk.lantanaprint.ru: warning: Unknown image format
Tue Nov 10 10:57:01 2020: finished: success

PC_Principal
I think problem in file EXIF orientation - Prince not correct in work with it

Edited by PC_Principal

wangp
'image-orientation' is only supported in Prince 12.1 and later. The 'from-image' value tells Prince to read the EXIF orientation and apply it.
mikeday
In the latest build the image-orientation property has been changed to default to "from-image" to match web browsers.