What is the optimal og:image size for sharing a link in Whatsapp (Slow image rendering)
Asked Answered
B

2

11

It seems very easy to find the optimal size for sharing a link on Facebook. I have an app that shares to Facebook and the image shows perfectly. I'm using the same sizes for Whatsapp, but what happens there is that it takes the image too long to render in comparison to other sites I tried to share.

My first guess was the size, but if you have any other ideas for the slow rendering, it would be great!

Boatbill answered 8/7, 2016 at 12:10 Comment(0)
I
0

I just checked what Whatsapp are using themselves by looking at the source of https://web.whatsapp.com/ There you can find this line: enter image description here.

In the link you will find a png file with these properties: enter image description here

So my guess anything close to this should be fine

Interlining answered 2/5 at 10:50 Comment(0)
B
-1

According to the fb sharing guide the minimum size for the image is 200x200 This is what the guide says.

Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images. Images can be up to 8MB in size.

If your image is smaller than 600 x 315 px, it will still display in the link page post, but the size will be much smaller.

The minimum image size is 200 x 200 pixels. If you try to use an image smaller than this you will see an error in the Sharing Debugger.

Here is a link to the guide. https://developers.facebook.com/docs/sharing/best-practices

You can try to compress the image by running it through an online compression tool like https://compressor.io/ or http://www.tinypng.com . Also you could try resizing the image to the minimum permitted 200x200 and see if that helps.

Bistoury answered 8/7, 2016 at 12:21 Comment(5)
As I pointed out, Facebook has an explicit guide. My problem is Whatsapp. As I said, I'm currently using 1200 x 630 - Facebooks' best practice and the image renders, but too slow in comparison to other links like http://stackoverflow.com.Boatbill
Stack uses a 316x 316 sized image. I suggest using around 300x300 sized image. Here is the image that stack uses cdn.sstatic.net/Sites/stackoverflow/img/…Bistoury
Please make this as the answer if it helps you out.Bistoury
OP is referring to sharing via whatsapp not FB. Anyone have an answer for this?Gimel
@BarGoldinfeld asked about sharing image on whatsapp not on facebook!!! For whatsapp size of image must be less than 300KB which is contradiction of above ans (Images can be up to 8MB in size)Wateriness

© 2022 - 2024 — McMap. All rights reserved.