I added image processing using ImageSharp to prepare product images for Twitter’s card format. The images get resized to 628x628 and centered in a 1200x628 canvas, with the edge pixels extended to fill the gutters on either side. This ensures the product images display nicely in Twitter’s link preview cards.

I also fixed a bug where the posted status wasn’t being saved to the database after tweeting, added null checks for when there are no new products to tweet, and extracted some code into dedicated methods for cleaner organization.