If composer can't be run from x-elfinder module gui
under PHP7.4
1 - elFinder plugins vendor Google Drive API
Override module plugins.
Unzip this archive to the trust path directory :
trust_path/modules/xelfinder/plugins
2 - Google Drive API
Folllow instructions to get your id and key
Google's OAuth 2.0
3 - elFinder frontend
Click Mount Drive (auth and select your folder)
4 - GoogleDrive Embed Workaround
TL;DR
Use this link instead:
https://drive.google.com/thumbnail?id=XXXX&sz=s4000
sz parameter is important to set the max size of the image.
sz=s32: 32x32 pixels
sz=s64: 64x64 pixels
sz=s128: 128x128 pixels
sz=s256: 256x256 pixels
sz=s512: 512x512 pixels
sz=s1024: 1024 pixels in width (height is adjusted to maintain aspect ratio)
sz=s4000: 4000 pixels in width (height is adjusted to maintain aspect ratio)
Ref.:
Images from Google drive in embedded HTML no longer working
Issue Tracker