This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize user-generated images for reduced bandwidth
- Loading branch information
1 parent
cb0f03c
commit 82de2ac
Showing
20 changed files
with
956 additions
and
771 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,7 @@ sentry-actix = "0.32.1" | |
|
||
image = "0.24.6" | ||
color-thief = "0.2.2" | ||
webp = "0.3.0" | ||
|
||
woothee = "0.13.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ALTER TABLE mods ADD COLUMN raw_icon_url TEXT NULL; | ||
UPDATE mods SET raw_icon_url = icon_url; | ||
|
||
ALTER TABLE users ADD COLUMN raw_avatar_url TEXT NULL; | ||
UPDATE users SET raw_avatar_url = avatar_url; | ||
|
||
ALTER TABLE oauth_clients ADD COLUMN raw_icon_url TEXT NULL; | ||
UPDATE oauth_clients SET raw_icon_url = icon_url; | ||
|
||
ALTER TABLE organizations ADD COLUMN raw_icon_url TEXT NULL; | ||
UPDATE organizations SET raw_icon_url = icon_url; | ||
|
||
ALTER TABLE collections ADD COLUMN raw_icon_url TEXT NULL; | ||
UPDATE collections SET raw_icon_url = icon_url; | ||
|
||
ALTER TABLE mods_gallery ADD COLUMN raw_image_url TEXT NULL; | ||
UPDATE mods_gallery SET raw_image_url = image_url; | ||
ALTER TABLE mods_gallery ALTER COLUMN raw_image_url SET NOT NULL; | ||
|
||
ALTER TABLE uploaded_images ADD COLUMN raw_url TEXT NULL; | ||
UPDATE uploaded_images SET raw_url = url; | ||
ALTER TABLE uploaded_images ALTER COLUMN raw_url SET NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.