Open scott-seo opened 6 years ago
I am going to answer my own issue.
So it turns out StripMetadata was added to Options after v1.0.10 The default boolean value for this field is false.
By trial and error I ended up setting StripMetadata to true. That gave me result image file length that is close to what it used to be. I am seeing 13019 bytes as file length. 6 bytes more than before. I can live with that.
I just wish this field default value is set to true. This would have came across as regression test failure in my organization.
Can this be documented or can the default value be changed to true so others can be saved from the trouble I went through?
golang version: 1.9.2 vips version: 8.6.1 OS: OSX 10.12.6 Sierra
how to replicate the issue
check out v1.0.10 and download this large image over to fixtures folder
then run the following test
Verify that result image, fixtures/test_resize_large_out.jpg file length is 13103
Check out v1.0.11 and rerun the same test
Rerun the same test from above and see that result image which is fixtures/test_resize_large_out.jpg file length is now 35814.
The source image, test_large.jpg is roughly 14 meg. This may not be happening for smaller images. I will compare the changes between v1.0.10 and v1.0.11.
v1.0.17 has the same issue.
Any help or insight into why this would be greatly appreciated.