Skip to content

Commit

Permalink
fix: transformedHeight calc (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa authored Aug 30, 2023
1 parent 045bfbd commit 0f6f424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/qwik-image/src/lib/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const getSrcSet = async ({
let transformedHeight =
typeof height === 'string' ? parseInt(height, 10) : height;
if (height && aspectRatio) {
transformedHeight = Math.round(breakpoint * aspectRatio);
transformedHeight = Math.round(breakpoint / aspectRatio);
}

if (!imageTransformer$) {
Expand Down

0 comments on commit 0f6f424

Please sign in to comment.