Skip to content

Commit

Permalink
chore: compress images
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Nov 16, 2023
1 parent 2211fe2 commit f087c1a
Show file tree
Hide file tree
Showing 60 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion og-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ async function convert(slug: string) {

// Convert SVG to PNG
sharp(Buffer.from(svg))
.png()
.png({
compressionLevel: 9,
adaptiveFiltering: true,
force: true,
})
.toFile(outputPath, (err, info) => {
if (err) {
console.error(err)
Expand Down
Binary file modified static/og-images/2021-in-review.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/2022-in-review.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/about-async-functions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/always-provide-customer-value.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/array-types-in-type-script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/avoiding-legacy-systems.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/avoiding-use-effect-with-callback-refs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/beware-the-leaking-any.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/breaking-react-querys-api-on-purpose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/calling-java-script-from-type-script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/dont-over-use-state.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/effective-react-query-keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/exhaustive-matching-in-type-script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/flow-to-type-script-migration-journey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/hooks-dependencies-and-stale-closures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/how-can-i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/inside-react-query.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/leveraging-the-query-function-context.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/mastering-mutations-in-react-query.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/no-love-for-boolean-parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/offline-react-query.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/on-naming-things.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/optional-vs-undefined.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/oss-feature-decision-tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/og-images/practical-react-query.png
Binary file modified static/og-images/putting-props-to-use-state.png
Binary file modified static/og-images/react-query-and-forms.png
Binary file modified static/og-images/react-query-and-react-context.png
Binary file modified static/og-images/react-query-and-type-script.png
Binary file modified static/og-images/react-query-as-a-state-manager.png
Binary file modified static/og-images/react-query-data-transformations.png
Binary file modified static/og-images/react-query-error-handling.png
Binary file modified static/og-images/react-query-fa-qs.png
Binary file modified static/og-images/react-query-meets-react-router.png
Binary file modified static/og-images/react-query-render-optimizations.png
Binary file modified static/og-images/refactor-impactfully.png
Binary file modified static/og-images/refs-events-and-escape-hatches.png
Binary file modified static/og-images/road-to-refactoring.png
Binary file modified static/og-images/seeding-the-query-cache.png
Binary file modified static/og-images/simplifying-use-effect.png
Binary file modified static/og-images/solving-conflicts-in-package-lock-json.png
Binary file modified static/og-images/status-checks-in-react-query.png
Binary file modified static/og-images/testing-react-query.png
Binary file modified static/og-images/the-power-of-const-assertions.png
Binary file modified static/og-images/the-uphill-battle-of-memoization.png
Binary file modified static/og-images/things-to-know-about-use-state.png
Binary file modified static/og-images/thinking-in-react-query.png
Binary file modified static/og-images/type-safe-react-query.png
Binary file modified static/og-images/use-state-for-one-time-initializations.png
Binary file modified static/og-images/use-state-vs-use-reducer.png
Binary file modified static/og-images/use-urgency.png
Binary file modified static/og-images/using-web-sockets-with-react-query.png
Binary file modified static/og-images/why-i-dont-like-reduce.png
Binary file modified static/og-images/why-react-isnt-dying.png
Binary file modified static/og-images/why-you-want-react-query.png
Binary file modified static/og-images/working-with-zustand.png
Binary file modified static/og-images/you-might-not-need-react-query.png

0 comments on commit f087c1a

Please sign in to comment.