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

Create thumb image without storing #1204

Closed
Arman-Hosseini opened this issue Aug 13, 2019 · 9 comments
Closed

Create thumb image without storing #1204

Arman-Hosseini opened this issue Aug 13, 2019 · 9 comments

Comments

@Arman-Hosseini
Copy link

Hi guys.
How do I create an image without saving it?
I want to set the height of the image and get the rendered image without saving.

@michellesanver
Copy link
Contributor

I don't think you can render an image without saving it. Do you know if you can do that @dbu?

@Arman-Hosseini
Copy link
Author

Do you have my problem too? @michellesanver

@michellesanver
Copy link
Contributor

No I don’t :)

@Arman-Hosseini
Copy link
Author

I did this through documents and symfony services. @michellesanver

@dbu
Copy link
Member

dbu commented Oct 7, 2019

I am not aware of any option to do that currently. I am sure it would be somehow implementable, but would need someone who wants to contribute it (do you want to work on it @Arman-Hosseini?) and you would need to convince the maintainers that the use case is general enough to be needed. If its only about scaling for a preview/admin interface, this could be done in the browser with the image size attributes, or maybe with a nice javascript plugin to decide on what to crop and so on. If its a super specific different use case, it could also make sense that you write your own controller to interact with the LiipImagineBundle services or Imagine library itself.

@Arman-Hosseini
Copy link
Author

Hi @dbu .
Excuse me I think I haven't spoken clearly about it.
I have some photos on my hosting that I want to resize and display without re-saving them.
I do not know if this library is capable of doing so and I have not fully read the documentation because it is urgent!
In general, this is what I need.

@dbu
Copy link
Member

dbu commented Oct 7, 2019

the purpose of this bundle is to provide scaled images on websites. as the output will be the same each time the same filter set is applied, it is more efficient to store the result of the filter set. when the image is updated on the server, the cache needs to be cleared.

and I have not fully read the documentation because it is urgent!

look, this library is developped by people in their spare time and offered for free to use. we are happy if it is useful for you, but we don't do free consulting on top of that.

@Arman-Hosseini
Copy link
Author

I meant when I asked this question I was in urgent need of it, but now I've solved it and thank you and this great community. @dbu

@dbu
Copy link
Member

dbu commented Oct 7, 2019

glad to hear!

@dbu dbu closed this as completed Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants