---
title: "Discussion on \"Implementing 9-slice scaling with the Canvas API\" | Hashnode"
description: "Discussion on \"Implementing 9-slice scaling with the Canvas API\". The 9-slice scaling technique allows resizing an image to a different aspect ratio without any ugly distortions. This is achieved by slicing the original image into 9 rectangular parts and using those to construct the final resized image. Take a look..."
url: "https://hashnode.com/posts/implementing-9-slice-scaling-with-the-canvas-api/6262c3a50f819f588af7489a"
---

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

Discussion

# [Implementing 9-slice scaling with the Canvas API](https://blog.simonjaeger.ch/implementing-9-slice-scaling-with-the-canvas-api?utm_source=hashnode&utm_medium=feed)

The 9-slice scaling technique allows resizing an image to a different aspect ratio without any ugly distortions. This is achieved by slicing the original image into 9 rectangular parts and using those to construct the final resized image. Take a look...

Apr 22, 2022 · 3 min read · blog.simonjaeger.ch  
Read the article

-   [#html-canvas](https://hashnode.com/tag/html-canvas)
-   [#canvas](https://hashnode.com/tag/canvas)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)

## Written by

[Simon Jäger](https://hashnode.com/@simonjaeger)

@simonjaeger

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

Full stack developer from Switzerland

Hi, my name is Simon, I'm a full stack developer from Switzerland.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
