Skip to content

Commit

Permalink
Further fix for some resolutions missing
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-orlik committed Apr 8, 2024
1 parent b46e2f5 commit 9f4a15f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@ export class KoaResponsiveImageRouter extends Router {
}) {
if (!resolutions) {
if (sizesAttr) {
resolutions = guessResolutions(sizesAttr);
resolutions = guessResolutions(
sizesAttr,
{},
undefined,
original_image_size
);
} else if (container) {
resolutions = guessResolutions(
`${container.width}px`,
Expand Down

0 comments on commit 9f4a15f

Please sign in to comment.