demimonde / exif2css

Convert EXIF orientation to CSS transform rules.
MIT License
18 stars 3 forks source link

Issue with orientations > 4 #3

Open JureSotosek opened 5 years ago

JureSotosek commented 5 years ago

From README:

One known issue is that with orientations > 4, the transformed image will have different dimensions from its box so that whitespace might appear on the right and at the bottom of the image.

Any known workaround for this?

4r7d3c0 commented 4 years ago

@JureSotosek you can do it with an additional container that will have the dimensions of your box with overflow hidden. i've done something similar just need to dig up the code, and add it to this package.