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

how to use vips handler ? #17

Closed
ghost opened this issue Apr 1, 2020 · 6 comments
Closed

how to use vips handler ? #17

ghost opened this issue Apr 1, 2020 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2020

Hi guys,

Hope you are all well !

As anybody tried to use the vips handler ? Is there any code snippets/gist showing how to register the handler ?

Cheers,
X

@ghost
Copy link
Author

ghost commented Jul 14, 2020

@azumads , thanks for the README info at https://github.com/qor/media/tree/master/handlers/vips

Bu how do you hook it to qor ? Do you have a code snippet/gist ?

@azumads
Copy link
Contributor

azumads commented Jul 14, 2020

As I wrote in readme ,

Usage
Setup media library and add below code, then it will compress jpg/png and generate webp for you.

import "github.com/qor/media/handlers/vips"

vips.UseVips(vips.Config{EnableGenerateWebp: true})

It will replace the image crop handler in https://github.com/qor/media/blob/master/handlers.go

@ghost
Copy link
Author

ghost commented Jul 14, 2020

Thanks for the reply !

I'll have a try because imaging is slow for my batch scripts.

Btw, I made https://paper2code.com/ with qor framework.
So I used extensively your work guys, good job ! 👍

Now, I just need to figure out the answer for the issue qor/admin#223 and we are good. Can you help me on this one ?

@azumads
Copy link
Contributor

azumads commented Jul 14, 2020 via email

@ghost
Copy link
Author

ghost commented Jul 14, 2020

Thanks for your reply !

@ghost
Copy link
Author

ghost commented Jul 14, 2020

Can you ping anybody from your team who can give me a hand on that ?

@azumads azumads closed this as completed Feb 7, 2023
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

1 participant