Skip to content

Best way to write an image using Flysystem? #854

Answered by ausi
jcogs-design asked this question in Q&A
Discussion options

You must be logged in to vote

You can use ImageInterface::get() that returns the binary data of the image that you can then write to the Flysystem:

$filesystem->write($path, $image->get($format, $options), $config);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jcogs-design
Comment options

Answer selected by jcogs-design
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants