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

Some files become larger after compression/transcoding #30

Open
g-rock84 opened this issue Oct 5, 2017 · 5 comments
Open

Some files become larger after compression/transcoding #30

g-rock84 opened this issue Oct 5, 2017 · 5 comments

Comments

@g-rock84
Copy link

g-rock84 commented Oct 5, 2017

I was testing Compy on some http websites and I am getting some strange numbers for the "amount transcoded" report. Example:
2017/10/03 07:53:27 transcoded: 53 -> 77 (145.3%)
2017/10/03 07:53:27 transcoded: 61 -> 74 (121.3%)
2017/10/03 07:52:56 transcoded: 61 -> 74 (121.3%)
2017/10/03 07:52:56 transcoded: 69 -> 93 (134.8%)
2017/10/03 07:52:28 transcoded: 0 -> 23 (+Inf%)

@gaul mention:

Very small HTML and images can increase in size due to overhead of compression metadata and possibly different formats have different overhead, e.g., GIF vs. WebP.

Perhaps a conditional statement could be included, such as "if x is this small or smaller then bypass transcoding/compression, else transcode/compress"?

@ignaciovidalfranco
Copy link

I agree. I also face the very same problem.

@gaul
Copy link
Collaborator

gaul commented Dec 12, 2017

Could you share which pages exhibit these symptoms so we can track them more precisely?

@ignaciovidalfranco
Copy link

You can check http://en.simplesite.com/, which is a simple HTTP served page.

2017/12/13 00:35:42 transcoded: 807 -> 807 (100.0%)
2017/12/13 00:35:42 transcoded: 259 -> 259 (100.0%)
2017/12/13 00:35:42 transcoded: 113 -> 116 (102.7%)
2017/12/13 00:35:42 transcoded: 1657 -> 1657 (100.0%)
2017/12/13 00:35:42 transcoded: 7998 -> 7998 (100.0%)
2017/12/13 00:35:42 transcoded: 4400 -> 4400 (100.0%)
2017/12/13 00:35:42 transcoded: 49896 -> 56406 (113.0%)
2017/12/13 00:35:42 transcoded: 25220 -> 25220 (100.0%)
2017/12/13 00:35:42 transcoded: 17515 -> 17515 (100.0%)
2017/12/13 00:35:42 transcoded: 32090 -> 32090 (100.0%)
2017/12/13 00:35:42 transcoded: 77651 -> 88735 (114.3%)
2017/12/13 00:35:42 transcoded: 83303 -> 93407 (112.1%)
2017/12/13 00:35:42 transcoded: 60399 -> 67544 (111.8%)
2017/12/13 00:35:42 transcoded: 93691 -> 105071 (112.1%)
2017/12/13 00:35:42 transcoded: 89246 -> 103081 (115.5%)
2017/12/13 00:35:42 transcoded: 76702 -> 82711 (107.8%)

@JFingerle
Copy link

This seems to be fixed in the current version of compy. I just checked the logs of my compy server and there are no percentages above 100. I also visited http://en.simplesite.com/ and there is nothing over 100%.

-> Issue can be closed IMHO

@ignaciovidalfranco
Copy link

Well, it would be nice to track down which commit fixed the issue. Also, http://en.simplesite.com is not the same as it was in 2017...

And, I don't really use compy anymore, as mobile data has become dirt cheap for me!

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

4 participants