---
title: "Discussion on \"Resizing WebP and PNG Images in the Browser with Canvas\" | Hashnode"
description: "Discussion on \"Resizing WebP and PNG Images in the Browser with Canvas\". How browser-based image resizing works with Canvas: transparency in PNG and WebP, why JPG gets a white fill, and when a quality slider applies."
url: "https://hashnode.com/posts/resizing-webp-and-png-images-in-the-browser-with-canvas/6aeb9b881b0b373107e1e820"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Resizing WebP and PNG Images in the Browser with Canvas](https://toolsgrid.hashnode.dev/resizing-webp-and-png-images-in-the-browser-with-canvas?utm_source=hashnode&utm_medium=feed)

How browser-based image resizing works with Canvas: transparency in PNG and WebP, why JPG gets a white fill, and when a quality slider applies.

Nov 4 · 3 min read · toolsgrid.hashnode.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#images](https://hashnode.com/tag/images)
-   [#webp](https://hashnode.com/tag/webp)
-   [#canvas](https://hashnode.com/tag/canvas)

## Written by

[Toolsgrid](https://hashnode.com/@Toolsgrid)

@Toolsgrid

  
[View profile](https://hashnode.com/@Toolsgrid)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
