thephpleague / glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.
http://glide.thephpleague.com
MIT License
2.55k stars 199 forks source link

Difference between getImageResponse and outputImage #272

Closed theprobugmaker closed 2 years ago

theprobugmaker commented 4 years ago

It might be a newbie question but I see in the docs using getImageResponse in others code using outputImage so I don't really get the difference.

pau1phi11ips commented 2 years ago

getImageResponse should be used if you're using it in a Framework that needs the response passing thru it.

outputImage is used mainly when using bare bones PHP

See here: https://glide.thephpleague.com/2.0/config/responses/