Jump to content

Prevent Emby from Stretching ArtWork in non-Emby Aspect Ratio


Recommended Posts

Posted

Hi, I believe this has been asked before but i couldn't find anything conclusive.

Is there a setting where I can choose to display the art work in its Original Aspect Ratio in Emby?

I have a bunch of fanart for old movies with 4:3 ratio and i do not want emby to stretch them into 16:9. I am fine with black border to the left and right of the 4:3 art work.

 

Posted

Hi.  Exactly where are you seeing an issue?  Most of our apps will look at the aspect ratio of the first few items and decide how to display the items based on that.  So, if you had a library of all 4:3 material, it should display that way.

Posted

I configured my movie library using all offline manual images. For every movie, there's one file with *-poster.jpg (3:4 ratio) and another with *-fanart.jpg (3:2 ratio). In the movie catalogue, I choose the view as "Thumb" - emby took the fanart and stretch it to 16:9 

Posted

just to add, i have my backend 4.7.13 running on Raspberry PI and front end using Chrome remotely

Posted

Hi, can you show a screenshot example of what you mean? Thanks.

Posted

See below, poster and fanart with 2 perfect circles being stretched in emby.

folder content: 

Fanart in 4x3 ratio displaying 2 perfect circles

poster in 3x4 ratio displaying 2 perfect circles

image.png.38db481ae7a0e78cb8611fa3f51a6980.png

Primary View

image.png.a7b6f256afc06676c18cb84b9e18a749.png

 

Thumbnail View

image.png.dab0ffb903785a3a556c9173d9eb614a.png

 

 

Video Listing View

image.png.45b4ece081e458f1240867bbe20f96c9.png

 

Posted

Ok this is normal. Thumb and fanart images should be 16:9.

Posted
8 hours ago, Luke said:

Ok this is normal. Thumb and fanart images should be 16:9.

Can we have an option to have the 4:3 images centred (instead of stretched ) in emby 16:9 container? 

Or should i rename the pic into some other name such that image is not stretched? 

Posted

Only the main poster is adaptive. The other image types all have fixed image sizes and expected aspect ratios.

Posted
2 hours ago, Luke said:

Only the main poster is adaptive. The other image types all have fixed image sizes and expected aspect ratios.

Would you consider making "stretched to fit" feature optional in Emby future release?

visproduction
Posted (edited)

I think the current styles options are better.

'Stretched to Fit' is perhaps not the best way to describe your design preference. Images may appear stretched or squashed.  Either the original image is wrong or the styling causes the image to fill a div area which causes narrow images to widen, wide images to become narrower, tall images to squash and short images to get taller.  When all these are possible, 'Stretched to Fit' does not convey any design choice.

If you allow the poster size to change, it may cause parts of the page to break.  Have a look at the media pages in the 12+ sizes of mobile portrait and widescreen.  Sometimes, this image size change can cause text to overlap or sections pulled up.  Also check this in different languages.  Long translated words could be wrapped because now the available space is different.

The other issue is what about most people already are using the correct poster format which is used everywhere online.  This optional switch would make their pages have squashed poster images and it may not be very obvious how to fix it.  The result could easily be that people give up on the program, as too complex and use some other app.

Edited by visproduction
Posted

I have read from some other threads that Emby intelligently stretch image with ratio close enough to 16:9 - can we not make this optional such that we can turn this feature off in settings?

 

 

Posted

It’s possible, yes.

Posted
8 hours ago, Luke said:

It’s possible, yes.

Thank you Luke - it will be nice to have that.

 

  • Thanks 1
  • 7 months later...
Posted

Hey aikkie,

I've been troubled by the same problem in last few month until I found the solution below.

Add the following Custom css code in emby server settings, and save the changes.

.coveredImage {
    object-fit: cover;
}

image.png.e8ead532db9e62053558fabfa50c5f41.png

The emby server version I use is 4.8.1.0

I have tested it in browser's desktop mode and TV mode, all work fine.

By the way, if you are fine with image crop, you can try using the Settings below, which will keep the 16:9 aspect ratio but without black border to the left and right.

.coveredImage {
    object-fit: contain;
}
  • Thanks 1
Posted

I would suggest removing that custom css once you have the 4.8.2 maintenance release. An adjustment has already been made for this and you will no longer need it.

  • Like 1
Posted
On 2/14/2024 at 6:36 PM, robbbin said:

Hey aikkie,

I've been troubled by the same problem in last few month until I found the solution below.

Add the following Custom css code in emby server settings, and save the changes.

.coveredImage {
    object-fit: cover;
}

image.png.e8ead532db9e62053558fabfa50c5f41.png

The emby server version I use is 4.8.1.0

I have tested it in browser's desktop mode and TV mode, all work fine.

By the way, if you are fine with image crop, you can try using the Settings below, which will keep the 16:9 aspect ratio but without black border to the left and right.

.coveredImage {
    object-fit: contain;
}

This works perfectly! Thanks @robbbin!

i chose "contain" in the end - would you happen to know if it's possible to change the border colour?

the border was shaded with RGB (52,52,52), my intention is to change it to RGB(30,30,30) to match the background of the gallery so that the border is sorta invisbile.

Thanks!

 

Posted

@aikkie

First, let me correct a mistake. I wrote the descriptions for the two examples in reverse. But seems you get the point.

And for the question you asked

On 17/02/2024 at 22:22, aikkie said:

i chose "contain" in the end - would you happen to know if it's possible to change the border colour?

the border was shaded with RGB (52,52,52), my intention is to change it to RGB(30,30,30) to match the background of the gallery so that the border is sorta invisbile.

If you go to browser’s F12 inspector menu, and choose the element which contains the image, you will find it is defined as bellow

PastedGraphic.png.5bf95d5e9e7d5b142a1f98acda2e329c.png

So you can just add custom css to override it by using code bellow (Note: you need to use !important options to obtain higher priority)

.cardContent-background {
    background-color: rgb(30, 30, 30) !important;
}

And like Luke said this may no longer work with the next version. Perhaps there might be better solutions, but here I'm just offering you an idea. 

On 15/02/2024 at 06:44, Luke said:

I would suggest removing that custom css once you have the 4.8.2 maintenance release. An adjustment has already been made for this and you will no longer need it.

 

  • 1 year later...
Posted (edited)
On 2/14/2024 at 6:36 PM, robbbin said:

Hey aikkie,

I've been troubled by the same problem in last few month until I found the solution below.

Add the following Custom css code in emby server settings, and save the changes.

.coveredImage {
    object-fit: cover;
}

image.png.e8ead532db9e62053558fabfa50c5f41.png

The emby server version I use is 4.8.1.0

I have tested it in browser's desktop mode and TV mode, all work fine.

By the way, if you are fine with image crop, you can try using the Settings below, which will keep the 16:9 aspect ratio but without black border to the left and right.

.coveredImage {
    object-fit: contain;
}

Strangely, the CSS display effect I set is exactly the opposite of what you described.

When set as below, it display thumb as original aspect radio (4:3). and in terms of CSS semantics, 'contain' means that the image will be displayed in its entirety, without being stretched or cropped.

.coveredImage {
    object-fit: contain;
}

When set as below,  it display thumb as emby standard (16:9)

.coveredImage {
    object-fit: cover;
}

server version: 4.9.1.0 beta

Edited by syvcxm

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...