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

请问这个转换图片方法有宽度参数么? #40

Open
anyforever opened this issue Sep 1, 2016 · 1 comment
Open

请问这个转换图片方法有宽度参数么? #40

anyforever opened this issue Sep 1, 2016 · 1 comment

Comments

@anyforever
Copy link

anyforever commented Sep 1, 2016

wkhtmltox_convert 转换图片,有宽度参数么?
How to use the width parameter?

@anyforever
Copy link
Author

I got it. via http://blog.sina.com.cn/s/blog_951f9ebb0102va1r.html

$result = wkhtmltox_convert(
'image',
array(
'out' => '1.jpg',
'in' => 'http://www.baidu.com/?tn=98794045_hao_pg',
'screenWidth'=>790,
'smartWidth'=>true,
'quality'=>100,
'fmt'=>'jpg'
)
);

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