Skip to content
Permalink
Browse files
optimise images for smaller size
  • Loading branch information
Dmitry Verkhoturov authored and Umputun committed Feb 24, 2022
1 parent d4481d1 commit cfb7361adf767081eba8c534d2c3188e4bae0fb0
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 2 deletions.
@@ -75,7 +75,7 @@ func TestFsStore_SaveNoResizeJpeg(t *testing.T) {
t.Log(imgPath)
data, err := os.ReadFile(imgPath)
assert.NoError(t, err)
assert.Equal(t, 23983, len(data))
assert.Equal(t, 16756, len(data))
}

func TestFsStore_SaveAndCommit(t *testing.T) {
@@ -48,7 +48,7 @@ func TestService_ResizeJpeg(t *testing.T) {

img, err := readAndValidateImage(fh, 32000)
assert.NoError(t, err)
assert.Equal(t, 23983, len(img))
assert.Equal(t, 16756, len(img))

img = resize(img, 400, 300)
assert.Equal(t, 10918, len(img))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN -141 KB (66%) screenshots/comments.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN -51 Bytes (92%) site/public/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN -72 Bytes (94%) site/public/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cfb7361

Please sign in to comment.