jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

Is there a way to optimize images? #45

Closed laurabennett closed 3 years ago

laurabennett commented 3 years ago

It would be nice to have the ability to specify the size of the image returned. Does Instagram provide a thumbnail option?

jsmrtn commented 3 years ago

Unfortunately not. We're just returning everything the API gives us from the media endpoint, see here. There is a thumbnail, but it's only provided if the media type is video.

Unfortunately Craft's native transforms do not work with remote URLs, so you would need to use something like Imager X. You could always use it's predecessor Imager, which is free, but that has been deprecated so if there are any issues you likely wouldn't get a fix.