-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'toInlineResponse' to Media #2636
Conversation
Thanks! Could you add a test for this and also update the docs? |
Added! |
@mbardelmeijer @freekmurze would be great if you can optionally pass a return $media->toResponse($request, 'thumb'); and how about responsive images? |
Good idea!, could you take care of this @mbardelmeijer Responsive images are out of scope for now. |
@freekmurze @rcerljenko I've checked if it would be possible to add conversion support to these methods, but ran into that the We can get the file via the default methods, but then we don't have the memory optimized stream function to use. We can add a 'getConversionStream' method for instance in the |
@mbardelmeijer yes it adds more work.. let @freekmurze decides |
Let's keep it simple for now. Thanks @mbardelmeijer |
Follow-up of #1358