Conter Imagem

Ajusta a imagem inteira à largura e altura escolhidas, sem cortar ou distorcer. Se as proporções forem diferentes, preenche o espaço restante com margens.

Entrada: Arquivo de imagem (Abrir arquivo)Resultado: Prévia e download da imagem

ou arraste uma imagem aqui

Entrada de texto

Execute para ver o resultado

Exemplos

Fit the complete image inside a 64 by 64 square. Compare this padding behaviour with Cover Image.

A checkerboard exposes flipped or softened edges

Entrada

A checkerboard exposes flipped or softened edges — original image

Resultado

Run to see the image

Expected: 64 × 64 px · dimensions checked

Largura
64
Altura
64
Alinhamento horizontal
Center
Alinhamento vertical
Middle
Algoritmo de redimensionamento
Nearest Neighbour
Fundo opaco
On
A portrait frame shows cropping and padding

Entrada

A portrait frame shows cropping and padding — original image

Resultado

Run to see the image

Expected: 64 × 64 px · dimensions checked

Largura
64
Altura
64
Alinhamento horizontal
Center
Alinhamento vertical
Middle
Algoritmo de redimensionamento
Nearest Neighbour
Fundo opaco
On
An RGB landscape separates the colour channels

Entrada

An RGB landscape separates the colour channels — original image

Resultado

Run to see the image

Expected: 64 × 64 px · dimensions checked

Largura
64
Altura
64
Alinhamento horizontal
Center
Alinhamento vertical
Middle
Algoritmo de redimensionamento
Nearest Neighbour
Fundo opaco
On
A translucent badge tests alpha preservation

Entrada

A translucent badge tests alpha preservation — original image

Resultado

Run to see the image

Expected: 64 × 64 px · dimensions checked

Largura
64
Altura
64
Alinhamento horizontal
Center
Alinhamento vertical
Middle
Algoritmo de redimensionamento
Nearest Neighbour
Fundo opaco
On
A pixel-art cross makes rotation visible

Entrada

A pixel-art cross makes rotation visible — original image

Resultado

Run to see the image

Expected: 64 × 64 px · dimensions checked

Largura
64
Altura
64
Alinhamento horizontal
Center
Alinhamento vertical
Middle
Algoritmo de redimensionamento
Nearest Neighbour
Fundo opaco
On

Ferramentas relacionadas

Multimídia

Referência da operação

Ver a documentação técnica original (English)