fernandod1 / Instagram-to-discord

Monitor instagram user account and automatically post new images to discord channel via a webhook. Working 2022!
https://www.fernando.info
Other
127 stars 62 forks source link

is there any way of making the full image appear when the image posted on the instagram isn't square? #5

Closed EltonMcJosh closed 3 years ago

fernandod1 commented 3 years ago

Please uncomment line 78 of code:

embed["image"] = {"url":get_last_thumb_url(html)} # unmark to post bigger image

Test script and tell me if new image size is the one you require.

InvisibleOS commented 3 years ago

Please uncomment line 78 of code:

embed["image"] = {"url":get_last_thumb_url(html)} # unmark to post bigger image

Test script and tell me if new image size is the one you require.

Even this just makes it a square. It takes the thumbnail of the post on Instagram I guess. It doesn't take the whole image that was posted. There are some posts that are of different dimensions. This posts a bigger image but it's just a square. I think a way to get the post from the post link should be added so that the complete image is posted instead of just a square. The square image sometimes cuts a part of the post.

Edit: I figured it out. To get the full-sized photo for the larger image you simply need to type

embed["image"] = {"url":get_last_image_url(html)}

instead of embed["image"] = {"url":get_last_thumb_url(html)}

fernandod1 commented 3 years ago

Thanks for sharing discovery