Scaling images in Teams popup modal

%3CLINGO-SUB%20id%3D%22lingo-sub-1359777%22%20slang%3D%22en-US%22%3EScaling%20images%20in%20Teams%20popup%20modal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1359777%22%20slang%3D%22en-US%22%3E%3CP%3EHie%2C%3C%2FP%3E%3CP%3EI'm%20using%20the%20Share%20To%20Teams%20button%20on%20a%20webpage%2C%20using%20this%20documentation%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbuild-and-test%2Fshare-to-teams%23share-to-teams-for-education%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbuild-and-test%2Fshare-to-teams%23share-to-teams-for-education%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWhen%20I%20press%20the%20button%20and%20the%20popup%2Fpreview%20modal%20is%20displayed%2C%20the%20image%20gets%20cropped.%3C%2FP%3E%3CP%3ESee%20original-image%20and%20popup-image%20in%20the%20attachments.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20first%20question%20is%20whether%20it's%20possible%20or%20not%20to%20pass%20metadata%20to%20scale%20the%20image%20differently%3F%3C%2FP%3E%3CP%3EAlso%2C%20instead%20of%20using%20the%20popup-image%20that%20gets%20displayed%2C%20is%20it%20possible%20to%20show%20the%20page%20that%20the%20link%20goes%20to%20as%20an%20image%20in%20the%20popup%20module%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1359777%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hie,

I'm using the Share To Teams button on a webpage, using this documentation https://docs.microsoft.com/en-gb/microsoftteams/platform/concepts/build-and-test/share-to-teams#shar...


When I press the button and the popup/preview modal is displayed, the image gets cropped.

See original-image and popup-image in the attachments.

 

My first question is whether it's possible or not to pass metadata to scale the image differently?

Also, instead of using the popup-image that gets displayed, is it possible to show the page that the link goes to as an image in the popup module?

 

Thanks in advance!

1 Reply
Highlighted

@emilpetersson , Yes you can pass the meta-data and scale the image. If you use the link it will open up in browser not within teams