Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

chore: decrease image quality #2555

Merged
1 commit merged into from Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/graphql/academy-fragments.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const academyQuery = graphql`
desktop_hero: image {
imageFile {
childImageSharp {
gatsbyImageData(quality: 100)
gatsbyImageData(quality: 60)
}
}
id
Expand All @@ -40,7 +40,7 @@ export const academyQuery = graphql`
desktop_hero: image {
imageFile {
childImageSharp {
gatsbyImageData(quality: 100)
gatsbyImageData(quality: 60)
}
}
id
Expand All @@ -65,7 +65,7 @@ export const academyQuery = graphql`
desktop_hero: image {
imageFile {
childImageSharp {
gatsbyImageData(quality: 100)
gatsbyImageData(quality: 60)
}
}
id
Expand Down
28 changes: 12 additions & 16 deletions src/templates/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,9 @@ export const query = graphql`
imageFile {
childImageSharp {
gatsbyImageData(
quality: 100
webpOptions: { quality: 100 }
avifOptions: { quality: 100, lossless: true }
placeholder: BLURRED
quality: 60
webpOptions: { quality: 60 }
avifOptions: { quality: 60 }
)
}
}
Expand Down Expand Up @@ -400,10 +399,9 @@ export const query = graphql`
imageFile {
childImageSharp {
gatsbyImageData(
quality: 100
webpOptions: { quality: 100 }
avifOptions: { quality: 100, lossless: true }
placeholder: BLURRED
quality: 60
webpOptions: { quality: 60 }
avifOptions: { quality: 60 }
)
}
}
Expand All @@ -414,10 +412,9 @@ export const query = graphql`
imageFile {
childImageSharp {
gatsbyImageData(
quality: 100
webpOptions: { quality: 100 }
avifOptions: { quality: 100, lossless: true }
placeholder: BLURRED
quality: 60
webpOptions: { quality: 60 }
avifOptions: { quality: 60 }
)
}
}
Expand All @@ -433,10 +430,9 @@ export const query = graphql`
imageFile {
childImageSharp {
gatsbyImageData(
quality: 100
webpOptions: { quality: 100 }
avifOptions: { quality: 100, lossless: true }
placeholder: BLURRED
quality: 60
webpOptions: { quality: 60 }
avifOptions: { quality: 60 }
)
}
}
Expand Down