priyanka
priyanka

Reputation: 325

LinkedIn RichMedia upload

I uploaded an image to LinkedIn using richmedia API and created a post using Share API and this is the post link. But the created post has distorted image like below with gray bars on the sides of the image. Distorted image with gray bars

When I am uploading the same image directly via LinkedIn it is getting resized and the image is showed without any gray bars.

Why am I seeing this issue while creating the media with LinkedIn API?

Is there any resolution limitations for media upload via API? If there is what are those limitations?

Original image which I am trying to upload:

Original image which I am trying upload

Thanks for your help in advance.

Upvotes: 0

Views: 391

Answers (2)

priyanka
priyanka

Reputation: 325

Below is the reason why LinkedIn is adding padding to the image when an image is uploaded via Rich Media API.

Reference for the below description

LinkedIn recommends that you upload rich media in 1200 x 627 aspect ratio. Images uploaded in the recommended 1200 x 627 ratio are automatically displayed on the mobile app with white padding on the top/bottom or sides of the image, to fit the ratio without being cropped. Although a 3:2 aspect ratio, or 1200 x 800, displays fully without padding, LinkedIn recommend using the industry-standard 1200 x 627 ratio.

Upvotes: 1

Ervin Kalemi
Ervin Kalemi

Reputation: 607

Have you tried it using the UGC posts, which according to the docs will eventually substitute the Shares API?

https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin#create-an-image-share

I haven't had any luck due to the following Bad request: Attempting to associate a ugc with an asset that's not owned by the author, but you may want to give it a shot.

Since you have access to richMedia API, maybe it will work for you.

Upvotes: 0

Related Questions