Imaging / Streams integrationat 2008-10-21 in Announcements by friebe (0 comments) The imaging API has been integrated with io.streams. This means there is now no limitation anymore where images can be read from and stored to. Compare for yourself!Old (and still possible) way - limited to files (via io.File) and memory (io.Stream): $image->saveTo(new JpegStreamWriter(new File('out.jpg'))); New - exchange right-hand side of the following assignment with any of io.streams.MemoryOutputStream, io.streams.FileOutputStream, peer.SocketOutputStream, peer.ftp.FtpFileOutputStream or various others: $output= ... |
|