cofoundry icon indicating copy to clipboard operation
cofoundry copied to clipboard

Why is my thumbnail image rotated?

Open JornWildt opened this issue 3 years ago • 5 comments

When I upload an image in tall format, the generated thumbnail is rotated to wide format - but the original image is not. That makes it rather confusing to work with the thumbnails.

JornWildt avatar Apr 13 '21 19:04 JornWildt

Is the image rotated (incorrect orientation) or is the crop incorrect? If it is the crop, is it in the details view or the table view?

HeyJoel avatar Apr 13 '21 21:04 HeyJoel

This is the original image: http://bogevanghytten.dk/assets/images/12-3560394234989-dE1r08/soverum.jpg

This is the thumbnail displayed in "http://bogevanghytten.dk/admin/images#/12" : http://bogevanghytten.dk/assets/images/12-3560394234989-dE1r08/soverum.jpg?anchor=MiddleCenter&mode=Crop&width=220

As you can see, the thumbnail is rotated.

JornWildt avatar Apr 14 '21 06:04 JornWildt

Ok, it looks like the orientation metadata isn't handled correctly.

I expect you are using the SkiaSharp plugin? There's no orientation detection in that as I don't think SkiaSharp handles it, and it also strips the metadata. You'll probably have better luck with the ImageSharp plugin, which is much more fully featured, and you can also configure it to keep the metadata in the image.

HeyJoel avatar Apr 14 '21 06:04 HeyJoel

Okay, I'll try the ImageSharp plugin.

JornWildt avatar Apr 14 '21 18:04 JornWildt

@JornWildt Hello

sunny7713 avatar Apr 15 '21 09:04 sunny7713