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

why the picture size becomes bigger? #2

Closed
zboya opened this issue Jul 22, 2016 · 2 comments
Closed

why the picture size becomes bigger? #2

zboya opened this issue Jul 22, 2016 · 2 comments
Assignees

Comments

@zboya
Copy link

zboya commented Jul 22, 2016

I use ReduceHeight function to deal with test.jpg.Then I get test_1.jpg.But the size is more bigger than the original picture.

ls -lh
total 21M
-rw-rw-r-- 1 lstbao lstbao 768 7月 22 16:08 carve.go
-rw-rw-r-- 1 lstbao lstbao 21M 7月 22 15:17 imret.pdf
-rw-rw-r-- 1 lstbao lstbao 151K 7月 22 16:09 test_1.jpg
-rw-rw-r-- 1 lstbao lstbao 349 7月 22 15:47 test_image.go
-rw-rw-r-- 1 lstbao lstbao 57K 7月 22 14:53 test.jpg

@aaparella
Copy link
Owner

Not able to recreate locally. What image are you trying to use it with? And can I see the relevant code?

@aaparella aaparella self-assigned this Jul 22, 2016
@zboya
Copy link
Author

zboya commented Jul 25, 2016

I know why? There is a option about picture quality ,&jpeg.Options{100} . Change 100 to 50 can be more smaller.

@zboya zboya closed this as completed Jul 25, 2016
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

2 participants