Skip to content
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

Grab external image, generate thumbnail and use it on website #187

Closed
Fraktl opened this issue May 15, 2013 · 1 comment
Closed

Grab external image, generate thumbnail and use it on website #187

Fraktl opened this issue May 15, 2013 · 1 comment
Labels
Attn: Critical This issue or PR is critical and should be rushed into a new release ASAP.

Comments

@Fraktl
Copy link

Fraktl commented May 15, 2013

Is there a way to give an absolute url as parameters and generate a thumbnail from an external image located anywhere on the web?

Is this possible or should I configure something like gaufrette?

@havvg
Copy link
Contributor

havvg commented May 15, 2013

The easiest way would be using Gaufrette, registering the stream wrapper and use the Liip\ImagineBundle\Imagine\Data\Loader\StreamLoader - see #63 ff.
It's documented with the Gaufrette example: https://github.com/liip/LiipImagineBundle/blob/7b2cd5c8af3fb6602eecc83fb4dac74986a97bdb/Resources/doc/data-loader/stream.md#streamloader

You also can use the stream loader directly without the need of Gaufrette, but it makes life easier :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attn: Critical This issue or PR is critical and should be rushed into a new release ASAP.
Projects
None yet
Development

No branches or pull requests

1 participant