Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive Images not working #82

Closed
james-wallis opened this issue Jun 5, 2019 · 1 comment
Closed

Responsive Images not working #82

james-wallis opened this issue Jun 5, 2019 · 1 comment

Comments

@james-wallis
Copy link

Hi,

I'm attempting to resize my images by using the inline ?resize&sizes[]=300&sizes[]=600&sizes[]=1000 tag but it doesn't appear to be working and my image isn't being resized.
My require statement is require(../../images/portfolio/${folder}/${src}?resize&sizes[]=300&sizes[]=600&sizes[]=1000); where ${folder} is just a folder name and ${src} is imagename.png.
My test image is 2880 × 1576 so I know it should be being resized.
I have responsive-loader and jimp installed via NPM.

From what I gather I should be getting an object which contains a src and a srcSet but I simply get a String containing the image location.

Am I doing something wrong? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant