Skip to content

Commit

Permalink
Merge branch 'feat/image-improvements' of github.com:withastro/astro …
Browse files Browse the repository at this point in the history
…into feat/image-improvements
  • Loading branch information
Tony Sullivan committed Jul 8, 2022
2 parents b402b6a + b4169ac commit 51f1e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/image/src/get-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function resolveSize(transform: TransformOptions): TransformOptions {
aspectRatio = transform.aspectRatio;
} else {
const [width, height] = transform.aspectRatio.split(':');
aspectRatio = parseInt(width) / parseInt(height);
aspectRatio = Number.parseInt(width) / Number.parseInt(height);
}

if (transform.width) {
Expand Down

0 comments on commit 51f1e44

Please sign in to comment.